/* Evening Paper — cream pages, charcoal "after hours" sections, amber accent. */
:root {
  --paper:#EFEBE2;
  --ink:#17191B;
  --ink-soft:#2E3134;
  --muted:#45484C;
  --night:#17191B;
  --night-card:#202326;
  --night-line:#3A3D40;
  --night-tag:#4A4D50;
  --night-text:#ECE7DB;
  --night-muted:#C4C0B4;
  --night-faint:#A6A398;
  --amber:#E2A447;
  --amber-dark:#C9862B;
  --display:'DM Serif Display',Georgia,serif;
  --sans:'Inter','Helvetica Neue',Arial,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
  --gutter:40px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; }
a:hover { color:var(--amber-dark); }
.night a:not(.button):hover { color:var(--amber); }
a:focus-visible { outline:3px solid var(--amber); outline-offset:4px; }
img { max-width:100%; display:block; }
::selection { background:var(--amber); color:var(--ink); }
.container { max-width:1240px; margin:0 auto; padding-inline:var(--gutter); }
.accent { color:var(--amber); }
.skip-link { position:absolute; left:12px; top:-60px; padding:12px 16px; background:var(--paper); z-index:30; }
.skip-link:focus { top:12px; }

/* Shared type */
.mono { font-family:var(--mono); font-size:12px; letter-spacing:1.5px; text-transform:uppercase; }
.kicker { margin:0 0 20px; font-family:var(--mono); font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); }
.night .kicker { color:var(--night-faint); }
.display-xl { margin:0; font-family:var(--display); font-weight:400; font-size:clamp(64px,10vw,152px); line-height:.9; letter-spacing:-3px; }
.display-l { margin:0; font-family:var(--display); font-weight:400; font-size:clamp(38px,5vw,56px); line-height:1.02; }
.display-l em, .display-m em { font-style:italic; color:var(--amber); }
.display-m { margin:0; font-family:var(--display); font-weight:400; font-size:clamp(34px,4vw,48px); line-height:1.05; }
.lede { margin:0; font-size:17px; line-height:1.7; color:var(--muted); }
.night { background:var(--night); color:var(--night-text); }
.night .lede { color:var(--night-muted); }

/* Buttons & links */
.button { display:inline-block; text-decoration:none; font-weight:600; font-size:15px; padding:16px 24px; border:1px solid transparent; }
.button-amber { background:var(--amber); color:var(--ink); }
.button-amber:hover { background:var(--amber-dark); color:var(--ink); }
.button-dark { background:var(--ink); color:var(--night-text); }
.button-dark:hover { background:var(--ink-soft); color:var(--amber); }
.button-outline { border-color:var(--ink); padding:15px 24px; }
.text-link { text-decoration:none; font-family:var(--mono); font-size:12px; letter-spacing:1.5px; text-transform:uppercase; padding:12px 0; }
.amber-link { color:var(--amber); }

/* Header */
.main-nav { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px 32px; padding-block:18px; border-bottom:1px solid var(--ink); }
.main-nav a { text-decoration:none; font-family:var(--display); font-size:clamp(24px,2.8vw,36px); line-height:1.1; padding:8px 0; border-bottom:3px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color:var(--amber); }

/* Footer */
.site-footer { border-top:1px solid var(--ink); }
.site-footer .container { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px 32px; padding-block:28px 40px; }
.footer-name { text-decoration:none; font-family:var(--display); font-size:20px; }
.footer-links { display:flex; flex-wrap:wrap; gap:8px 24px; align-items:center; color:var(--muted); }
.footer-links a { text-decoration:none; padding:8px 0; }

/* Home hero */
.home-hero { padding-bottom:80px; }
.home-hero .hero-grid { display:flex; flex-wrap:wrap; gap:48px; align-items:flex-end; padding-top:72px; }
.home-hero h1 { flex:999 1 640px; min-width:0; margin:0; font-family:var(--display); font-weight:400; font-size:clamp(72px,11vw,168px); line-height:.88; letter-spacing:-3px; }
.hero-side { flex:1 1 340px; min-width:0; display:flex; flex-direction:column; gap:22px; padding-bottom:12px; }
.hero-tagline { margin:0; font-family:var(--display); font-size:32px; line-height:1.15; }
.hero-tagline em { font-style:italic; }

/* Section headings on dark */
.section-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:12px; padding-bottom:28px; border-bottom:1px solid var(--night-line); }
.work-section .container { padding-top:72px; padding-bottom:96px; }
.feature-pair { display:grid; grid-template-columns:1fr 1fr; }
.feature { display:flex; flex-direction:column; gap:22px; align-items:flex-start; padding:16px 48px 16px 0; }
.feature + .feature { padding:16px 0 16px 48px; border-left:1px solid var(--night-line); }
.feature .kicker { margin:0; }
.feature .lede { max-width:480px; flex:1; }
@media (max-width:900px) {
  .feature-pair { grid-template-columns:1fr; }
  .feature, .feature + .feature { padding:0 0 56px; border-left:0; }
  .feature + .feature { padding-top:56px; border-top:1px solid var(--night-line); padding-bottom:0; }
}

/* Project rows (software index) */
.project-meta { display:flex; flex-wrap:wrap; gap:8px 24px; font-family:var(--mono); font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--night-faint); }
.project-meta .live { color:var(--amber); }
.project-list .container { padding-top:24px; padding-bottom:40px; }
.project-row { text-decoration:none; display:flex; flex-wrap:wrap; gap:40px; padding:48px 0; border-bottom:1px solid var(--night-line); }
.project-row:last-child { border-bottom:0; }
.project-row .project-art { flex:1 1 340px; min-height:260px; }
.project-row-body { flex:999 1 480px; min-width:0; display:flex; flex-direction:column; gap:18px; justify-content:center; }
.project-row .project-name { font-family:var(--display); font-size:clamp(40px,5vw,56px); line-height:1; }
.project-row .project-summary { font-size:18px; line-height:1.65; color:var(--night-muted); max-width:620px; }
.project-row:hover .project-name { color:var(--amber); }
.read-more { font-family:var(--mono); font-size:13px; letter-spacing:1px; text-transform:uppercase; color:var(--amber); }
.tag-row { display:flex; flex-wrap:wrap; gap:8px; }
.tag { border:1px solid var(--night-tag); padding:6px 12px; font-size:13px; color:var(--night-muted); }
.tag-light { border-color:#B9B4A8; color:var(--muted); }

/* Project art: geometric marks */
.project-art { display:flex; align-items:center; justify-content:flex-start; gap:10px; height:120px; }
.project-art .ring { border-radius:50%; border:1px solid var(--night-text); flex-shrink:0; }
.project-art .disc { border-radius:50%; background:var(--amber); flex-shrink:0; }
.project-art .bar { border:1px solid var(--night-text); flex-shrink:0; }
.project-art .bar.fill { background:var(--amber); border-color:var(--amber); }
.project-art .slash { display:flex; align-items:center; justify-content:center; }
.project-art .slash::after { content:""; height:2px; background:var(--amber); transform:rotate(-45deg); width:100%; }
.art-bubbles .ring.big { width:96px; height:96px; } .art-bubbles .disc { width:56px; height:56px; } .art-bubbles .ring.small { width:30px; height:30px; }
.art-offlimits .ring { width:96px; height:96px; }
.art-deal { align-items:flex-end; padding-bottom:12px; }
.art-deal .bar { width:24px; } .art-deal .b1 { height:36px; } .art-deal .b2 { height:64px; } .art-deal .b3 { height:96px; }
/* Large framed version */
.project-art.framed { background:var(--night-card); height:auto; justify-content:center; gap:16px; }
.project-art.framed.art-bubbles .ring.big { width:120px; height:120px; } .project-art.framed.art-bubbles .disc { width:70px; height:70px; } .project-art.framed.art-bubbles .ring.small { width:38px; height:38px; }
.project-art.framed.art-offlimits .ring { width:128px; height:128px; }
.project-art.framed.art-deal { gap:14px; padding-bottom:64px; }
.project-art.framed.art-deal .bar { width:32px; } .project-art.framed.art-deal .b1 { height:48px; } .project-art.framed.art-deal .b2 { height:84px; } .project-art.framed.art-deal .b3 { height:124px; }

/* Callout band ("Curious by nature") */
.callout { display:flex; flex-wrap:wrap; gap:40px; align-items:flex-end; justify-content:space-between; }
.callout > :first-child { flex:1 1 440px; min-width:0; }
.callout-side { flex:1 1 340px; min-width:0; display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.callout-box { padding:52px 48px; }
.callout-wrap { padding-top:80px; padding-bottom:96px; }

/* Writing preview (home) */
.post-list { padding-top:16px; }
.post-row { text-decoration:none; display:flex; gap:24px; align-items:baseline; padding:24px 0; border-bottom:1px solid var(--night-line); }
.post-row .post-date { font-family:var(--mono); font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--night-faint); min-width:96px; }
.post-row strong { font-family:var(--display); font-weight:400; font-size:28px; flex:1; }
.writing-preview { margin-top:72px; }

/* Page intro (cream) */
.page-intro { padding-bottom:72px; }
.page-intro.tight { padding-bottom:64px; }
.page-intro .intro-grid { display:flex; flex-wrap:wrap; gap:40px; align-items:flex-end; padding-top:72px; }
.page-intro .intro-grid h1 { flex:999 1 560px; min-width:0; }
.page-intro .intro-grid .lede { flex:1 1 320px; padding-bottom:12px; }
.page-intro .intro-stack { padding-top:72px; }
.page-intro .intro-stack .lede { margin-top:28px; max-width:640px; }
.intro-quote { margin:28px 0 0; font-family:var(--display); font-style:italic; font-size:clamp(26px,3vw,34px); line-height:1.2; color:var(--muted); }
.intro-actions { margin-top:36px; display:flex; flex-wrap:wrap; gap:14px; }

/* About */
.about-main { padding-bottom:96px; }
.about-body { display:flex; flex-wrap:wrap; gap:56px; padding-top:72px; }
.about-body > h2 { flex:1 1 280px; max-width:360px; margin:0; font-family:var(--display); font-weight:400; font-size:36px; line-height:1.1; }
.about-copy { flex:999 1 520px; min-width:0; display:flex; flex-direction:column; gap:22px; font-size:19px; line-height:1.7; color:var(--ink-soft); }
.about-copy p { margin:0; }
.button-row { display:flex; flex-wrap:wrap; gap:14px; padding-top:12px; }

/* Writing index */
.writing-list { padding-bottom:96px; }
.writing-item { text-decoration:none; display:flex; justify-content:space-between; gap:32px; padding:40px 0; border-top:1px solid var(--ink); }
.writing-item:last-child { border-bottom:1px solid var(--ink); }
.writing-item .meta { font-family:var(--mono); font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }
.writing-item h2 { margin:14px 0 10px; font-family:var(--display); font-weight:400; font-size:clamp(30px,4vw,44px); line-height:1.05; }
.writing-item p { margin:0; font-size:17px; line-height:1.65; color:var(--muted); max-width:680px; }
.writing-item .arrow { font-size:24px; color:var(--amber-dark); }
.empty-state { padding:52px 48px; }
.empty-state .display-m { margin-bottom:16px; }
.empty-state .lede { margin-bottom:20px; }

/* Detail pages (project, writing, legal) */
.back-link { display:inline-block; margin-top:40px; text-decoration:none; font-family:var(--mono); font-size:12px; letter-spacing:1.5px; text-transform:uppercase; padding:12px 0; color:var(--muted); }
.detail-intro .intro-stack { padding-top:40px; }
.detail-art { padding-block:48px; }
.detail-art .project-art { min-height:280px; }
.detail-grid { display:flex; flex-wrap:wrap; gap:56px; padding-top:72px; padding-bottom:96px; }
.detail-aside { flex:1 1 240px; max-width:320px; display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.detail-aside dl { margin:0; width:100%; }
.detail-aside dl div { padding:14px 0; border-top:1px solid var(--ink); }
.detail-aside dt { font-family:var(--mono); font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.detail-aside dd { margin:0; font-family:var(--display); font-size:22px; }
.detail-grid .prose { flex:999 1 520px; min-width:0; }
.reading { max-width:760px; padding-top:56px; padding-bottom:96px; }

/* Long-form prose */
.prose { font-size:19px; line-height:1.7; color:var(--ink-soft); }
.prose > :first-child { margin-top:0; }
.prose h2 { font-family:var(--display); font-weight:400; font-size:clamp(28px,3vw,36px); line-height:1.1; color:var(--ink); margin:48px 0 16px; }
.prose h3 { font-family:var(--display); font-weight:400; font-size:26px; line-height:1.15; color:var(--ink); margin:36px 0 12px; }
.prose p, .prose ul, .prose ol { margin:0 0 22px; }
.prose li { margin-bottom:8px; }
.prose li::marker { color:var(--amber-dark); }
.prose a { text-decoration-color:var(--amber); text-underline-offset:3px; }
.prose strong { color:var(--ink); }
.prose blockquote { margin:32px 0; padding-left:24px; border-left:3px solid var(--amber); font-family:var(--display); font-style:italic; font-size:26px; line-height:1.3; color:var(--ink); }
.prose code { font-family:var(--mono); font-size:.85em; background:#E3DED2; padding:2px 6px; }
.prose pre { background:var(--night); color:var(--night-text); padding:20px 24px; overflow-x:auto; font-size:15px; }
.prose pre code { background:none; padding:0; }
.prose hr { border:0; border-top:1px solid var(--ink); margin:48px 0; }
.prose table { border-collapse:collapse; width:100%; font-size:16px; }
.prose th, .prose td { text-align:left; padding:10px 12px; border-bottom:1px solid #C9C4B8; }

@media (max-width:640px) {
  :root { --gutter:20px; }
  .main-nav.with-brand .brand { flex-basis:100%; }
  .home-hero .hero-grid, .page-intro .intro-grid, .page-intro .intro-stack { padding-top:48px; }
  .hero-tagline { font-size:26px; }
  .callout-box, .empty-state { padding:36px 24px; }
  .project-row { gap:28px; padding:40px 0; }
  .project-row .project-art { min-height:200px; }
  .post-row { flex-direction:column; gap:6px; }
  .about-body, .detail-grid { gap:32px; padding-top:48px; }
  .prose, .about-copy { font-size:17px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Small modifiers */
.lede-lg { font-size:20px; max-width:720px; }
.reading.ruled { border-top:1px solid var(--ink); }
.callout-wrap.flush { padding-top:0; }
.post-title { margin:0; font-family:var(--display); font-weight:400; font-size:clamp(44px,7vw,96px); line-height:.95; letter-spacing:-1.5px; }
