/* ==========================================================================
   Whytelight — design tokens
   Extracted from actual usage in "Whytelight v2.dc.html", not from a separate
   style sheet. Where the design repeated a literal value I kept the literal
   and named it here; where it used a one-off I left it inline in the component.
   ========================================================================== */

:root {

  /* --- Neutrals ---------------------------------------------------------
     The design runs on a warm near-black and a warm off-white, never pure
     grey. --c-ink is the text colour AND the primary button fill.           */

  --c-ink:         #201e1d;   /* body text, buttons, borders — dominant      */
  --c-black:       #121110;   /* photo bands, menu overlay, footer           */
  --c-blade:       #0f0e0d;   /* aperture blades only — darker than --c-black
                                 so the shutter reads as closing over the page */
  --c-white:       #ffffff;
  --c-cream:       #fbf7f1;   /* contact band surface                        */
  --c-sand:        #f5ead8;   /* text on dark photo bands                    */
  --c-line:        #eee7db;   /* hairline rules on light                     */
  --c-line-strong: #dcd3c4;   /* input underlines, unselected option borders */
  --c-line-dark:   #2a2724;   /* hairline rules on --c-black                 */

  /* --- Text ramp -------------------------------------------------------- */

  --t-body:        #474238;   /* long-form article copy                      */
  --t-muted:       #645c50;   /* supporting paragraphs                       */
  --t-caption:     #82796a;   /* mono captions, option labels, small print   */
  --t-footer:      #a19786;   /* footer body                                 */
  --t-footer-link: #c0b6a5;   /* footer links at rest                        */
  --t-footer-head: #645c50;   /* footer column headings                      */

  /* --- Accent ----------------------------------------------------------
     Terracotta. Used for links, focus rings and the active cursor aperture.
     --a-link is deliberately darker than --a-base to clear 4.5:1 on white. */

  --a-base:        #c67139;   /* focus ring, selection, cursor accent        */
  --a-link:        #8c491a;   /* link at rest on white — 5.2:1               */
  --a-link-hover:  #b2622d;   /* link hover, section kickers                 */
  --a-warm:        #f6a06b;   /* accent on dark backgrounds                  */
  --a-select:      rgba(198,113,57,0.28);

  /* --- Collection palettes ---------------------------------------------
     Each collection recolours the page as you move through it. These are the
     defaults; each Collection term can override them in the admin, so treat
     these as the fallback when a term has no colour set.
     bg = full-band background, accent = kicker text on white.              */

  --coll-coast-bg:      #1d3340;
  --coll-coast-accent:  #7fb3c8;
  --coll-wild-bg:       #2f3a26;
  --coll-wild-accent:   #a9bf7e;
  --coll-arch-bg:       #432f33;
  --coll-arch-accent:   #c9959c;
  --coll-abs-bg:        #171a33;
  --coll-abs-accent:    #8b93d8;
  --coll-people-bg:     #45361e;
  --coll-people-accent: #d8a85b;

  /* Live values, rewritten per-page by PHP and per-hover by JS. */
  --coll-bg:     var(--coll-coast-bg);
  --coll-accent: var(--a-base);

  /* --- Type ------------------------------------------------------------
     Cormorant Garamond 300 for every heading and every price. Instrument Sans for UI
     and body. A mono face for the all-caps captions and metadata lines.     */

  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --fw-display: 300;   /* the display face is only ever used at 300          */

  /* Fluid display sizes, lifted from the design's own clamp() values. */
  --fs-hero:    clamp(2.75rem, 6.2vw, 6.25rem);   /*  44 → 100  home h1      */
  --fs-page:    clamp(3rem, 5.6vw, 5.5rem);       /*  48 →  88  page h1      */
  --fs-stmt:    clamp(1.75rem, 2.9vw, 2.75rem);   /*  28 →  44  statement    */
  --fs-band:    clamp(2.5rem, 4.4vw, 4.25rem);    /*  40 →  68  photo band   */
  --fs-h2:      2.75rem;                          /*  44        section h2   */
  --fs-h2-sm:   2.5rem;                           /*  40                     */
  --fs-h3:      1.625rem;                         /*  26        card title   */

  /* Mono caption: one size, one tracking, used ~40 times. */
  --fs-caption:  0.71875rem;   /* 11.5px */
  --ls-caption:  0.14em;
  --ls-kicker:   0.18em;       /* uppercase kickers sit wider than captions  */

  /* UI label: the uppercase button text. */
  --fs-label:    0.75rem;      /* 12px */
  --ls-label:    0.18em;
  --fw-label:    600;

  /* --- Space -----------------------------------------------------------
     The design uses a 44px page gutter everywhere and rarely deviates.     */

  --gutter:      2.75rem;      /* 44px — page side padding                   */
  --gutter-sm:   1.375rem;     /* 22px — mobile                              */
  --wrap:        1400px;       /* wide wrapper: shop grid, footer, bands     */
  --wrap-mid:    1180px;       /* prose-adjacent wrapper: statement, about   */
  --wrap-narrow: 900px;        /* FAQ                                        */
  --wrap-prose:  720px;        /* journal article column                     */

  --sp-section:  6.875rem;     /* 110px — standard section padding           */
  --sp-section-lg: 10rem;      /* 160px — statement section                  */

  /* --- Form --------------------------------------------------------- */

  --radius-img:  4px;          /* photographs and cards                      */
  --radius-ui:   2px;          /* buttons and option pills                   */
  --radius-pill: 999px;

  /* --- Motion ----------------------------------------------------------
     Two curves do all the work: --ease-out for content settling in,
     --ease-iris for the shutter and anything that should feel mechanical.   */

  --ease-out:   cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-iris:  cubic-bezier(0.76, 0, 0.24, 1);
  --ease-bar:   cubic-bezier(0.65, 0, 0.35, 1);

  --dur-fast:   0.3s;
  --dur-mid:    0.6s;
  --dur-slow:   0.9s;
  --dur-iris-close: 700ms;
  --dur-iris-open:  800ms;

  /* --- Elevation ---------------------------------------------------- */

  --shadow-card:  0 30px 60px rgba(18, 17, 16, 0.25);
  --shadow-hero:  0 40px 90px rgba(18, 17, 16, 0.35);
  --shadow-panel: -30px 0 80px rgba(0, 0, 0, 0.25);

  /* --- Layering --------------------------------------------------------
     Named so the stack is auditable in one place. The flash burst sits above
     the shutter so a click during a transition still reads.                 */

  --z-menu:    65;
  --z-header:  70;
  --z-basket:  80;
  --z-shutter: 100;
  --z-flash:   200;
}

/* The design is light-only by intention — it is a gallery, and the dark
   sections are art direction rather than a theme. We therefore do not offer a
   dark mode, but we do honour a reduced-motion request. */

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-mid:  0.01ms;
    --dur-slow: 0.01ms;
    --dur-iris-close: 0.01ms;
    --dur-iris-open:  0.01ms;
  }
}
