/* budanov.us — hand-written, no build. Implements the approved design (12-turn pass, 2026-09-01).
   Every value below is taken verbatim from the design frames; do not "improve" them in place. */

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #14161a;
  --prose: #383d45;
  --meta: #6b7178;
  --rule: #e4e6ea;
  --shot-border: #e0e2e6;
  --accent: #0a6cff;
  --accent-hover: #0850bd;
  --sep: #7f858d;
  --cta-text: #ffffff;
  --plate: #111214;
  --wc-plate: #eef1f8;
  --band: #111214;
  --band-ink: #e8eaec;
  --band-prose: #c6cad0;
  --band-meta: #9aa0a8;
  --band-rule: transparent;
  --shot-shadow: 0 1px 2px rgba(16, 18, 22, .06), 0 10px 28px rgba(16, 18, 22, .08);
  --gutter: clamp(20px, 8.54vw - 13px, 96px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --ink: #e8eaec;
    --prose: #c6cad0;
    --meta: #9aa0a8;
    --rule: #292c31;
    --shot-border: #2b2e33;
    --accent: #5c9bff;
    --accent-hover: #8fbaff;
    --sep: #6c7278;
    --cta-text: #0d1117;
    --band: #191c21;
    --band-rule: #2b2e33;
    --shot-shadow: none;
  }
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 100%; }
body {
  background: var(--bg);
  color: var(--prose);
  font: 400 1.0625rem/1.62 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; }

a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 120ms linear; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- layout ---------- */

.section { padding-inline: var(--gutter); }
.col { max-width: 640px; margin-inline: auto; }
.hair { height: 1px; background: var(--rule); }

/* ---------- nav ---------- */

.nav { padding-block: 20px; border-bottom: 1px solid var(--rule); }
.nav .col { display: flex; justify-content: space-between; align-items: baseline; }
.nav-brand { display: inline-flex; align-items: baseline; gap: 8px; }
.nav-vb { font: 600 1.0625rem/1 system-ui, sans-serif; letter-spacing: -.06em; color: var(--ink); }
.nav-word { font: 600 0.875rem/1 system-ui, sans-serif; color: var(--ink); }
.nav-links { display: inline-flex; align-items: center; gap: 12px; font: 400 0.875rem/1 system-ui, sans-serif; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; color: var(--accent); }
.ext { font-size: .8em; color: var(--sep); }
.nav-here { display: inline-flex; align-items: center; gap: 7px; font: 600 0.875rem/1 system-ui, sans-serif; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.nav-home { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.nav-arrow { font: 400 0.875rem/1 system-ui, sans-serif; color: var(--meta); }
.nav-word-link { text-decoration: underline; text-decoration-color: var(--sep); text-underline-offset: 3px; transition: text-decoration-color 120ms linear; }
.nav-home:hover .nav-word-link { text-decoration-color: var(--accent); }

/* ---------- shared type ---------- */

.sep { color: var(--sep); }
h1 { font: 600 2.5rem/1.1 system-ui, sans-serif; letter-spacing: -.022em; color: var(--ink); }
.subhead { font: 500 1.3125rem/1.4 system-ui, sans-serif; letter-spacing: -.01em; color: var(--ink); }
h2 { font: 600 1.5rem/1.3 system-ui, sans-serif; letter-spacing: -.015em; color: var(--ink); margin-bottom: 10px; }
.index { font: 400 0.875rem/1.75 ui-monospace, Menlo, Consolas, monospace; color: var(--meta); margin-bottom: 10px; }
.label { font: 600 0.875rem/1 system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--meta); margin-bottom: 28px; }
strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.mb28 { margin-bottom: 28px; }

/* ---------- hero ---------- */

.hero { padding-block: 88px 72px; }
.hero .col { display: flex; flex-direction: column; gap: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 400 0.875rem/1.5 system-ui, sans-serif; color: var(--meta); padding-top: 4px; }

/* ---------- proof blocks (home) ---------- */

.blocks { padding-block: 56px; }
.blocks .col { display: flex; flex-direction: column; gap: 56px; }
.rows { margin-top: 20px; display: flex; flex-direction: column; }
.row { border-top: 1px solid var(--rule); padding: 12px 0; font: 400 1.0625rem/1.62 system-ui, sans-serif; color: var(--prose); }

/* ---------- figures ---------- */

.shot { position: relative; overflow: hidden; border: 1px solid var(--shot-border); border-radius: 10px; box-shadow: var(--shot-shadow); background: var(--plate); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-169 { aspect-ratio: 16/9; }
.shot-1610 { aspect-ratio: 16/10; }
.shot-167 { aspect-ratio: 16/7; }
.crop-hud { transform: scale(1.3); transform-origin: 50% 56%; }
.crop-hud-128 { transform: scale(1.28); transform-origin: 50% 56%; }
.crop-window { transform: scale(1.04); transform-origin: 50% 50%; }
.crop-pill { transform: scale(1.5); transform-origin: 50% 50%; }
.wc-fig { margin: 24px 0 0; }
.shot-wc { background: var(--wc-plate); }
.shot-wc img { object-position: 50% 0; }
@media (prefers-color-scheme: dark) {
  .shot-wc img { filter: brightness(.88); }
}
.cap { margin-top: 10px; font: 400 0.875rem/1.5 system-ui, sans-serif; color: var(--meta); }

/* block-03 transition to /dictate (turn 14): claim -> proof -> door */
.go { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 20px; }
.go-line { font: 400 1.5rem/1.35 system-ui, sans-serif; letter-spacing: -.015em; color: var(--ink); }
.go-sub { margin-top: 10px; font: 400 0.875rem/1.5 system-ui, sans-serif; color: var(--meta); }

/* ---------- background strip (home) ---------- */

.bg-strip { padding-block: 56px 64px; }
.bg-strip .col { display: flex; flex-direction: column; gap: 24px; }
.story { font: 400 1.3125rem/1.45 system-ui, sans-serif; letter-spacing: -.005em; color: var(--ink); hyphens: none; }
.timeline-label { font: 500 0.875rem/1.5 system-ui, sans-serif; color: var(--ink); }
.timeline { margin-top: 12px; display: flex; flex-direction: column; }
.timeline .row b { font-weight: 500; color: var(--ink); }

/* ---------- closing + footer ---------- */

.closing { padding-block: 8px 64px; }
.closing-line { margin-top: 28px; font: 400 1.5rem/1.35 system-ui, sans-serif; letter-spacing: -.015em; color: var(--ink); }
.footer { padding-block: 24px; border-top: 1px solid var(--rule); }
.footer .col { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 400 0.875rem/1.5 system-ui, sans-serif; color: var(--meta); }

/* ---------- /dictate ---------- */

.d-hero { padding-block: 88px 72px; }
.d-hero .col { display: flex; flex-direction: column; gap: 24px; }
.d-mark { color: var(--accent); }
.cta-stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 8px; }
.cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--cta-text);
  font: 500 1.0625rem/1 system-ui, sans-serif; padding: 14px 22px; border-radius: 8px;
  text-decoration: none; transition: background-color 120ms linear;
}
.cta:hover { background: var(--accent-hover); color: var(--cta-text); }
.cta-note { font: 400 0.875rem/1.5 system-ui, sans-serif; color: var(--meta); }
.cta-alt { font: 400 0.875rem/1.5 system-ui, sans-serif; }

.features { padding-block: 64px; }
.features .col { display: flex; flex-direction: column; gap: 56px; }
.feature { display: flex; flex-direction: column; gap: 20px; }
.feature h2 { margin-bottom: 12px; }
.feature .index { margin-bottom: 12px; }
.shots { display: flex; flex-direction: column; gap: 16px; }

.privacy { background: var(--band); padding-block: 88px; border-top: 1px solid var(--band-rule); border-bottom: 1px solid var(--band-rule); }
.privacy .col { display: flex; flex-direction: column; gap: 20px; }
.privacy .label { color: var(--band-meta); margin-bottom: 0; }
.privacy p { font: 400 1.0625rem/1.62 system-ui, sans-serif; color: var(--band-prose); }
.privacy .privacy-display { font: 600 2.125rem/1.15 system-ui, sans-serif; letter-spacing: -.022em; color: var(--band-ink); }
.privacy .privacy-fine { margin-top: 8px; font: 400 0.875rem/1.65 system-ui, sans-serif; color: var(--band-meta); }
.privacy a { color: #5c9bff; }
.privacy a:hover { color: #8fbaff; }

.download-mid { padding-block: 56px 0; }
.download-mid .col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.download-note { margin-top: 8px; font: 400 0.875rem/1.65 system-ui, sans-serif; color: var(--meta); }
.builtby { padding-block: 56px; }
.builtby-lead { font: 400 1.3125rem/1.45 system-ui, sans-serif; color: var(--ink); }
.builtby p + p { margin-top: 16px; }
.d-footer { padding-block: 24px 28px; }

/* ---------- 404 ---------- */

.nf { padding-block: 120px 160px; }
.nf .col { display: flex; flex-direction: column; gap: 20px; }
.nf-line { font: 600 2.125rem/1.2 system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font: 400 1.0625rem/1.5 system-ui, sans-serif; color: var(--meta); }

/* ---------- ≥1600 (wide tier — design frame 1L, marginalia) ----------
   Additive fourth reference width (1728). Band 1240, grid 270/700/270: prose in
   the middle track (~72ch @ 19px), block indices and section labels move into
   the left margin, hairlines and figures run the full band. Below 1600 the grid
   collapses to the approved single 640 column. */

@media (min-width: 1600px) {
  .col { max-width: 1240px; }

  .hero .col, .d-hero .col, .bg-strip .col, .closing .col, .privacy .col,
  .download-mid .col, .builtby .col, .nf .col {
    display: grid; grid-template-columns: 270px 700px 270px; column-gap: 0;
  }
  .download-mid .col { justify-items: start; }
  .hero .col > *, .d-hero .col > *, .bg-strip .col > *, .closing .col > *,
  .privacy .col > *, .download-mid .col > *, .builtby .col > *,
  .nf .col > * { grid-column: 2; min-width: 0; }
  .footer .col { padding-left: 270px; }

  .blocks .col > div { display: grid; grid-template-columns: 270px 700px 270px; column-gap: 0; }
  .blocks .col > div > * { grid-column: 2; min-width: 0; }
  .feature { display: grid; grid-template-columns: 270px 700px 270px; column-gap: 0; }
  .feature > div:not(.shots) { display: contents; }
  .feature h2, .feature p { grid-column: 2; min-width: 0; }

  .blocks .col > div > .index, .feature .index,
  .bg-strip .col > .label, .privacy .col > .label {
    grid-column: 1; grid-row: 1;
    justify-self: end; text-align: right; padding-right: 40px;
    margin-bottom: 0; line-height: 1.7;
  }
  .blocks .col > div > figure, .blocks .col > div > .wc-fig,
  .feature > figure, .feature > .shots, .blocks .col > div > .go,
  .closing .col > .hair { grid-column: 1 / -1; }
  .blocks .col > div > figure, .feature > figure, .feature > .shots { margin-top: 32px; }
  .go { margin-top: 24px; padding-top: 24px; }
  .go-line { font-size: 1.75rem; }
  .go > * { max-width: 700px; margin-left: 270px; }

  body, .row { font-size: 1.1875rem; line-height: 1.6; }
  h1 { font-size: 3.25rem; line-height: 1.08; letter-spacing: -.024em; }
  .subhead { font-size: 1.5rem; line-height: 1.35; letter-spacing: -.012em; }
  h2 { font-size: 1.75rem; line-height: 1.25; letter-spacing: -.018em; margin-bottom: 14px; }
  .story { font-size: 1.5rem; letter-spacing: -.012em; }
  .builtby-lead { font-size: 1.5rem; letter-spacing: -.012em; }
  .closing-line { font-size: 1.75rem; letter-spacing: -.018em; margin-top: 32px; }
  .privacy .privacy-display { font-size: 2.75rem; line-height: 1.12; letter-spacing: -.024em; }
  .privacy .privacy-fine, .download-note { font-size: 0.9375rem; }
  .meta, .cta-note, .cta-alt, .cap, .footer .col, .nf-links, .hero-meta,
  .nav-word, .nav-links, .nav-back, .label, .timeline-label { font-size: 0.9375rem; }
  .index { font-size: 0.9375rem; margin-bottom: 12px; }
  .nav-vb { font-size: 1.1875rem; }
  .nav { padding-block: 24px; }
  .timeline-label { color: var(--meta); font-weight: 400; }
  .row { padding: 14px 0; }
  .rows, .timeline { margin-top: 24px; }
  .cta { font-size: 1.1875rem; padding: 16px 26px; }
  .nf-line { font-size: 2.375rem; }

  .hero, .d-hero { padding-block: 112px 88px; }
  .blocks { padding-block: 72px; }
  .blocks .col, .features .col { gap: 72px; }
  .features { padding-block: 80px; }
  .feature { gap: 24px; }
  .privacy { padding-block: 120px; }
  .download-mid { padding-block: 72px 0; }
  .builtby { padding-block: 72px 80px; }
  .bg-strip { padding-block: 72px 80px; }
  .d-mark-hero { width: 104px; height: 82px; }

  .shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .shots .shot-169, .shots .shot-167 { aspect-ratio: 16/10; }
  .shots .crop-hud { transform: scale(1.24); }
  .shots .crop-pill { transform: scale(1.28); }
  /* Full-band singles need no zoom at 1240 — the 2560 masters then map ~1:1 to
     retina device pixels instead of being upscaled (sharpness fix). */
  .blocks .col > div > figure .crop-hud,
  .feature > figure .crop-hud-128 { transform: scale(1.03); }
  /* The WholeCall capture is 1x/1023px until the owner reshoots in Retina —
     never stretch it past its native width. Delete this rule after the 2x
     recapture lands. */
  .wc-fig { max-width: 1023px; width: 100%; justify-self: center; margin-inline: auto; }
}

/* ---------- ≤640 (mobile) ---------- */

@media (max-width: 640px) {
  h1 { font-size: 2rem; letter-spacing: -.02em; }
  .subhead { font-size: 1.1875rem; }
  h2 { font-size: 1.3125rem; letter-spacing: -.01em; }
  .privacy .privacy-display { font-size: 1.75rem; }
  .go-line { font-size: 1.3125rem; }
  .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
  .row { font-size: 1rem; line-height: 1.55; padding: 14px 0; }
  .rows { margin-top: 16px; }
  .shot-169:not(.shot-wc), .shot-1610 { aspect-ratio: 4/3; }
  .crop-hud, .crop-hud-128 { transform: scale(1.2); }
  .crop-window { transform: scale(1.02); }
  .shot-167 { display: none; }
  .hero, .d-hero { padding-block: 56px 48px; }
  .blocks .col, .features .col { gap: 40px; }
  .privacy { padding-block: 44px; }
  .nf { padding-block: 88px 120px; }
}
