/* ==========================================================================
   EU Buses.eu — Design tokens
   Direction: "Night Departure" hero + "Editorial Light" content (hybrid).
   Every colour pair used for text is AA or better; ratios noted inline.
   ========================================================================== */

:root {
  /* ---- Colour: surfaces ------------------------------------------------ */
  --c-ink:        #0C1118; /* near-black graphite, faint blue — dark bands, body text on light */
  --c-night:      #121C2A; /* deep blue-graphite — B2B band, footer */
  --c-night-2:    #1B2838; /* raised surface on dark */
  --c-paper:      #F2EFE9; /* warm stone light, from the Hofburg facade — page ground */
  --c-panel:      #FFFFFF; /* content panels, form fields */
  --c-stone:      #E4DFD6; /* subtle bands / dividers on paper */

  /* ---- Colour: ink & metal -------------------------------------------- */
  --c-silver:     #DADEE3; /* logo + headings on dark     14.0:1 on ink */
  --c-mist:       #9AA5B3; /* secondary text on dark       6.9:1 on night */
  --c-steel:      #4D5968; /* secondary text on light      6.2:1 on paper */
  --c-line:       #737D8A; /* input borders, drop zone    ≥3:1 on paper/white */
  --c-hairline:   rgb(12 17 24 / 0.12); /* decorative rules on light */
  --c-hairline-d: rgb(218 222 227 / 0.16); /* decorative rules on dark */

  /* ---- Colour: accent (restrained) — "lamplight" from the night photos -- */
  --c-lamp:       #D9A54C; /* primary CTA fill on dark; ink text on it 8.5:1 */
  --c-lamp-hover: #E6B866;
  --c-lamp-deep:  #7A5210; /* accent text/markers on light: 6.0:1 paper, 5.2:1 stone */

  /* ---- Colour: functional states --------------------------------------- */
  --c-error:      #B3261E; /* 5.7:1 on paper */
  --c-error-dk:   #F2A79F; /* on dark 8.8:1 */
  --c-success:    #1E6B47; /* 5.6:1 on paper */
  --c-focus:      #0C1118; /* focus ring on light surfaces: ink 16:1 */
  --c-focus-d:    #D9A54C; /* focus ring on dark surfaces: lamp ≥7:1 on ink */

  /* ---- Type ------------------------------------------------------------- */
  --f-display: "Newsreader", "Newsreader Fallback", Georgia, serif;   /* fallbacks: metric-matched faces in main.css */
  --f-sans:    "Instrument Sans", "Instrument Fallback", Arial, sans-serif;

  /* Fluid modular scale, 360px → 1440px viewport (ratio ~1.2 → ~1.333) */
  --step--2: clamp(0.8rem, 0.78rem + 0.08vw, 0.85rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.19vw, 1.125rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.37vw, 1.45rem);
  --step-2:  clamp(1.44rem, 1.29rem + 0.65vw, 1.90rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.10vw, 2.50rem);
  --step-4:  clamp(2.07rem, 1.66rem + 1.85vw, 3.33rem);
  --step-5:  clamp(2.49rem, 1.83rem + 2.90vw, 4.44rem);
  --step-6:  clamp(2.99rem, 1.95rem + 4.60vw, 5.92rem);

  --lh-tight: 1.04;
  --lh-snug:  1.2;
  --lh-body:  1.6;
  --track-caps: 0.18em; /* echoes the logo tagline */
  --measure: 62ch;

  /* ---- Space (fluid) ---------------------------------------------------- */
  --s-3xs: clamp(0.25rem, 0.23rem + 0.09vw, 0.31rem);
  --s-2xs: clamp(0.5rem, 0.47rem + 0.14vw, 0.56rem);
  --s-xs:  clamp(0.75rem, 0.7rem + 0.23vw, 0.88rem);
  --s-s:   clamp(1rem, 0.94rem + 0.28vw, 1.19rem);
  --s-m:   clamp(1.5rem, 1.4rem + 0.46vw, 1.81rem);
  --s-l:   clamp(2rem, 1.86rem + 0.65vw, 2.44rem);
  --s-xl:  clamp(3rem, 2.76rem + 1.11vw, 3.75rem);
  --s-2xl: clamp(4rem, 3.5rem + 2.2vw, 5.5rem);
  --s-3xl: clamp(5rem, 3.9rem + 4.9vw, 8.5rem); /* section rhythm */

  --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
  --max:    84rem; /* 1344px content cap */

  /* ---- Shape & depth --------------------------------------------------- */
  --r-s: 2px;   /* inputs, buttons — engineered, not bubbly */
  --r-m: 4px;   /* panels, photos */
  --shadow-panel: 0 1px 0 rgb(12 17 24 / .04), 0 12px 32px -18px rgb(12 17 24 / .28);

  /* ---- Motion ----------------------------------------------------------- */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);   /* arrivals, reveals */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);   /* route-line drawing */
  --ease-press:  cubic-bezier(.3, 0, .2, 1);
  --t-fast: 160ms;
  --t-med:  320ms;
  --t-slow: 720ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; }
}
