/* ============================================================
   SIMPLY BEAUTIFUL — DESIGN TOKENS
   Single source of truth. Nothing below this file hardcodes a
   colour, a size, a duration or a breakpoint.
   ============================================================ */

:root {
  /* ---- Colour ------------------------------------------------ */
  --c-parchment:      #EEEDE5;
  --c-bone:           #FFFEF7;
  --c-white:          #FFFFFF;
  --c-ink:            #232323;
  --c-noir:           #111111;
  --c-graphite:       #55534F;
  --c-stone:          #D9D6CE;

  /* Signature pink, sampled from the supplied SB mark. */
  --c-pink:           #D73A8D;
  /* Darkened for small text on light grounds (5.8:1 on parchment). */
  --c-pink-ink:       #A81F68;
  /* Lightened for small text on dark grounds (5.6:1 on ink). */
  --c-pink-light:     #F06BAE;

  /* Semantic surfaces */
  --surface:          var(--c-parchment);
  --surface-raised:   var(--c-bone);
  --surface-dark:     var(--c-noir);
  --text:             var(--c-ink);
  --text-muted:       var(--c-graphite);
  --text-on-dark:     #E9E7DF;
  --text-on-dark-mut: #9C988E;
  --accent:           var(--c-pink);
  --accent-text:      var(--c-pink-ink);
  --accent-on-dark:   var(--c-pink-light);

  /* Hairlines — the structural device of the whole system. */
  --rule:             rgba(35, 35, 35, 0.16);
  --rule-strong:      rgba(35, 35, 35, 0.30);
  --rule-on-dark:     rgba(233, 231, 223, 0.18);
  --rule-w:           1px;

  /* ---- Type -------------------------------------------------- */
  --font-display: "Instrument Sans", "Helvetica Neue", Helvetica, "Liberation Sans", Arial, sans-serif;
  --font-utility: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Liberation Mono", Menlo, monospace;

  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;

  --fs-hero:      clamp(3.4rem, 9vw, 9rem);
  --fs-statement: clamp(2.6rem, 6vw, 6rem);
  --fs-section:   clamp(2rem, 4vw, 4.5rem);
  --fs-card:      clamp(1.25rem, 1.9vw, 2rem);
  --fs-lead:      clamp(1.0625rem, 1.35vw, 1.375rem);
  --fs-body:      clamp(1rem, 1.05vw, 1.125rem);
  --fs-small:     0.9375rem;
  --fs-label:     0.75rem;
  --fs-label-lg:  0.8125rem;
  --fs-micro:     0.6875rem;

  --lh-display: 0.94;
  --lh-tight:   1.06;
  --lh-snug:    1.25;
  --lh-body:    1.62;

  --ls-display: -0.035em;
  --ls-tight:   -0.02em;
  --ls-normal:  0;
  --ls-wide:    0.14em;
  --ls-wider:   0.22em;

  /* ---- Space ------------------------------------------------- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;
  --s-11: 12rem;

  --section-y:   clamp(4.5rem, 9vw, 10rem);
  --section-y-l: clamp(6rem, 13vw, 15rem);

  /* ---- Layout ------------------------------------------------ */
  --gutter:       clamp(1.25rem, 4vw, 3.5rem);
  --container:    100rem;   /* 1600px */
  --container-mid:76rem;
  --container-txt:46rem;
  --header-h:     72px;
  --bar-h:        34px;

  /* ---- Border / radius --------------------------------------- */
  --r-0: 0;
  --r-1: 2px;
  --r-pill: 999px;

  /* ---- Motion ------------------------------------------------ */
  --e-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-soft:  cubic-bezier(0.4, 0, 0.2, 1);
  --d-fast:  180ms;
  --d-base:  420ms;
  --d-slow:  900ms;
  --d-reveal:1100ms;

  /* ---- Elevation (used almost nowhere, by design) ------------- */
  --shadow-modal: 0 40px 120px rgba(17, 17, 17, 0.30);

  --z-header: 60;
  --z-bar:    55;
  --z-menu:   80;
  --z-modal:  90;
  --z-toast:  95;
}

/* Breakpoints are documented here and used consistently:
   sm 480px · md 768px · lg 1024px · xl 1280px · xxl 1600px
   CSS custom properties cannot be used in media queries, so the
   raw values appear in @media rules only. Do not invent others. */

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-fast: 1ms; --d-base: 1ms; --d-slow: 1ms; --d-reveal: 1ms;
  }
}
