/* Warm paper, an open workbench, and room to read. No font requests or JS. */
:root {
    color-scheme: light;
    --color-bg: #faf8f2;
    --color-surface: #fffdf8;
    --color-fg: #292e29;
    --color-muted: #62665c;
    --color-link: #294f3f;
    --color-link-hover: #8a422d;
    --color-rule: #dedfd3;
    --color-code-bg: #efeee5;
    --color-code-fg: #292e29;
    --color-tint: #edf0e5;
    --color-rust: #944b32;
    --font-stack-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-stack-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-stack-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --hl-keyword: #a43632;
    --hl-string: #226445;
    --hl-comment: #62665c;
    --hl-number: #895512;
    --hl-type: #315ea4;
    --hl-attribute: #724291;
}

* { box-sizing: border-box; }
html { font-family: var(--font-stack-body); line-height: 1.7; color: var(--color-fg); background: var(--color-bg); scroll-padding-top: 2rem; }
body { margin: 0; padding: 0 2rem; display: flex; flex-direction: column; min-height: 100vh; }
main, .site-header, .site-footer { width: 100%; max-width: 72rem; margin-inline: auto; }
main { flex: 1 0 auto; padding: 1rem 0 0; }
a { color: var(--color-link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-link-hover); }
a:focus-visible { outline: 2px solid var(--color-rust); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-stack-display); font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin: 0 0 1.6rem; }
h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin: 0 0 1rem; }
h3 { font-size: 1.3rem; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: var(--color-surface); z-index: 5; }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { padding: 1.8rem 0; border-bottom: 1px solid var(--color-rule); }
.top-nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-title { display: inline-flex; align-items: center; gap: .75rem; font-size: 1rem; font-weight: 650; color: var(--color-fg); text-decoration: none; }
.site-monogram { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; background: var(--color-link); color: var(--color-bg); border-radius: 50%; font: 1.5rem var(--font-stack-display); padding-bottom: .2rem; }
.nav-list { list-style: none; display: flex; gap: 1.8rem; align-items: center; padding: 0; margin: 0; }
.nav-link { color: var(--color-muted); text-decoration: none; font-size: .9rem; display: inline-block; padding: .4rem 0; }
.nav-link.is-active { color: var(--color-link); text-decoration: underline; text-underline-offset: .5em; }
.nav-rss { border-left: 1px solid var(--color-rule); padding-left: 1.8rem; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 650; color: var(--color-rust); margin-bottom: 1rem; }
.home-hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 5rem; padding: 4.5rem 0 5rem; }
.home-bio h1 { max-width: 12ch; }
.home-bio > p:not(.eyebrow) { color: var(--color-muted); font-size: 1.05rem; max-width: 35rem; }
.home-bio .eyebrow span { display: inline-block; margin-left: .7rem; font-size: 1.1rem; }
.hero-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.3rem; padding: .85rem 1.25rem; border: 1px solid var(--color-link); border-radius: 5px; background: var(--color-link); color: var(--color-bg); text-decoration: none; font-size: .88rem; font-weight: 600; }
.button:hover { background: var(--color-link-hover); border-color: var(--color-link-hover); color: var(--color-bg); }
.button-outline { background: transparent; color: var(--color-link); }
.text-link { font-size: .9rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.text-link span { margin-left: .5rem; }
.field-note { position: relative; transform: rotate(2deg); padding: 1.6rem 1.8rem 1.3rem; border: 1px solid #d9d7c5; background: #f1efdf; color: #3b4d3c; box-shadow: 3px 6px 0 #e9e5d7; border-radius: 2px; }
.field-note::before { content: ""; position: absolute; width: 5rem; height: 1.5rem; background: #e2d9baaa; top: -.8rem; left: calc(50% - 2.5rem); transform: rotate(-6deg); }
.note-top { display: flex; justify-content: space-between; font: .66rem var(--font-stack-mono); text-transform: uppercase; letter-spacing: .09em; color: #626553; }
.note-illustration { display: block; width: 100%; margin-block: 1rem; }
.note-kicker { font: 1.5rem/1.3 var(--font-stack-display); letter-spacing: -.03em; }
.field-note p:not(.note-kicker, .note-signature) { font-size: .86rem; }
.field-note a { color: #294f3f; }
.note-signature { font: italic 1.6rem var(--font-stack-display); margin: 1rem 0 0; }
.section-block { border-top: 1px solid var(--color-rule); padding: 3.5rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: .7rem; }
.section-intro { color: var(--color-muted); max-width: 42rem; margin-bottom: 2rem; }
.project-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.project-card { padding: 1.8rem; border: 1px solid var(--color-rule); background: var(--color-surface); border-radius: 8px; display: flex; flex-direction: column; scroll-margin-top: 2rem; }
.project-card:target { border-color: var(--color-rust); }
.project-topline { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.project-symbol { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 8px; background: #e9eedf; color: #36583d; font: 1.1rem var(--font-stack-mono); }
.symbol-agentgraphicdesign { background: #f5e5d9; color: #994e2b; font-size: 2rem; }
.symbol-agentblender { background: #e8e9f2; color: #595388; font-size: 2.2rem; }
.symbol-dossier { background: #eee9d9; color: #6e5a34; font-size: 2rem; }
.project-category { font-size: .73rem; color: var(--color-muted); }
.project-card h3 { margin: 0 0 .8rem; font-size: 1.25rem; font-weight: 600; }
.project-card h3 a { display: flex; justify-content: space-between; gap: 1rem; color: var(--color-fg); text-decoration: none; }
.project-card h3 a:hover { color: var(--color-link-hover); }
.project-card h3 span { color: var(--color-muted); font-weight: 400; }
.project-card > p { font-size: .93rem; color: var(--color-muted); margin-bottom: 1.8rem; }
.project-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .7rem; font-size: .67rem; color: var(--color-muted); }
.project-status::before { content: ""; display: inline-block; vertical-align: .05em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--color-rust); margin-right: .45rem; }
.release-note { font-size: .75rem; color: var(--color-muted); margin: 1.1rem 0 0; }
.post-card-list { list-style: none; margin: 0; padding: 0; }
.post-card { position: relative; border-bottom: 1px solid var(--color-rule); padding: 1.8rem 0; display: grid; grid-template-columns: 9rem 1fr; column-gap: 2rem; }
.post-card-title { grid-column: 2; font-family: var(--font-stack-display); font-size: 1.65rem; margin: 0 0 .6rem; }
.post-card-title a { text-decoration: none; color: var(--color-fg); }
.post-card-title a:hover { color: var(--color-link-hover); }
.post-card-meta { grid-column: 1; grid-row: 1 / 3; font-size: .8rem; color: var(--color-muted); padding-top: .25rem; margin: 0; }
.post-card-summary { grid-column: 2; color: var(--color-muted); font-size: .93rem; max-width: 43rem; margin: 0; }
.travel-note { display: flex; align-items: center; gap: 2.5rem; background: var(--color-tint); padding: 2.7rem; border-radius: 8px; margin-bottom: 3.5rem; }
.travel-mark { color: var(--color-link); font: 4rem var(--font-stack-display); border: 1px solid #adb5a4; border-radius: 50%; width: 6rem; height: 6rem; display: grid; place-items: center; flex-shrink: 0; transform: rotate(-15deg); }
.travel-note h2 { font-size: 2.2rem; }
.travel-note p:last-child { color: var(--color-muted); margin: 0; max-width: 40rem; font-size: .95rem; }
.subscribe-note { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--color-rule); }
.subscribe-note h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.subscribe-note p { font-size: .9rem; color: var(--color-muted); margin: 0; max-width: 32rem; }
.subscribe-note .button { flex-shrink: 0; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 2.3rem 0; border-top: 1px solid var(--color-rule); font-size: .8rem; color: var(--color-muted); }
.footer-name { font-weight: 650; font-size: .95rem; text-decoration: none; color: var(--color-fg); }
.site-footer p { margin: .3rem 0 0; }
.site-footer nav { display: flex; gap: 1.5rem; align-items: start; }
.site-footer nav a { text-decoration: none; }
.site-footer .copyright { grid-column: 1 / -1; font-size: .7rem; }
.page-intro { max-width: 44rem; padding: 3.5rem 0 2.5rem; }
.page-intro p:not(.eyebrow) { color: var(--color-muted); font-size: 1.05rem; }
.projects-index, .blog-index { padding-bottom: 3.5rem; }
.post, .tombstone, .not-found { max-width: 44rem; margin: 3rem auto 5rem; }
.post h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); }
.post h2 { margin-top: 2rem; }
.post-body { font-size: 1.06rem; overflow-wrap: break-word; }
.post-body img { display: block; border-radius: 6px; margin: 2rem auto .7rem; }
.post-body p:has(> img) + p:has(> em:only-child) { text-align: center; color: var(--color-muted); font-size: .85rem; }
.post-meta, .post-card-meta, .raw-markdown-link { color: var(--color-muted); font-size: .85rem; }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 2rem; }
.post-tags li { padding: .15rem .6rem; border-radius: 4px; background: var(--color-code-bg); font-size: .75rem; color: var(--color-muted); }
blockquote { margin: 1.5rem 0; padding: .5rem 1.2rem; border-left: 2px solid var(--color-rust); color: var(--color-muted); }
blockquote p:last-child { margin: 0; }
code { font-family: var(--font-stack-mono); font-size: .9em; padding: .15rem .3rem; border-radius: 3px; background: var(--color-code-bg); color: var(--color-code-fg); }
pre { padding: 1.2rem; border-radius: 6px; background: var(--color-code-bg); overflow-x: auto; line-height: 1.55; font-size: .88rem; }
pre code { padding: 0; background: transparent; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; display: block; overflow-x: auto; }
th, td { padding: .5rem .75rem; border: 1px solid var(--color-rule); text-align: left; }
hr { border: 0; border-top: 1px solid var(--color-rule); margin: 2rem 0; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hl-keyword { color: var(--hl-keyword); }
.hl-string { color: var(--hl-string); }
.hl-comment { color: var(--hl-comment); font-style: italic; }
.hl-number { color: var(--hl-number); }
.hl-type { color: var(--hl-type); }
.hl-attribute { color: var(--hl-attribute); }

@media (max-width: 900px) {
    .home-hero { gap: 2.5rem; grid-template-columns: 1.3fr 1fr; }
    .field-note { padding: 1.25rem; }
    .home-bio h1 { font-size: 3.3rem; }
}
@media (max-width: 650px) {
    body { padding: 0 1.25rem; }
    .site-header { padding: 1.2rem 0; }
    .top-nav { flex-wrap: wrap; gap: .85rem; }
    .nav-list { gap: 1.4rem; width: 100%; }
    .nav-link { font-size: .85rem; }
    .nav-rss { padding-left: 1.4rem; }
    .home-hero { grid-template-columns: 1fr; gap: 3rem; padding: 2.5rem 0 3.5rem; }
    .home-bio h1 { font-size: clamp(2.75rem, 10vw, 3.6rem); max-width: 14ch; }
    .field-note { margin: 0 .5rem; max-width: 25rem; justify-self: center; }
    .note-illustration { max-height: 11rem; }
    .section-block { padding: 2.5rem 0; }
    .section-heading { align-items: start; flex-direction: column; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { padding: 1.4rem; }
    .post-card { display: flex; flex-direction: column; gap: .6rem; }
    .post-card-meta { order: -1; }
    .post-card-title { margin: 0; }
    .travel-note { padding: 1.6rem; gap: 1rem; align-items: start; flex-direction: column; }
    .travel-mark { font-size: 2rem; width: 3.5rem; height: 3.5rem; }
    .travel-note h2 { font-size: 2rem; }
    .subscribe-note { align-items: start; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; }
    .page-intro { padding-top: 2.5rem; }
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --color-bg: #202720;
        --color-surface: #252e26;
        --color-fg: #eeede2;
        --color-muted: #bdc2b4;
        --color-link: #c0d3b0;
        --color-link-hover: #f0b990;
        --color-rule: #465143;
        --color-code-bg: #303a30;
        --color-code-fg: #eeede2;
        --color-tint: #2d372c;
        --color-rust: #edb38f;
        --hl-keyword: #f4aba0;
        --hl-string: #b3dba7;
        --hl-comment: #bdc2b4;
        --hl-number: #f0d49c;
        --hl-type: #aecaf1;
        --hl-attribute: #d3b8e8;
    }
    .field-note { box-shadow: 3px 6px 0 #111a14; }
}
