/* ==========================================================================
   TOKENS: every color, font, spacing value and easing curve lives here.
   Change a value in this file and the whole site follows.
   ========================================================================== */

:root {
  /* ---- BRAND COLORS (edit these hex values to recolor the site) ---------- */
  --ink: #1E2022;       /* dark sections, body text on light */
  --charcoal: #2B2D2F;  /* cabin walls and panels on dark */
  --sand: #C9BBA8;      /* muted text on dark, dividers */
  --bone: #F4EFE6;      /* light sections, main text on dark */
  --ember: #D2601A;     /* the ONE accent: buttons, highlights, active states */
  --dusk: #3A2E2A;      /* gradient partner for sunset skies */
  --moss: #4F5D3A;      /* forest layers */

  /* ---- DERIVED COLORS (mixed from the brand colors, no need to edit) ----- */
  --ink-deep: color-mix(in srgb, var(--ink) 70%, black);      /* footer, track groove */
  --pine: color-mix(in srgb, var(--moss) 42%, var(--ink));    /* tree silhouettes */
  --haze: color-mix(in srgb, var(--dusk) 62%, var(--ember));  /* far mountains */
  --dirt: color-mix(in srgb, var(--dusk) 72%, var(--sand));   /* road surface */
  --steel: color-mix(in srgb, var(--sand) 70%, white);        /* spring-steel frame */
  --ember-hover: color-mix(in srgb, var(--ember) 86%, white); /* button hover */
  --line-on-dark: color-mix(in srgb, var(--sand) 24%, transparent);
  --line-on-light: color-mix(in srgb, var(--ink) 16%, transparent);
  --bone-alt: color-mix(in srgb, var(--bone) 86%, var(--sand)); /* second light shade */

  /* ---- SKY COLORS ---------------------------------------------------------
     Dusk sky follows the brand colors. The DAY sky (start of the road scene)
     must stay as plain hex values because the animation blends them. */
  --sky-dusk-top: var(--ink);
  --sky-dusk-mid: var(--dusk);
  --sky-dusk-horizon: var(--ember);
  --sky-day-top: #4E6068;
  --sky-day-mid: #8C9A98;
  --sky-day-horizon: #E3D2B8;
  /* The live sky values. Scenes read these three. */
  --sky-top: var(--sky-dusk-top);
  --sky-mid: var(--sky-dusk-mid);
  --sky-horizon: var(--sky-dusk-horizon);

  /* ---- FONTS ------------------------------------------------------------- */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- TYPE SIZES -------------------------------------------------------- */
  --text-hero: clamp(3rem, 9vw, 9rem);        /* the h1 */
  --text-display-lg: clamp(2.6rem, 7vw, 6.5rem);
  --text-display-md: clamp(2.2rem, 5vw, 4.5rem);
  --text-statement: clamp(1.9rem, 4.6vw, 4rem);
  --text-lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --text-body: clamp(1.0625rem, 1.2vw, 1.1875rem); /* 17px to 19px */
  --text-small: 0.875rem;
  --leading-display: 0.94;
  --tracking-display: -0.01em;

  /* ---- SPACING AND LAYOUT ------------------------------------------------ */
  --section-pad: clamp(4.5rem, 10vw, 9rem);  /* top and bottom padding of sections */
  --gutter: clamp(1.25rem, 4vw, 3rem);       /* left and right page margin */
  --max-width: 80rem;                        /* widest the content column gets */
  --radius-pill: 999px;

  /* ---- EASING (CSS side, the JS eases are in js/config.js) --------------- */
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-snap: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --speed-fast: 0.2s;
  --speed-base: 0.45s;
}
