/* Self-hosted fonts. Boska and Satoshi: Fontshare, ITF Free Font License. Source Serif 4: SIL Open Font License. */
@font-face { font-family: "Boska"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/boska-500.woff2") format("woff2"); }
@font-face { font-family: "Boska"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/boska-700.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/satoshi-700.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/source-serif-4-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/source-serif-4-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/source-serif-4-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/source-serif-4-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* sayerji.com — editorial design system
   Paper, ink, one green. Oxblood is reserved for document labels. */

:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem);
  --text-2xl: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --text-hero: clamp(3.75rem, 1.4rem + 10.5vw, 9.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: "Boska", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  --font-ui: "Satoshi", "Helvetica Neue", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

:root, [data-theme="light"] {
  --paper: #f4efe4;
  --paper-2: #ebe4d3;
  --paper-3: #e1d9c4;
  --ink: #16201b;
  --ink-2: #444f49;
  --ink-3: #5c665f;
  --rule: #c9c1ac;
  --green: #2b5a4b;
  --green-hover: #1f4538;
  --green-deep: #1d3b31;
  --on-green: #f4efe4;
  --oxblood: #8a2d2d;
  --mark: #e9d78b;
  --shadow: 0 1px 2px rgb(22 32 27 / 0.08), 0 12px 32px rgb(22 32 27 / 0.12);
}

[data-theme="dark"] {
  --paper: #111714;
  --paper-2: #18201c;
  --paper-3: #202a25;
  --ink: #ece6d6;
  --ink-2: #b4bdb6;
  --ink-3: #8a948d;
  --rule: #2e3933;
  --green: #86bba5;
  --green-hover: #a3d0bc;
  --green-deep: #1e362c;
  --on-green: #ece6d6;
  --oxblood: #d98a84;
  --mark: #6b5c22;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0 0 var(--space-5); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mark); color: var(--ink); }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: var(--space-4); top: -4rem; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-4); font-family: var(--font-ui); font-size: var(--text-sm); z-index: 100; }
.skip:focus { top: var(--space-3); }

.wrap { width: min(100% - 2 * clamp(1.25rem, 4vw, 3rem), var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }
.brand svg { width: 2rem; height: 2rem; color: var(--green); }
.nav { display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; }
.nav a { text-decoration: none; padding-block: var(--space-2); border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .nav__cta { border: 1px solid var(--ink); padding: var(--space-2) var(--space-4); border-radius: 999px; }
.nav .nav__cta:hover { background: var(--ink); color: var(--paper); }
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; transition: border-color 0.2s; }
.icon-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: 4.25rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--space-4) clamp(1.25rem, 4vw, 3rem) var(--space-8); transform: translateY(-110%); visibility: hidden; transition: transform 0.35s var(--ease), visibility 0.35s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: var(--text-lg); font-family: var(--font-display); padding-block: var(--space-3); border-bottom: 1px solid var(--rule); }
  .nav .nav__cta { border-radius: 0; border: 0; border-bottom: 1px solid var(--rule); padding: var(--space-3) 0; }
  .nav .nav__cta:hover { background: transparent; color: inherit; }
}

/* ---------- type helpers ---------- */
.kicker { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.kicker--green { color: var(--green); }
.kicker--doc { color: var(--oxblood); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-sm); }
.ui { font-family: var(--font-ui); }
.prose { max-width: 66ch; }
.prose h2 { font-size: var(--text-xl); margin: var(--space-12) 0 var(--space-4); }
.prose h3 { font-size: var(--text-lg); font-family: var(--font-ui); font-weight: 700; margin: var(--space-8) 0 var(--space-3); letter-spacing: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose a:not(.btn) { color: var(--green); }
.prose a.link-arrow { color: var(--ink); }
.prose blockquote { margin: var(--space-8) 0; padding-left: var(--space-5); border-left: 2px solid var(--green); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.35; }

.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-weight: 700; font-size: var(--text-sm); text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid var(--green); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.btn--primary { background: var(--green); color: var(--on-green); }
[data-theme="dark"] .btn--primary { color: #0e1d17; }
.btn--primary:hover { background: var(--green-hover); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link-arrow { font-family: var(--font-ui); font-weight: 700; font-size: var(--text-sm); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

/* ---------- sections ---------- */
.section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(var(--space-6), 4vw, var(--space-16)); }
.split__label { padding-top: 0.35rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }
.section h2.display { font-size: var(--text-2xl); max-width: 18ch; margin-bottom: var(--space-6); }

/* ---------- home hero ---------- */
.hero { padding-top: clamp(var(--space-8), 5vw, var(--space-16)); padding-bottom: clamp(var(--space-12), 7vw, var(--space-20)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: end; }
.hero h1 { font-size: var(--text-hero); font-weight: 500; line-height: 0.92; letter-spacing: -0.03em; margin: var(--space-5) 0 var(--space-8); }
.hero .kicker { display: block; }
.hero__deck { font-size: var(--text-lg); max-width: 36ch; margin-bottom: var(--space-4); }
.hero__sub { max-width: 52ch; color: var(--ink-2); margin-bottom: var(--space-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: saturate(0.96); }
.portrait__img { position: relative; }
.portrait__img::before { content: ""; position: absolute; inset: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4); border: 1px solid var(--ink-3); opacity: 0.45; z-index: -1; }
.portrait figcaption { margin-top: var(--space-5); font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-3); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; }
}

/* ---------- now strip ---------- */
.now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.now > * { padding: var(--space-6) var(--space-6) var(--space-6) 0; }
.now > * + * { padding-left: var(--space-6); border-left: 1px solid var(--rule); }
.now h3 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-3); }
.now p { color: var(--ink-2); font-size: var(--text-sm); font-family: var(--font-ui); margin-bottom: var(--space-4); line-height: 1.55; }
@media (max-width: 860px) { .now { grid-template-columns: 1fr; } .now > *, .now > * + * { padding: var(--space-6) 0; border-left: 0; } .now > * + * { border-top: 1px solid var(--rule); } }

/* ---------- rooms ---------- */
.rooms li { display: grid; grid-template-columns: 3.5rem minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-6); row-gap: var(--space-3); align-items: baseline; padding-block: var(--space-6); border-top: 1px solid var(--rule); }
.rooms li:last-child { border-bottom: 1px solid var(--rule); }
.rooms li > .n { grid-row: 1 / span 2; }
.rooms li > h3 { grid-row: 1 / span 2; grid-column: 2; }
.rooms li > p { grid-column: 3; grid-row: 1; }
.rooms li > .link-arrow { grid-column: 3; grid-row: 2; justify-self: start; }
.rooms .n { font-family: var(--font-ui); font-weight: 700; font-size: var(--text-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rooms h3 { font-size: var(--text-xl); }
.rooms h3 a { text-decoration: none; }
.rooms h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.rooms p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); font-family: var(--font-ui); line-height: 1.55; }
@media (max-width: 860px) { .rooms li { grid-template-columns: 2.5rem 1fr; } .rooms li > h3, .rooms li > p, .rooms li > .link-arrow { grid-column: 2; grid-row: auto; } .rooms li > .n { grid-row: auto; } }

/* ---------- document band ---------- */
.band { background: var(--green-deep); color: var(--on-green); padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.band .kicker { color: color-mix(in oklab, var(--on-green) 70%, transparent); }
.band__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.band h2 { font-size: var(--text-2xl); margin: var(--space-4) 0 var(--space-6); max-width: 14ch; }
.band p { max-width: 46ch; color: color-mix(in oklab, var(--on-green) 86%, transparent); }
.band .link-arrow { color: var(--on-green); }
.band dl { display: grid; gap: var(--space-4); margin: var(--space-8) 0; font-family: var(--font-ui); font-size: var(--text-sm); }
.band dt { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--text-xs); color: color-mix(in oklab, var(--on-green) 70%, transparent); }
.band dd { margin: var(--space-1) 0 0; color: var(--on-green); }
.doc { margin: 0; box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); background: #fff; }
.doc img { width: 100%; }
@media (max-width: 860px) { .band__grid { grid-template-columns: 1fr; } }

/* ---------- numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.nums div { border-top: 1px solid var(--ink); padding-top: var(--space-4); }
.nums dt { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); white-space: nowrap; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; margin-bottom: var(--space-3); }
.nums dd { margin: 0; font-family: var(--font-ui); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }
.nums a { color: var(--ink-2); }
@media (max-width: 960px) { .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .nums { grid-template-columns: 1fr; } }

/* ---------- posts ---------- */
.posts li { padding-block: var(--space-5); border-top: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-6); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts time { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.5rem; }
.posts h3 { font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-2); }
.posts h3 a { text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.posts p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); font-family: var(--font-ui); line-height: 1.55; }
.tag { display: inline-block; font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oxblood); border: 1px solid currentColor; padding: 0.1rem 0.5rem; margin-right: var(--space-2); }
@media (max-width: 640px) { .posts li { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- start here ---------- */
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.paths h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--ink); }
.paths p { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
@media (max-width: 960px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .paths { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-8), 4vw, var(--space-12)); }
.page-head h1 { font-size: var(--text-2xl); max-width: 16ch; margin: var(--space-4) 0 var(--space-6); }
.page-head .lede { max-width: 48ch; }
.crumbs { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.facts { display: grid; grid-template-columns: 11rem minmax(0, 1fr); font-family: var(--font-ui); font-size: var(--text-sm); margin: var(--space-6) 0 var(--space-8); max-width: 44rem; }
.facts dt, .facts dd { padding-block: var(--space-3); border-top: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 700; color: var(--ink-2); }
.facts dd:last-of-type, .facts dt:last-of-type { border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { padding-bottom: 0; border-bottom: 0; } .facts dd { border-top: 0; padding-top: var(--space-1); } .facts dt { border-top: 1px solid var(--rule); } }

.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 6rem; }
@media (max-width: 860px) { .aside { position: static; } }
.cover { box-shadow: var(--shadow); max-width: 20rem; }
.figure-cap { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-3); margin-top: var(--space-3); line-height: 1.5; }

.callout { border-left: 3px solid var(--green); background: var(--paper-2); padding: var(--space-5) var(--space-6); margin: var(--space-8) 0; font-family: var(--font-ui); font-size: var(--text-sm); line-height: 1.6; max-width: 44rem; }
.callout strong { display: block; margin-bottom: var(--space-2); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: var(--space-6) 0 var(--space-8); }
table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: var(--text-sm); }
th, td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-top: 1px solid var(--rule); }
th { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; border-top: 1px solid var(--ink); }
tr:last-child td { border-bottom: 1px solid var(--rule); }
td strong { font-weight: 700; }

.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-block: var(--space-8); }
.doc-grid figure { margin: 0; }
.doc-grid img { box-shadow: var(--shadow); background: #fff; }
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; max-width: 26rem; } }

.bio { border-top: 1px solid var(--rule); padding-block: var(--space-6); }
.bio h3 { font-family: var(--font-ui); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--space-3); font-weight: 700; }
.bio p:last-child { margin-bottom: 0; }

.link-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-16); }
.link-groups h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--ink); }
.link-groups li { border-top: 1px solid var(--rule); }
.link-groups li a { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); text-decoration: none; font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; }
.link-groups li a span { color: var(--ink-3); font-weight: 400; text-align: right; }
.link-groups li a:hover strong { text-decoration: underline; }
@media (max-width: 760px) { .link-groups { grid-template-columns: 1fr; } }

.timeline li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-4); border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .y { font-family: var(--font-ui); font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--green); }
.timeline p { margin: 0; font-size: var(--text-base); }
.timeline .src { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-3); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--ink); padding-block: var(--space-16) var(--space-8); margin-top: clamp(var(--space-12), 8vw, var(--space-24)); font-family: var(--font-ui); font-size: var(--text-sm); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--space-10); }
.footer h2 { font-family: var(--font-ui); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin-bottom: var(--space-4); }
.footer li { margin-bottom: var(--space-2); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__brand p { max-width: 34ch; color: var(--ink-2); margin-top: var(--space-4); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-5); border-top: 1px solid var(--rule); color: var(--ink-3); font-size: var(--text-xs); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  .header, .footer, .skip, .icon-btn { display: none; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   v1.1 — cinematic hero, feature, quote band, arc, ledger, shelf
   ===================================================================== */
.btn--paper { background: #f4efe4; color: #16201b; border-color: #f4efe4; }
.btn--paper:hover { background: #fff; transform: translateY(-1px); }
.link-arrow--light { color: #f4efe4; }

/* header floats over the home hero until scrolled */
.header--over { position: fixed; left: 0; right: 0; width: 100%; }
.header--over:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #f4efe4; }
.header--over:not(.is-scrolled) .brand svg { color: #f4efe4; }
.header--over:not(.is-scrolled) .nav .nav__cta { border-color: rgb(244 239 228 / 0.7); }
.header--over:not(.is-scrolled) .nav .nav__cta:hover { background: #f4efe4; color: #16201b; }
.header--over:not(.is-scrolled) .nav a:hover, .header--over:not(.is-scrolled) .nav a[aria-current="page"] { border-bottom-color: #f4efe4; }
.header--over:not(.is-scrolled) .icon-btn { border-color: rgb(244 239 228 / 0.45); }
.header--over:not(.is-scrolled) .icon-btn:hover { border-color: #f4efe4; }
@media (max-width: 860px) {
  .header--over .nav a, .header--over:not(.is-scrolled) .nav a { color: var(--ink); }
  .header--over:not(.is-scrolled) .nav .nav__cta:hover { background: transparent; color: var(--ink); }
}

/* hero */
.hero2 { position: relative; isolation: isolate; background: #0f1a15; color: #f4efe4; overflow: hidden; min-height: min(100svh, 60rem); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 8rem; }
.hero2__media { position: absolute; inset: 0 0 0 auto; width: 72%; z-index: -1; }
.hero2__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 22%; filter: saturate(0.92) contrast(1.02); }
.hero2__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0f1a15 0%, rgb(15 26 21 / 0.7) 24%, rgb(15 26 21 / 0) 58%),
              linear-gradient(0deg, #0f1a15 0%, rgb(15 26 21 / 0.0) 38%),
              linear-gradient(180deg, rgb(15 26 21 / 0.55) 0%, rgb(15 26 21 / 0) 22%); }
.hero2__in { padding-bottom: clamp(var(--space-10), 6vw, var(--space-16)); }
.hero2 .kicker { color: rgb(244 239 228 / 0.78); display: block; }
.hero2 h1 { font-size: var(--text-hero); font-weight: 500; line-height: 0.9; letter-spacing: -0.03em; margin: var(--space-5) 0 var(--space-8); color: #f4efe4; }
.hero2__deck { font-size: var(--text-lg); line-height: 1.4; max-width: 30ch; margin-bottom: var(--space-4); }
.hero2__sub { max-width: 44ch; color: rgb(244 239 228 / 0.78); margin-bottom: var(--space-8); }
.hero2 .hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgb(244 239 228 / 0.28); }
.rail li { padding: var(--space-5) var(--space-6) var(--space-6) 0; }
.rail li + li { padding-left: var(--space-6); border-left: 1px solid rgb(244 239 228 / 0.18); }
.rail .kicker { color: #9fd0bb; margin-bottom: var(--space-2); }
.rail p { margin: 0; font-family: var(--font-ui); font-size: var(--text-sm); line-height: 1.5; color: rgb(244 239 228 / 0.9); }
.rail strong { font-weight: 700; color: #fff; }
@media (max-width: 960px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rail li:nth-child(3) { padding-left: 0; border-left: 0; } .rail li:nth-child(n+3) { border-top: 1px solid rgb(244 239 228 / 0.18); } }
@media (max-width: 860px) {
  .hero2 { padding-top: 0; min-height: 0; justify-content: flex-start; }
  .hero2__media { position: relative; inset: auto; width: 100%; height: min(112vw, 34rem); z-index: 0; }
  .hero2__media img { object-position: 60% 18%; }
  .hero2__media::after { background: linear-gradient(0deg, #0f1a15 0%, rgb(15 26 21 / 0) 45%), linear-gradient(180deg, rgb(15 26 21 / 0.6) 0%, rgb(15 26 21 / 0) 24%); }
  .hero2__in { margin-top: calc(-1 * var(--space-12)); position: relative; }
  .hero2 h1 { font-size: clamp(3.5rem, 18vw, 6rem); }
}
@media (max-width: 520px) { .rail { grid-template-columns: 1fr; } .rail li, .rail li + li { padding-left: 0; border-left: 0; } .rail li + li { border-top: 1px solid rgb(244 239 228 / 0.18); } }

/* feature: Shadow Empire */
.feature { padding-top: clamp(var(--space-12), 7vw, var(--space-20)); }
.feature__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; margin-bottom: clamp(var(--space-10), 6vw, var(--space-16)); }
.feature__cover { margin: 0; }
.feature__cover img { width: 100%; max-width: 24rem; box-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 28px 60px rgb(22 32 27 / 0.28); }
.feature__text h3 { font-size: var(--text-2xl); margin: var(--space-4) 0 var(--space-5); max-width: 14ch; }
.feature__text .lede { max-width: 44ch; }
.pull { margin: var(--space-8) 0; padding: 0 0 0 var(--space-6); border-left: 3px solid var(--oxblood); max-width: 40ch; }
.pull p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.18; margin: 0 0 var(--space-3); text-wrap: balance; }
.pull footer { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-3); line-height: 1.5; letter-spacing: 0.02em; }
.pull--lg { border-left-color: var(--green); max-width: none; margin-block: var(--space-12); }
.pull--lg p { font-size: var(--text-2xl); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin: 0 0 var(--space-6); font-family: var(--font-ui); font-size: var(--text-sm); max-width: 40rem; }
.two-col > div { border-top: 1px solid var(--ink); padding-top: var(--space-3); }
.two-col dt { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); margin-bottom: var(--space-1); }
.two-col dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.feature__text .hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; margin-top: var(--space-6); }
.now--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.now--2 > * + * { border-left: 1px solid var(--rule); }
@media (max-width: 860px) {
  .feature__grid { grid-template-columns: 1fr; }
  .feature__cover img { max-width: 15rem; }
  .two-col { grid-template-columns: 1fr; }
  .now--2 { grid-template-columns: 1fr; }
  .now--2 > * + * { border-left: 0; padding-left: 0; }
}

/* quote band */
.quote-band { background: var(--green-deep); color: var(--on-green); padding-block: clamp(var(--space-16), 10vw, var(--space-32)); }
.quote-band .kicker { color: color-mix(in oklab, var(--on-green) 70%, transparent); }
.quote-band blockquote { margin: var(--space-6) 0 0; max-width: 62rem; position: relative; }
.quote-band blockquote p { font-family: var(--font-display); font-size: clamp(2rem, 1.1rem + 3.8vw, 4.25rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 var(--space-8); max-width: 26ch; text-wrap: balance; position: relative; }
.quote-band footer { font-family: var(--font-ui); font-size: var(--text-sm); line-height: 1.6; max-width: 56ch; color: color-mix(in oklab, var(--on-green) 82%, transparent); }
.quote-band footer a { color: var(--on-green); }

/* arc */
.arc-head { max-width: 46rem; margin-bottom: clamp(var(--space-10), 6vw, var(--space-16)); }
.arc-head h2 { margin: var(--space-4) 0 var(--space-5); }
.arc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.arc li { padding: var(--space-6) var(--space-5) var(--space-6) 0; display: flex; flex-direction: column; }
.arc li + li { padding-left: var(--space-5); border-left: 1px solid var(--rule); }
.arc__n { font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1; color: var(--green); margin-bottom: var(--space-3); }
.arc__y { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-2); }
.arc h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.arc p { font-size: var(--text-sm); line-height: 1.6; color: var(--ink-2); margin-bottom: var(--space-4); }
.arc .src { margin-top: auto; font-family: var(--font-ui); font-size: var(--text-xs); }
@media (max-width: 1100px) { .arc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .arc li, .arc li + li { padding: var(--space-6) var(--space-5) var(--space-6) 0; border-left: 0; border-top: 1px solid var(--rule); } .arc li:nth-child(1), .arc li:nth-child(2) { border-top: 0; } .arc li:nth-child(even) { padding-left: var(--space-5); border-left: 1px solid var(--rule); } }
@media (max-width: 640px) { .arc { grid-template-columns: 1fr; } .arc li, .arc li:nth-child(even) { padding-left: 0; border-left: 0; } .arc li:nth-child(2) { border-top: 1px solid var(--rule); } }

/* ledger */
.ledger li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: var(--space-6); align-items: baseline; padding-block: var(--space-5); border-top: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger time { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.ledger p { margin: 0; font-size: var(--text-base); line-height: 1.5; }
.ledger a { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 720px) { .ledger li { grid-template-columns: 1fr; gap: var(--space-2); } }

/* shelf */
.shelf { background: var(--paper-2); }
.shelf__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: center; }
.shelf figure { margin: 0; }
.shelf figure img { width: 100%; max-width: 15rem; box-shadow: var(--shadow); background: #fff; }
.shelf h3 { font-size: var(--text-2xl); margin: var(--space-3) 0 var(--space-4); }
.shelf .lede { max-width: 46ch; }
@media (max-width: 640px) { .shelf__grid { grid-template-columns: 1fr; } .shelf figure img { max-width: 11rem; } }

/* about */
.prose--long { max-width: 62ch; }
.dropcap::first-letter { font-family: var(--font-display); float: left; font-size: 5.2em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--green); font-weight: 500; }
.cover--wide { max-width: 100%; }

/* subtle paper grain */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.035; }

/* ---------- v1.2 review fixes ---------- */
h2.kicker { margin: 0; }
.band, .quote-band { border-block: 1px solid color-mix(in oklab, var(--on-green) 22%, transparent); }
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body::before { display: none !important; }
  .hero2 { min-height: 0; background: #fff; color: #000; }
  .hero2 h1, .hero2 .kicker, .hero2__deck, .hero2__sub { color: #000; }
  .hero2__media { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
  .quote-band, .band { background: #fff; color: #000; border: 1px solid #000; }
  .quote-band footer, .quote-band .kicker { color: #000; }
}

/* ---------- featured talk and research project ---------- */
.talk__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.talk__media { position: relative; display: block; box-shadow: var(--shadow); background: #0b1c33; }
.talk__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.talk__play { position: absolute; right: 1rem; bottom: 1rem; width: 3.5rem; height: 3.5rem; border-radius: 999px; display: grid; place-items: center; background: rgb(244 239 228 / 0.94); color: #16201b; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); transition: transform 0.25s var(--ease); }
.talk__media:hover .talk__play { transform: scale(1.06); }
.talk__text h3, .research__text h3 { font-size: var(--text-2xl); margin: var(--space-4) 0 var(--space-5); max-width: 16ch; }
.talk__text .lede, .research__text .lede { max-width: 46ch; }
.talk__text .hero__cta, .research__text .hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; margin-top: var(--space-6); }
.research { background: var(--paper-2); }
.research__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.research__media { margin: 0; }
.research__media img { width: 100%; height: auto; box-shadow: var(--shadow); background: #000; }
@media (max-width: 860px) { .talk__grid, .research__grid { grid-template-columns: 1fr; } .research__media { order: -1; } }
