/* A Path Forward · Field Guide (D-0053). Hand-built: no libraries, no script. */
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Archivo Narrow'; src: url('fonts/ArchivoNarrow%5Bwght%5D.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('fonts/AtkinsonHyperlegibleNext%5Bwght%5D.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --body: 'Atkinson Hyperlegible Next', -apple-system, "Segoe UI", sans-serif;
  --display: 'Spectral', Georgia, serif;
  --label: 'Archivo Narrow', "Arial Narrow", sans-serif;
  --paper: #f4f2ec;        /* caliche */
  --stone: #e2ded3;        /* limestone */
  --ink: #1b221e;          /* cedar */
  --ink-2: #4c554f;
  --rule: #b9b3a5;
  --help: #a3195b;         /* prickly pear: help only */
  --help-ink: #ffffff;
  --dusk: #10140f;         /* behind the photo */
  --dusk-ink: #fbf6ea;
  --sun-core: #fff6dc;
  --sun-glow: #ffd27a;
  --band-h: 44px;
  --edge: max(20px, calc((100vw - 1180px) / 2));
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #131713;
    --stone: #1c221d;
    --ink: #ece8de;
    --ink-2: #b0b6ae;
    --rule: #3b443d;
    --help: #ff8fbf;
    --help-ink: #1a0a12;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--band-h) + 12px); }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.5; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
main:focus { outline: none; }
.kicker { font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 18px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 56px; }

/* The help band: always there, never animated. */
.band { position: sticky; top: 0; z-index: 20; min-height: var(--band-h); display: flex; align-items: center; padding: 6px var(--edge); background: var(--help); color: var(--help-ink); font-weight: 700; }
.band p { margin: 0; font-size: 17px; }
.band a { display: inline-block; padding: 4px 4px; font-size: 19px; font-variant-numeric: tabular-nums; }
.band-label { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; margin-right: 10px; }
.sep { margin: 0 8px; }

/* Hero: one photograph in three layers; the sun climbs as you scroll. Text on a static scrim. */
.rise { position: relative; height: 170svh; view-timeline: --rise block; background: var(--dusk); }
.stage { position: sticky; top: var(--band-h); height: calc(100svh - var(--band-h)); min-height: 520px; overflow: clip; container-type: size; }
.cover { --r: 1.7778; --w: max(100cqw, calc(100cqh * var(--r))); position: absolute; width: var(--w); aspect-ratio: 1920 / 1080;
  left: clamp(calc(100cqw - var(--w)), calc(50cqw - 0.45 * var(--w)), 0px);
  top: clamp(calc(100cqh - var(--w) / var(--r)), calc(50cqh - 0.62 * var(--w) / var(--r)), 0px); }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.ridge { mask-image: linear-gradient(to bottom, transparent 34%, #000 46%, #000 66%, transparent 80%); }
.ground { mask-image: linear-gradient(to bottom, transparent 58%, #000 74%); }
.sun { position: absolute; left: 44%; top: 14%; width: 34%; aspect-ratio: 1; margin: -17% 0 0 -17%; border-radius: 50%;
  background: radial-gradient(circle, var(--sun-core) 0 16%, var(--sun-glow) 30%, transparent 68%); mix-blend-mode: screen; opacity: 0.75; pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(16 20 15 / 0.9) 0%, rgb(16 20 15 / 0.55) 34%, transparent 62%), linear-gradient(to right, rgb(16 20 15 / 0.5), transparent 60%); }
.hero-copy { position: absolute; z-index: 2; left: var(--edge); right: 20px; bottom: max(8cqh, 36px); max-width: 44rem; color: var(--dusk-ink); }
.mark { width: 64px; height: 64px; margin-bottom: 14px; }
.m-ink { fill: var(--dusk-ink); }
.m-ridge { fill: none; stroke: var(--sun-glow); stroke-width: 3.2; stroke-linejoin: round; }
.m-sun { fill: var(--sun-glow); }
.hero-copy h1 { font-size: clamp(3rem, 1.6rem + 7cqw, 7rem); letter-spacing: -0.02em; margin-bottom: 18px; }
.lead { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 1rem + 1cqw, 1.75rem); line-height: 1.3; max-width: 30ch; margin-bottom: 26px; }
.action { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 2px solid var(--dusk-ink); color: var(--dusk-ink); font-family: var(--label); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background-color 160ms ease, color 160ms ease, transform 120ms ease; }
.action:hover { background: var(--dusk-ink); color: var(--dusk); }
.action:active { transform: translateY(1px); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sky, .ridge, .ground, .sun { animation-timing-function: linear; animation-fill-mode: both; animation-duration: auto; animation-timeline: --rise; }
    .sky    { animation-name: sky-wake;    animation-range: contain 0% contain 60%; }
    .sun    { animation-name: sun-rise;    animation-range: contain 0% contain 75%; }
    .ridge  { animation-name: ridge-wake;  animation-range: contain 12% contain 82%; }
    .ground { animation-name: ground-wake; animation-range: contain 25% contain 100%; }
  }
}
@keyframes sky-wake { from { filter: brightness(0.85) saturate(0.85); } to { filter: none; } }
@keyframes sun-rise { from { translate: 0 58%; scale: 0.82; opacity: 0.35; } 40% { opacity: 0.8; } to { translate: 0 0; scale: 1; opacity: 0.75; } }
@keyframes ridge-wake { from { translate: 0 2.5%; filter: brightness(0.8) saturate(0.85); } to { translate: 0 0; filter: none; } }
@keyframes ground-wake { from { translate: 0 5%; filter: brightness(0.75) saturate(0.8); } to { translate: 0 0; filter: none; } }

/* Field Guide sections: numbered entries on hairline rules, a margin for notes. No cards. */
main { padding: 0 var(--edge); }
section { padding: 72px 0 0; }
.sect-head { margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.01em; }
.entries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.entry { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.no { font-family: var(--label); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 4px; }
.entry h3 { font-size: 27px; margin-bottom: 8px; }
.entry p { max-width: 62ch; }
.note { grid-column: 2; font-family: var(--display); font-style: italic; color: var(--ink-2); font-size: 17px; margin-top: 8px; }
.plain { font-family: var(--display); font-size: 22px; margin-top: 28px; max-width: 40ch; }

/* An uneven spread of real places; no captions (credits in the footer). */
.spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 72px; }
.spread img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.spread .p1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.spread .p2, .spread .p3 { aspect-ratio: 4 / 5; }
.spread .p4 { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.private { max-width: 46rem; }
.private h2 { margin-bottom: 14px; }
.private p:not(.kicker) { font-size: 20px; }

/* Help: the number is the hero. */
.now { margin-top: 80px; padding: 40px 0 8px; border-top: 6px solid var(--help); }
.now h2 { margin-bottom: 18px; }
.big { display: grid; gap: 6px; color: var(--help); text-decoration: none; padding: 6px 0 22px; border-bottom: 1px solid var(--rule); }
.big-num { font-family: var(--display); font-weight: 500; font-size: clamp(6rem, 3rem + 16vw, 13rem); line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.big-what { color: var(--ink); font-weight: 700; font-size: 20px; max-width: 40ch; }
.big:hover .big-num { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.numbers { list-style: none; margin: 0; padding: 0; }
.number { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 64px; }
.number:hover .num { color: var(--help); }
.num { font-family: var(--label); font-weight: 700; font-size: clamp(26px, 7vw, 40px); line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color 140ms ease; }
.what { color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.free { margin-top: 18px; color: var(--ink-2); }

footer { padding: 64px var(--edge) 40px; color: var(--ink-2); font-size: 15px; }
footer p { max-width: 75ch; }
.sign { font-family: var(--display); font-size: 18px; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 18px; }
.credits { font-size: 14px; margin-top: 10px; }

@media (min-width: 760px) {
  html, body { font-size: 19px; }
  .entry { grid-template-columns: 96px minmax(0, 1fr) 260px; gap: 0 32px; padding: 28px 0 30px; }
  .no { font-size: 40px; }
  .note { grid-column: 3; margin-top: 6px; padding-left: 18px; border-left: 1px solid var(--rule); }
  .entries.small { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .entries.small .entry { grid-template-columns: 64px minmax(0, 1fr); }
  .entries.small .no { font-size: 30px; }
  .entries.small .entry h3 { font-size: 24px; }
  .spread { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
  .spread .p1 { grid-column: 1 / 8; grid-row: 1 / 3; aspect-ratio: auto; }
  .spread .p2 { grid-column: 8 / 13; aspect-ratio: 4 / 3; }
  .spread .p3 { grid-column: 8 / 13; aspect-ratio: 16 / 9; }
  .spread .p4 { grid-column: 3 / 11; aspect-ratio: 21 / 8; margin-top: 10px; }
  .spread img:hover { transform: scale(1.02); }
  .spread { overflow: clip; }
  .numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .now { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .spread img:hover, .action:active { transform: none; }
}
