/* tokens.css — Designer. pnw-travel, second look: "FIELD JOURNAL & TRAIL SIGN".
   A different language from our bold bands and gradient type: a surveyor's notebook.
   - Paper: warm survey-map cream; ink: near-black brown; contour lines as hairlines (CSS gradients only).
   - ONE accent: trail-blaze vermilion #b23a1e (5.9:1 on --bg). Ocean/fir are supporting inks only.
   - Type: serif (Georgia family) for display and body, monospace for labels, timetables, numbers, tags.
     Small caps + wide tracking for labels; display type is calm, NOT huge and NOT tight.
   - Shape: square-ish (2-6px), 1.5px ink borders, hard offset "stamped" shadows, no soft blur, no gradient text.
   - Motion: stepped and mechanical: "stamp" (drops in with a tiny overshoot), "draw" (line grows via scaleX),
     "tick" (timetable steps). Only transform, opacity, filter. Reduced motion: everything at once.
   Variable names are unchanged from the first look so existing CSS keeps working. */
:root {
  /* palette */
  --bg: #f1e9d6;              /* paper */
  --surface: #fbf6e9;         /* lighter journal page */
  --surface-2: #e6dcc3;       /* tinted card / table stripe */
  --text: #26231c;            /* 13:1 on --bg */
  --text-muted: #5b5545;      /* 5.9:1 on --bg */
  --line: #b9ad8f;            /* contour hairline (decor only, not text) */
  --ink-line: #26231c;        /* hard borders */
  --dark: #1b2a26;            /* night ridge */
  --dark-2: #25392f;
  --on-dark: #f3ecd9;         /* 12:1 on --dark */
  --on-dark-muted: #b7c2b3;   /* 7.3:1 on --dark */
  --accent: #b23a1e;
  --accent-strong: #8a2a13;
  --accent-soft: #f0d6c6;
  --accent-on-dark: #ffb08a;  /* 7.6:1 on --dark */
  --on-accent: #ffffff;       /* 6.1:1 on --accent */
  --ocean: #1d6f93; --ocean-ink: #0f5272;   /* 5.6:1 on --bg */
  --fir: #2f6b4c; --fir-ink: #1f5238;       /* 5.5:1 on --bg */
  --sign: #f2c230;            /* trail-sign yellow: fills only, with --text on top (9:1) */
  --success: #1f5238;
  --danger: #a3141f;
  --warn-bg: #f7e3a6;
  --warn-text: #4d3a00;
  --focus: #0b4fd1;

  /* type */
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-serif);
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-xs: .75rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.2rem, 1.05rem + .7vw, 1.45rem);
  --fs-step: clamp(1.5rem, 1.15rem + 1.5vw, 2.4rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.6rem, 1.5rem + 5vw, 5.5rem);
  --fs-giant: clamp(4rem, 2rem + 12vw, 11rem);
  --fs-label: .75rem;                      /* mono label size */
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;
  --track-display: -.012em;                /* calm serif, barely tightened */
  --track-h2: -.008em;
  --track-label: .14em;                    /* use with text-transform: uppercase and --font-mono */
  --measure: 62ch;

  /* spacing, shape, depth */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --section: clamp(4rem, 9vw, 7.5rem);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius-sm: 2px; --radius: 4px; --radius-lg: 6px; --radius-pill: 2px;
  --border: 1.5px solid var(--ink-line);
  --rule: 1px solid var(--line);
  --shadow-sm: 2px 2px 0 var(--ink-line);                 /* stamped, hard */
  --shadow: 4px 4px 0 var(--ink-line);
  --shadow-lg: 8px 8px 0 var(--ink-line);
  --glow: none;
  --gradient-text: none;
  --gradient-text-dark: none;

  /* CSS-only map textures: put on a background-image */
  --contour: repeating-radial-gradient(ellipse at 20% 120%, transparent 0 22px, rgba(38, 35, 28, .09) 22px 23px);
  --contour-dark: repeating-radial-gradient(ellipse at 80% -20%, transparent 0 24px, rgba(243, 236, 217, .08) 24px 25px);
  --graticule: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 2.2rem,
               linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 2.2rem 100%;
  --ridges: linear-gradient(180deg, transparent 0 55%, rgba(47, 107, 76, .12) 55% 70%, rgba(29, 111, 147, .14) 70% 82%, rgba(27, 42, 38, .20) 82% 100%);

  /* motion: mechanical, stepped */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-step: steps(5, end);
  --ease-stamp: cubic-bezier(.3, 1.5, .5, 1);
  --dur-fast: 400ms;
  --dur: 600ms;
  --dur-slow: 900ms;
  --stagger: 60ms;
  --rise: .75rem;
  --blur-in: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; --stagger: 0ms; --rise: 0; --blur-in: 0; }
}

/* ---- journal vocabulary (classes any page may use; all static, all visible without JS) ---- */
body { background-color: var(--bg); color: var(--text); font-family: var(--font-serif); line-height: var(--lh-body); }
.label, .eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--text-muted);
}
.band--dark .label, .band--dark .eyebrow { color: var(--on-dark-muted); }
.topo { background-image: var(--contour); }
.band--dark.topo, .band--dark .topo { background-image: var(--contour-dark); }
.graticule { background-image: var(--graticule); opacity: 1; }
.ridges { background-image: var(--ridges); }
.sign {                                   /* trail-sign tag */
  display: inline-block; background: var(--sign); color: var(--text); border: var(--border);
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; padding: .2em .6em; border-radius: var(--radius-sm);
}
.card-journal { background: var(--surface); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.timetable { font-family: var(--font-mono); font-variant-numeric: tabular-nums; border-collapse: collapse; }
.timetable th, .timetable td { border-bottom: var(--rule); padding: .5em .75em; text-align: left; }
.timetable tbody tr:nth-child(even) { background: var(--surface-2); }

@keyframes stamp { from { opacity: 0; transform: translateY(calc(var(--rise) * -1)) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tick { from { opacity: 0; transform: translateX(-.5rem); } to { opacity: 1; transform: none; } }
.draw-line { height: 0; border-top: var(--border); transform-origin: left center; }
.is-in > .draw-line, .draw-line.is-in { animation: draw var(--dur-slow) var(--ease-step) both; }
