@import url("fonts.css");

/* ---------- Tokens (light) ---------- */
:root {
  --bg: #F6F2EA; --surface: #FFFDF9; --raised: #EFEAE0;
  --fg: #1A1A1A; --fg-2: #4A4A47; --muted: #74736E;
  --line: #E3DDD1; --line-strong: #1A1A1A;
  --grad-a: #000000; --grad-b: #666666;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1120px;
  /* spacing tokens */
  --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px; --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  --r-lg: 8px; --r-xl: 12px; --r-2xl: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181818; --surface: #1F1F1F; --raised: #272727;
    --fg: #F1F0EC; --fg-2: #C9C8C2; --muted: #8F8E88;
    --line: #313131; --line-strong: #F1F0EC; --grad-a: #FFFFFF; --grad-b: #9B9B9B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181818; --surface: #1F1F1F; --raised: #272727;
  --fg: #F1F0EC; --fg-2: #C9C8C2; --muted: #8F8E88;
  --line: #313131; --line-strong: #F1F0EC; --grad-a: #FFFFFF; --grad-b: #9B9B9B;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; position: relative; overflow-x: clip; background-color: var(--bg); background-image: url("paper-grain.jpg"); background-size: 640px 640px; background-blend-mode: soft-light; color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--muted); text-underline-offset: 3px; transition: text-decoration-color .3s var(--ease); }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: var(--s-800); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 30px; line-height: 36px; }
h3 { font-size: 20px; line-height: 28px; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 14px; }
.mono, .label, .eyebrow { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { color: var(--muted); display: block; }
.label { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); z-index: 50; }
.skip:focus { left: var(--s-200); top: var(--s-200); }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Watercolor washes behind the page ---------- */
.wash { position: absolute; z-index: 0; pointer-events: none; background: url("wash.jpg") center / contain no-repeat; mix-blend-mode: multiply; opacity: .55; }
.wash-top { top: -48px; right: -12%; width: min(980px, 90vw); aspect-ratio: 16 / 9; }
.wash-bottom { bottom: 120px; left: -14%; width: min(820px, 80vw); aspect-ratio: 16 / 9; transform: scaleX(-1) rotate(8deg); opacity: .4; }
main, .foot { position: relative; z-index: 1; }
:root[data-theme="dark"] .wash { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wash { display: none; } }
/* ---------- Essays (article pages, writing index, categories) ---------- */
.page-wrap { max-width: 760px; padding-top: calc(var(--s-900) + var(--s-500)); padding-bottom: var(--s-900); }
.listing h1, .essay-head h1 { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.listing .sec-head { max-width: none; margin-bottom: var(--s-400); }
.posts-local a { grid-template-columns: minmax(0, 1fr) auto; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-100); }
.chip { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color .3s var(--ease), border-color .3s var(--ease); }
.chip:hover, .chip.on { color: var(--fg); border-color: var(--muted); }
.chip .ic { width: 16px; height: 16px; }
.essay-head { display: grid; gap: var(--s-200); padding-bottom: var(--s-400); border-bottom: 1px solid var(--line); }
.essay-head .eyebrow a { text-decoration: none; }
.essay-head .eyebrow a:hover { color: var(--fg); }
.essay-body { padding-top: var(--s-400); font-size: 18px; line-height: 30px; color: var(--fg-2); overflow-wrap: break-word; }
.essay-body > * + * { margin-top: var(--s-300); }
.essay-body h2 { margin-top: var(--s-600); font-size: 26px; line-height: 32px; color: var(--fg); }
.essay-body h3 { margin-top: var(--s-500); font-size: 20px; line-height: 28px; color: var(--fg); }
.essay-body h2 + *, .essay-body h3 + * { margin-top: var(--s-200); }
.essay-body strong { color: var(--fg); font-weight: 700; }
.essay-body ul, .essay-body ol { padding-left: var(--s-300); }
.essay-body li + li { margin-top: var(--s-75); }
.essay-body li::marker { color: var(--muted); }
.essay-body blockquote { margin-left: 0; margin-right: 0; padding: var(--s-50) 0 var(--s-50) var(--s-300); border-left: 2px solid var(--line-strong); color: var(--fg); font-size: 20px; line-height: 30px; font-weight: 500; }
.essay-body blockquote > * + * { margin-top: var(--s-100); }
.essay-body figure { margin-left: 0; margin-right: 0; }
.essay-body img { display: block; max-width: 100%; height: auto; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.essay-body img.narrow { width: 280px; margin: 0 auto; }
.essay-body hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-500) 0; }
.essay-body :not(pre) > code { padding: 1px 6px; border-radius: 6px; background: var(--raised); color: var(--fg); font-size: .85em; }
.essay-body pre { margin-left: 0; margin-right: 0; padding: var(--s-200) var(--s-300); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow-x: auto; font-size: 14px; line-height: 22px; color: var(--fg); }
.essay-body pre code { font-size: inherit; }
.essay-body a { text-decoration-color: var(--fg-2); }
.essay-foot { margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid var(--line); display: grid; gap: var(--s-75); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); margin-top: var(--s-500); }
.pager a { display: grid; gap: var(--s-50); padding: var(--s-200) var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); text-decoration: none; font-weight: 600; line-height: 24px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.pager a:hover { border-color: var(--muted); transform: translateY(-2px); }
.pager-newer { grid-column: 2; text-align: right; }
.back { margin-top: var(--s-400); }
@media (max-width: 640px) {
  .listing h1, .essay-head h1 { font-size: 32px; line-height: 38px; }
  .essay-body { font-size: 17px; line-height: 28px; }
  .essay-body blockquote { font-size: 18px; line-height: 28px; }
  .pager { grid-template-columns: 1fr; } .pager-newer { grid-column: auto; text-align: left; }
}

@media print { .wash { display: none; } body { background-image: none; } }

/* ---------- Floating nav ---------- */
.topbar { position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; padding: 0 var(--s-200); }
.pill { pointer-events: auto; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); border-radius: 9999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 100%; }
.brand { font-weight: 600; text-decoration: none; font-size: 14px; line-height: 20px; white-space: nowrap; }
.links { display: flex; gap: var(--s-50); }
.links a { text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); padding: var(--s-75) var(--s-100); border-radius: 9999px; transition: color .3s var(--ease), background-color .3s var(--ease); }
.links a:hover, .links a[aria-current="true"], .links a[aria-current="page"] { color: var(--fg); background: var(--raised); }
.links a:active { transform: scale(.98); }
.theme-pick { display: flex; gap: 2px; padding: 2px; border-radius: 9999px; background: var(--raised); }
.theme-pick button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9999px; background: none; color: var(--muted); cursor: pointer; transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.theme-pick button:hover { color: var(--fg); }
.theme-pick button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.theme-pick button:active { transform: scale(.94); }
.theme-pick .ic { width: 16px; height: 16px; }
@media (max-width: 800px) { .theme-pick { margin-left: auto; } }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; position: relative; padding: 0; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--fg); border-radius: 2px; top: 50%; transition: transform .5s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(3px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (max-width: 800px) { .links { display: none; } .menu-btn { display: block; } .pill { gap: var(--s-200); } }

/* Mobile menu panel */
.menu { position: fixed; inset: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; align-items: center; justify-content: center; }
.menu nav { display: grid; gap: var(--s-50); width: min(100%, 420px); padding: var(--s-300); }
.menu a { text-decoration: none; font-size: 24px; line-height: 32px; font-weight: 600; padding: var(--s-100) var(--s-200); border-radius: var(--r-xl); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.open a { opacity: 1; transform: none; }
.menu a:hover { background: var(--raised); }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-300); }
.sec { padding: var(--s-800) 0 0; }
.sec-head { max-width: 680px; margin-bottom: var(--s-400); display: grid; gap: var(--s-100); }
.prose { max-width: 680px; display: grid; gap: var(--s-200); color: var(--fg-2); font-size: 18px; line-height: 28px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: opacity .7s var(--ease); } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.btn { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .5s var(--ease); }
.btn:hover { background: var(--raised); border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary:hover { background: var(--fg-2); border-color: var(--fg-2); }
.btn .ic { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-600); align-items: center; padding: calc(var(--s-900) + var(--s-500)) 0 var(--s-600); }
.hero-copy { display: grid; gap: var(--s-300); max-width: 680px; }
.hero h1 { font-size: 48px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; line-height: 28px; color: var(--fg-2); max-width: 680px; }
.proof { color: var(--muted); }
.announce { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-75); max-width: 100%; padding: var(--s-50) var(--s-50) var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); font-size: 14px; line-height: 20px; color: var(--fg-2); text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.announce:hover { border-color: var(--muted); transform: translateY(-1px); }
.announce strong { color: var(--fg); font-weight: 700; }
.announce .mark { width: 16px; height: 16px; color: var(--fg); }
.announce-cta { display: inline-flex; align-items: center; gap: var(--s-50); padding: 2px var(--s-100); border-radius: 9999px; background: var(--raised); color: var(--fg); font-weight: 600; white-space: nowrap; }
.announce-cta .ic { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.announce:hover .announce-cta .ic { transform: translateX(2px); }
.eyebrow-mark { display: inline-flex; align-items: center; gap: var(--s-75); }
.eyebrow-mark .mark { width: 16px; height: 16px; color: var(--fg); }
.brand-sub { color: var(--muted); font-weight: 600; }
.brand-sub::before { content: "/"; margin: 0 var(--s-75); color: var(--line-strong); opacity: .25; }
.brand-wrap { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand-sub { font-size: 14px; line-height: 20px; text-decoration: none; }
.brand-sub:hover { color: var(--fg); }
.announce-cta { width: 28px; height: 28px; padding: 0; justify-content: center; }
@media (max-width: 440px) { .brand-sub { display: none; } }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-500); padding-top: var(--s-900); } }
@media (max-width: 640px) { .hero h1 { font-size: 36px; line-height: 40px; } }

/* ---------- Board (hero visual) ---------- */
.board { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); overflow: hidden; }
.board-top { display: flex; justify-content: space-between; gap: var(--s-200); padding: var(--s-100) var(--s-200); border-bottom: 1px solid var(--line); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: var(--fg); margin-right: var(--s-75); vertical-align: middle; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.scene { display: block; width: 100%; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.board-main { padding: var(--s-200) var(--s-200) var(--s-300); display: grid; gap: var(--s-50); }
.board-kicker { color: var(--muted); }
.board-head { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: .02em; display: flex; flex-wrap: wrap; min-height: 32px; }
.flap { display: inline-block; opacity: .55; transition: opacity .3s var(--ease); }
.flap.set { opacity: 1; }
.flap.sp { width: .3em; }
.board-detail { color: var(--fg-2); font-size: 14px; line-height: 20px; }
.board-bar { padding: 0 var(--s-200) var(--s-200); }
.bar-wrap { position: relative; }
.bar { display: flex; height: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--raised); }
.seg { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid var(--line); transform-origin: left center; }
.seg:last-child { border-right: 0; }
.seg span { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 var(--s-75); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.seg.on { background: var(--fg); }
.seg.on span { color: var(--bg); }
.marker { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); transform: translateX(-50%); border-radius: 2px; pointer-events: none; }
.ticks { display: flex; justify-content: space-between; margin-top: var(--s-50); }
/* Board intro: empty state until it scrolls into view */
.board[data-board]:not(.is-live) .scene, .board[data-board]:not(.is-live) .board-main, .board[data-board]:not(.is-live) .seg, .board[data-board]:not(.is-live) .marker { opacity: 0; }
.board[data-board]:not(.is-live) .scene { transform: translateY(12px); }
.board[data-board]:not(.is-live) .seg { transform: scaleX(0); }
.board .scene, .board .board-main { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.board .seg { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.board .marker { transition: opacity .5s var(--ease) .4s; }
.board.is-live .scene { transition-delay: .1s; }
.board.is-live .board-main { transition-delay: .25s; }
.board.is-live .seg:nth-child(1) { transition-delay: .3s; } .board.is-live .seg:nth-child(2) { transition-delay: .36s; } .board.is-live .seg:nth-child(3) { transition-delay: .42s; } .board.is-live .seg:nth-child(4) { transition-delay: .48s; } .board.is-live .seg:nth-child(5) { transition-delay: .54s; } .board.is-live .seg:nth-child(6) { transition-delay: .6s; } .board.is-live .seg:nth-child(7) { transition-delay: .66s; }
@media (prefers-reduced-motion: reduce) { .board[data-board]:not(.is-live) .scene, .board[data-board]:not(.is-live) .seg { transform: none; } .seg span { display: none; } }
@media (max-width: 640px) { .seg span { display: none; } }

/* ---------- At a glance ---------- */
.glance { padding-top: var(--s-500); }
.glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-100); }
.glance-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-50) var(--s-100); align-items: start; padding: var(--s-200); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); font-size: 14px; line-height: 20px; transition: border-color .3s var(--ease); }
.glance-item:hover { border-color: var(--muted); }
.glance-item .ic { grid-row: span 2; color: var(--muted); margin-top: 2px; }
@media (max-width: 960px) { .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .glance-grid { grid-template-columns: 1fr; } }

/* ---------- Tagline reveal ---------- */
.tagline { padding: var(--s-900) 0 var(--s-200); }
.tagline-text { font-size: 48px; line-height: 1; letter-spacing: -0.03em; font-weight: 700; max-width: 680px; text-wrap: balance; }
.tagline-text .w { display: inline-block; opacity: .3; transition: opacity .5s var(--ease); }
.tagline-text .w.on { opacity: 1; }
@media (max-width: 640px) { .tagline-text { font-size: 30px; line-height: 36px; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--s-200); list-style: none; padding: 0; margin: 0; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); padding: var(--s-300); display: grid; gap: var(--s-100); align-content: start; transition: border-color .3s var(--ease), transform .5s var(--ease); }
.card:hover { border-color: var(--muted); transform: translateY(-2px); }
.card .ic { color: var(--muted); width: 24px; height: 24px; }
.card p { color: var(--fg-2); font-size: 14px; line-height: 20px; }
.sec .cards + .card, .sec .prose + .cards { margin-top: var(--s-300); }
.sec > .cards, .sec > .card, .sec > .prose, .sec > .timeline, .sec > .posts, .sec > .faq, .sec > .pull, .sec > .actions, .sec > .photos { margin-top: var(--s-300); }
.sec > .sec-head + * { margin-top: 0; }
@media (max-width: 800px) { .cards.two, .cards.three { grid-template-columns: 1fr; } }

/* Cards with an illustration */
.card.vis { padding: 0; gap: 0; overflow: hidden; }
.card.vis .card-body { padding: var(--s-300); display: grid; gap: var(--s-100); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #F4F1E8; }
.card-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card.vis:hover .card-img { transform: scale(1.03); }
:root[data-theme="dark"] .card-img { filter: brightness(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-img { filter: brightness(.92); } }
.contact-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-400); align-items: center; }
.contact-img { display: block; width: 100%; height: auto; border-radius: var(--r-2xl); border: 1px solid var(--line); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .contact-img { max-width: 320px; } }

/* Now */
.now-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-200); flex-wrap: wrap; }
.now-list { margin: 0; display: grid; }
.now-list > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-100) var(--s-300); padding: var(--s-200) 0; border-top: 1px solid var(--line); }
.now-list dt { font-weight: 600; }
.now-list dd { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 20px; }
@media (max-width: 640px) { .now-list > div { grid-template-columns: 1fr; gap: var(--s-50); } }

/* Pull quote */
.pull { margin: var(--s-400) 0 0; padding: 0; max-width: 680px; }
.pull p { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.pull cite { display: block; margin-top: var(--s-100); font-style: normal; font-size: 14px; line-height: 20px; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-100) var(--s-300); padding: var(--s-300) 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.when { color: var(--muted); padding-top: var(--s-50); }
.timeline h3 { margin-bottom: var(--s-75); }
.timeline p { color: var(--fg-2); max-width: 680px; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: var(--s-50); } }

/* Posts */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.posts a { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: var(--s-300); padding: var(--s-200) var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); text-decoration: none; transition: border-color .3s var(--ease), transform .5s var(--ease); }
.posts a:hover { border-color: var(--muted); transform: translateY(-2px); }
.posts a:active { transform: scale(.995); }
.post-main { display: grid; gap: var(--s-50); }
.post-title { font-weight: 600; font-size: 18px; line-height: 28px; letter-spacing: -0.01em; }
.post-gist { color: var(--muted); font-size: 14px; line-height: 20px; }
.posts time { color: var(--muted); white-space: nowrap; }
.posts .ic { color: var(--muted); }
@media (max-width: 640px) { .posts a { grid-template-columns: minmax(0, 1fr); } .posts time, .posts .ic { display: none; } }

/* Talk */
.talk { gap: var(--s-300); }
.talk-meta { display: grid; gap: var(--s-75); max-width: 680px; }
.slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-100); }
.slide { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
@media (max-width: 640px) { .slides { grid-template-columns: 1fr; } }

/* Placeholder frames */
.ph { position: relative; margin: 0; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.ph-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: var(--s-200); line-height: 20px; }
.ph img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--raised); }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-100); }
.photo { aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
.photo img { filter: grayscale(1); transition: filter .5s var(--ease); }
.photo:hover img { filter: none; }
@media (max-width: 640px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Quotes */
.quotes blockquote { margin: 0; display: grid; gap: var(--s-100); }
.quotes p { font-size: 16px; line-height: 24px; color: var(--fg); }
.quotes cite { font-style: normal; color: var(--muted); }

/* FAQ */
.faq { margin: 0; display: grid; }
.faq > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s-100) var(--s-300); padding: var(--s-300) 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; font-size: 18px; line-height: 28px; letter-spacing: -0.01em; }
.faq dd { margin: 0; color: var(--fg-2); }
@media (max-width: 800px) { .faq > div { grid-template-columns: 1fr; gap: var(--s-75); } }

/* Agents */
.agents { gap: var(--s-200); }
.agents > p { max-width: 680px; }
.agent-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-75); }
.agent-links li { display: flex; align-items: center; gap: var(--s-100); flex-wrap: wrap; }
.agent-links a { font-weight: 600; font-family: var(--mono); font-size: 14px; text-decoration: none; }
.agent-links a:hover { text-decoration: underline; }

/* Contact */
.contact { padding-bottom: var(--s-800); }

/* Theme toggle + footer */
.foot { max-width: var(--max); margin: 0 auto; padding: var(--s-300) var(--s-300) var(--s-600); display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300); justify-content: space-between; align-items: center; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot-links { display: inline-flex; gap: var(--s-200); }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --fg: #000; --fg-2: #222; --muted: #555; --line: #bbb; --surface: #fff; --raised: #fff; }
  .topbar, .menu, .actions, .dot, .skip, .ph, .theme-pick { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .tagline-text .w { opacity: 1 !important; }
  body { font-size: 11pt; }
  main { max-width: none; padding: 0; }
  .sec { padding: 1.5rem 0; break-inside: avoid; }
  a { text-decoration: none; }
}
