/* ==========================================================================
   SONDER — DESIGN TOKENS
   Colours sampled directly from the approved artwork (see docs/README.md).
   Section palettes are deliberately separate: do not mix them all on one page.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* No wordmark font is loaded. Every SONDER on the site is the traced SVG in
   assets/brand/sonder-wordmark.svg until the canonical "Youngest" face is verified. */

:root {
  /* --- Raw palette (sampled) ------------------------------------------- */
  --c-charcoal:      #0F0D12; /* Encounter field: matches PNG background exactly */
  --video-black:     #110E13; /* near-black of THE BLOOM / THE BREATH as decoded (calibrated in Chrome) */
  --c-charcoal-2:    #18151C; /* a hair lighter, for hairlines/hover on dark */
  --c-orange:        #FD6722; /* Encounter faces + the brand O */
  --c-cobalt:        #0933C2; /* Encounter cobalt */
  --c-cobalt-bright: #0032F8; /* Human Thread cobalt */
  --c-cream:         #FBE6D1; /* Encounter cream accents (dot, hand highlight) */
  --c-hand:          #FBDCC2; /* Encounter hand */
  --c-white-warm:    #FFFEF8; /* Encounter wordmark letters */
  --c-paper:         #FDEFE2; /* Inner World field */
  --c-ivory:         #FEECE1; /* Human Thread field */
  --c-ink:           #141215; /* linework on cream */
  --c-forest:        #183B2A; /* Inner World — section-specific */
  --c-olive:         #BAAE63; /* Inner World / Human Thread accent — decorative only */
  --c-lavender:      #C39AFD; /* Human Thread — section-specific */

  /* --- Semantic: dark (hero) ------------------------------------------- */
  --dark-bg:         var(--video-black);   /* page dark = the videos' own near-black, so no seams */
  --dark-text:       #F4E9DD;                 /* 15.6:1 on charcoal */
  --dark-text-soft:  rgb(244 233 221 / 0.78); /* ≈ 10:1 */
  --dark-text-faint: rgb(244 233 221 / 0.62); /* ≈ 7:1, labels only */
  --dark-rule:       rgb(244 233 221 / 0.14);
  --dark-accent:     var(--c-orange);         /* charcoal text on orange: 6.8:1 */
  --dark-focus:      var(--c-orange);

  /* --- Semantic: light (interiors) ------------------------------------- */
  --light-bg:        var(--c-paper);
  --light-text:      var(--c-ink);            /* 16.8:1 on paper */
  --light-text-soft: #4A4248;                 /* 8.6:1 on paper */
  --light-rule:      rgb(20 18 21 / 0.14);
  --light-focus:     var(--c-cobalt);

  /* --- Brand O ---------------------------------------------------------- */
  --brand-o: var(--c-orange); /* may change per section (cobalt on Human Thread etc.) */

  /* --- Type ------------------------------------------------------------- */
  --font-display:  "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans:     "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-eyebrow:  0.71875rem;                         /* 11.5px */
  --fs-body:     clamp(1rem, 0.94rem + 0.18vw, 1.0625rem);
  --fs-lede:     clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  --fs-h1:       clamp(2rem, 1.35rem + 1.9vw, 3.125rem);
  --fs-h2:       clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);

  --tracking-eyebrow: 0.12em;
  --tracking-wordmark: 0.24em;

  /* --- Space & layout --------------------------------------------------- */
  --gutter:   clamp(1.25rem, 0.6rem + 2.6vw, 3.5rem);
  --header-h: clamp(3.75rem, 3.2rem + 1.4vh, 5rem);
  --maxw:     105rem;

  /* --- Light section surfaces (each matches its illustration's own field) - */
  --paper-bg:        var(--c-paper);   /* = The Inner World background, so the art has no visible box */
  --ivory-bg:        var(--c-ivory);   /* = The Human Thread background */

  /* --- Spacing scale (use these, not ad-hoc values) ---------------------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;  --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-7: 3rem;     --space-8: 4rem;
  --space-9: 6rem;     --space-10: 8rem;
  --section-pad: clamp(5rem, 3rem + 7vw, 10rem);

  /* --- Type roles ---------------------------------------------------------- */
  --fs-statement: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);  /* the one large statement per section */
  --fs-h3:        clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-small:     0.875rem;

  /* --- Motion ----------------------------------------------------------- */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);    /* UI enters, press feedback */
  --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);    /* scroll reveals: weighted, decelerating */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* on-screen movement */
  --ease-settle: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-quiet:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-quick: 180ms;
  --dur-calm:  600ms;
  --dur-slow:  1200ms;

  /* --- Hero art geometry (from 1671 × 941 master) ------------------------ */
  --art-ratio: 1.7757;   /* native */
  --art-max-crop-ratio: 2.09; /* widest window before faces/chin are cut (≈800/941 rows) */
}
