/* =========================================================================
   DESIGN TOKENS
   Values sampled from computed styles during the reference audit
   (see docs/reference-audit.md). Rebrand by editing this file + src/data/site.js.
   ========================================================================= */

:root {
  /* ---- Colour ---------------------------------------------------------- */
  --c-bg:            #ffffff;
  --c-ink:           #000000;   /* body copy */
  --c-ink-soft:      #333333;   /* heavy display headings */
  --c-ink-mid:       #2d2d2d;   /* section headings on light */
  --c-ink-faint:     #373737;   /* footer store names */
  --c-heading-grey:  #ada6a6;   /* the big light-grey display headings */

  --c-accent:        #ffc07b;   /* peach — buttons, chef block, contact block */
  --c-accent-ink:    #ffffff;   /* text on accent */
  --c-band:          #fff0a9;   /* pale yellow preorder band */
  --c-cream:         #fff8e6;

  --c-rule:          rgba(0, 0, 0, 0.15);
  --c-rule-soft:     rgba(235, 235, 235, 0.7);
  --c-overlay:       rgba(0, 0, 0, 0.5);

  /* Decorative collage blocks behind hero imagery */
  --c-block-blue:    #d6ecf3;
  --c-block-green:   #d6e6a3;
  --c-block-lilac:   #ece7f6;

  /* Cookie banner (dark navy) */
  --c-cookie-bg:     #16244d;
  --c-cookie-ink:    #ffffff;
  --c-cookie-btn:    #ffffff;
  --c-cookie-accept: #ffcf3f;

  --c-focus:         #1a5fd0;   /* visible focus ring — must pass on white + accent */

  /* ---- Type ------------------------------------------------------------
     The reference uses Proxima Nova (Adobe Fonts, commercial licence).
     We self-host a free geometric-humanist stand-in. To restore the exact
     face, change ONLY --font-display / --font-sans below.                   */
     Hanken Grotesk was chosen by MEASUREMENT, not taste: at 100px/700 its
     uppercase advance width lands within ~2-6% of the reference's, where
     Montserrat was +17%. See docs/reference-audit.md.                        */
  --font-display: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-sans:    'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-product: 'Lato', 'Helvetica Neue', Arial, sans-serif; /* reference uses Lato here */

  --fw-light:  300;
  --fw-book:   400;
  --fw-bold:   700;

  /* Display scale — desktop → mobile is a clean 2:1 in the reference.       */
  --fs-hero:        100px;  --lh-hero:     1;     --ls-hero:     5px;
  --fs-section:     100px;  --lh-section:  0.9;   --ls-section:  5px;
  --fs-chef:         88px;  --lh-chef:     1;     --ls-chef:     4.4px;
  --fs-sister:      126px;  --lh-sister:   1;     --ls-sister:   2px;
  --fs-sub:          40px;  --lh-sub:      1;     --ls-sub:      2px;
  --fs-lead:         25px;  --lh-lead:     1.48;  --ls-lead:     1.25px;
  --fs-body:         18px;  --lh-body:     1.67;  --ls-body:     0.9px;
  --fs-btn:          18px;  --lh-btn:      1;     --ls-btn:      2.754px;
  --fs-nav:          18px;  --lh-nav:      2;     --ls-nav:      7px;   /* "BROOKLYN" */
  --fs-small:        14px;  --lh-small:    1.6;   --ls-small:    1.5px;
  --fs-product:      18px;  --lh-product:  1.5;   --ls-product:  1px;

  /* ---- Layout ---------------------------------------------------------- */
  --header-h:        108px;
  --content-max:     1334px;   /* 1440 viewport − 53px gutters */
  --gutter:          53px;
  --section-y:       120px;    /* default vertical rhythm between sections */
  --band-pt:         77px;     /* preorder band padding-top */
  --band-pb:         47px;
  --contact-py:      66px;

  --grid-gap:        30px;
  --card-w:          296px;
  --card-img-ratio:  296 / 374;  /* 0.791 — locked across every product card */

  --radius-pill:     999px;
  --radius-btn:      999px;

  /* ---- Motion ---------------------------------------------------------- */
  --dur-fast:   0.25s;
  --dur-base:   0.3s;
  --dur-slow:   0.4s;
  --dur-menu:   0.5s;
  --ease:       ease;
  --ease-inout: ease-in-out;
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);

  --z-header:  10;
  --z-menu:    50;
  --z-cookie:  80;
}

/* ---- Breakpoints -------------------------------------------------------
   Chosen from where the REFERENCE actually reflows, not framework defaults:
     1200px  container stops being fixed-width
     992px   hero collage collapses; nav switches to overlay-only
     768px   two-column editorial blocks stack
     576px   type drops to the mobile half-scale
   ------------------------------------------------------------------------ */

@media (max-width: 1200px) {
  :root {
    --gutter: 40px;
    --fs-hero: 76px;  --fs-section: 76px; --fs-chef: 68px; --fs-sister: 96px;
    --fs-sub: 34px;
  }
}

@media (max-width: 992px) {
  :root {
    --gutter: 32px;
    --section-y: 90px;
    --fs-hero: 62px;  --fs-section: 62px; --fs-chef: 52px; --fs-sister: 68px;
    --fs-sub: 28px;   --fs-lead: 21px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 72px;
    --fs-hero: 54px;  --fs-section: 54px; --fs-chef: 40px; --fs-sister: 46px;
    --fs-sub: 22px;   --fs-lead: 18px;
    --grid-gap: 20px;
  }
}

/* The reference's true mobile scale: exactly half the desktop display sizes. */
@media (max-width: 576px) {
  :root {
    --header-h: 108px;
    --gutter: 20px;
    --section-y: 60px;
    --band-pt: 48px;  --band-pb: 36px;
    --contact-py: 48px;

    --fs-hero:    50px;  --ls-hero:    2.5px;
    --fs-section: 50px;  --ls-section: 2.5px;  --lh-section: 0.9;
    --fs-chef:    36px;  --ls-chef:    1.8px;
    --fs-sister:  34px;  --ls-sister:  1px;
    --fs-sub:     20px;  --ls-sub:     1px;
    --fs-lead:    16px;  --ls-lead:    0.8px;
    --fs-body:    16px;  --ls-body:    0.8px;
    --fs-btn:     16px;  --ls-btn:     2.448px;
    --fs-nav:     16px;  --ls-nav:     4px;
  }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
    --dur-menu: 0.01ms;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
