:root {
  --bg: #f6f3ec;
  --ink: #141414;
  --muted: #5e594f;
  --line: rgba(20, 20, 20, 0.12);
  --coal: #101114;
  --paper: #fbf9f4;
  --blue: #1e4bff;
  --blue-ink: #1636b8;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 5.1rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 0.9em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 9; }
.wrap { width: min(var(--wrap), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - var(--pad) * 2)); }
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark { width: 36px; height: 36px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--serif); font-weight: 560; font-size: 1.05rem; letter-spacing: -0.03em; }
.logo-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; font-size: 0.92rem; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font: inherit; }
.kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #2a2926; max-width: 42rem; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 14px 18px; border-radius: 999px; font-weight: 650;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--blue-ink); }
.btn-small { padding: 10px 14px; font-size: 0.88rem; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.micro { color: var(--muted); font-size: 0.88rem; }
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  grid-template-areas: "copy portrait" "actions portrait";
  gap: 28px 48px;
  align-items: end;
  padding: 28px 0 18px;
  min-height: calc(100vh - 72px);
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-actions { grid-area: actions; }
.portrait { grid-area: portrait; margin: 0; }
.portrait img {
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 6px;
  background: #ddd8ce;
}
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 0.92rem; }
.portrait figcaption span { color: var(--muted); }
.paths { list-style: none; padding: 8px 0 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.paths a { text-underline-offset: 3px; }
.band { padding: 84px 0; }
.band.tight { padding-top: 20px; }
.coal { background: var(--coal); color: #f6f3ec; }
.coal .kicker, .coal .micro { color: #b7b2a8; }
.coal a { color: #f6f3ec; }
.rail { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.rail li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.rail span { font-family: var(--serif); color: var(--blue); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.panel, .work { background: #171a20; color: #f6f3ec; border-radius: 6px; padding: 22px; margin: 0; }
.work { background: transparent; color: inherit; padding: 0; }
.panel ol { list-style: none; padding: 0; margin: 12px 0; }
.panel li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.panel figcaption, .work figcaption { color: var(--muted); font-size: 0.88rem; }
.coal .panel figcaption { color: #b7b2a8; }
.project { padding: 16px 0; border-top: 1px solid var(--line); }
.project h3 a { text-decoration: none; }
.index { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.index > div, .index a {
  display: grid; grid-template-columns: 42px 1fr; gap: 8px 12px;
  padding: 22px 18px 22px 0; text-decoration: none; border-bottom: 1px solid var(--line);
}
.index a:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--line); }
.index a:nth-child(even) { padding-left: 28px; }
.index em { font-family: var(--serif); font-style: normal; color: var(--blue); grid-row: span 2; }
.index span { color: var(--muted); grid-column: 2; }
.dossier, .media-row { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.author-strip { display: flex; gap: 16px; align-items: center; margin: 28px 0; }
.author-strip img { width: 84px; height: 108px; object-fit: cover; border-radius: 4px; }
.two { display: grid; gap: 18px; }
.two article { padding-top: 16px; border-top: 1px solid var(--line); }
.hero-plain { padding: 64px 0 10px; }
.prose h2 { margin-top: 1.4em; }
.steps, .clean, .related { padding: 0; margin: 0 0 1rem; }
.steps { list-style: none; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.clean li { margin: 0 0 8px; }
.related { list-style: none; }
.related li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.related span { color: var(--muted); }
.byline { border-left: 2px solid var(--blue); padding-left: 14px; color: var(--muted); }
.prompt { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); margin: 16px 0 24px; }
.prompt-top, .prompt pre { padding: 14px 16px; }
.prompt-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.prompt pre, pre.code { white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 0.86rem; }
.method-line { color: #2c2a26; }
.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 28px; }
.lib a { display: flex; flex-direction: column; text-decoration: none; padding: 16px 0; border-top: 1px solid var(--line); }
.lib span { color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.qr-wrap { margin-top: 12px; }
.qr { width: 148px; height: 148px; }
.stage { margin: 0; padding: 18px; border-radius: 6px; background: var(--coal); color: #f6f3ec; }
.stage ol { margin: 8px 0 0; padding-left: 18px; }
.stage-kicker { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: #b7b2a8; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 80px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot a { display: block; text-decoration: none; margin: 6px 0; }
.sticky { display: none; }
.text-link { text-underline-offset: 3px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--pad) 18px; flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
  .hero-home { grid-template-columns: 1fr; grid-template-areas: "copy" "portrait" "actions"; min-height: 0; padding-top: 18px; }
  .portrait img { height: 68vw; min-height: 280px; max-height: 520px; }
  .split, .dossier, .media-row, .index, .lib, .foot-grid { grid-template-columns: 1fr; }
  .index a, .index a:nth-child(odd), .index a:nth-child(even) { border-right: 0; padding-left: 0; padding-right: 0; }
  .band { padding: 56px 0; }
  .sticky { display: block; position: sticky; bottom: 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); }
  .sticky .btn { width: 100%; justify-content: center; }
  .related li { flex-direction: column; }
}
@media (min-width: 1100px) { .sticky { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
