/* =========================================================================
   tokens.css — every design value lives here and nowhere else.

   ---------------------------------------------------------------------
   THIS IS A PROPOSED DIRECTION, NOT A COPY OF THE CURRENT SITE.
   ---------------------------------------------------------------------
   The first version of this file mirrored zagerguitar.com exactly: Roboto
   Slab on everything, cold greys, pure #ff0000, square corners, 1px borders.
   That is an accurate record of the live site and it looks its age.

   This version keeps the brand's bones — heritage, hand-built, warm — and
   drops the dated execution. What changed and why:

     Palette   Cold #f4f4f4 and #ccc greys out, warm cream and sand in. The
               brand's own page background is a dark wood photo (#402013), so
               warm neutrals are more on-brand than the Storefront greys ever
               were. Blue was never a guitar-maker's colour; it came from the
               default WooCommerce theme.
     CTA       #ff0000 is a browser-default red and reads cheap. #C0341D is
               the same signal with some depth behind it.
     Shape     Square corners and hairline borders out; larger radii and soft
               layered shadows in. Elevation instead of outlines.
     Type      Bigger, with far more contrast between levels. Small headings
               on big pages is the single most dated thing about the current
               design.
     Space     More of it. Generous whitespace is most of what reads as
               "modern" — it is not a font choice.

   Values still taken from the real site are marked LIVE.
   ========================================================================= */

:root {
  /* ---- Colour ---------------------------------------------------------
     DARK THEME. Warm espresso, not neutral grey — the brand's own page
     background is a dark wood photo (#402013), so going dark is closer to
     the real thing than the cream version was.

     Two rules make a dark theme work, and both are load-bearing here:
       1. Elevation comes from LIGHTER surfaces, not from shadows. A shadow
          on near-black is invisible, so --c-surface sits above --c-bg and
          every card, tile and field uses it.
       2. Product photography is shot on white. Dropping it straight onto
          black leaves glaring white rectangles, so image panels keep a
          light background of their own — that is --c-media-bg.

     Every text pair below clears WCAG AA on its own background; the
     audience skews older, so that is a floor, not a target. Contrast
     figures are against --c-bg unless stated. */

  --c-ink:            #F4EDE4;   /* primary text. 16.3:1 */
  --c-ink-soft:       #C3B5A6;   /* body secondary. 9.5:1 */
  --c-ink-faint:      #9A8B7C;   /* meta and captions. 5.7:1 */

  --c-bg:             #14100D;   /* page base — warm near-black */
  --c-bg-alt:         #1B1613;   /* alternating band, one step up */
  --c-bg-warm:        #241C16;   /* pulled-out blocks, warmest step */
  --c-bg-dark:        #2A1B11;   /* the --dark band. Espresso, so it reads as
                                    a warmer inset rather than vanishing */
  --c-surface:        #211A15;   /* cards, tiles, inputs — raised panels */
  --c-media-bg:       #F3EDE4;   /* light panel behind product photography */
  --c-line:           #3A2F26;   /* warm hairline between blocks of content */
  --c-line-strong:    #7A6857;   /* outline of a CONTROL — a button, a field,
                                    a filter pill. 3.4:1, so the edge of an
                                    interactive thing is findable. --c-line is
                                    far too quiet on dark for that job. */

  /* LIVE — the real page background behind the content column. */
  --c-page-frame:     #402013;
  --c-frame-line:     #B9A48A;
  --c-frame-width:    3px;

  /* Aged brass. Reads as wood and hardware rather than software. Used for
     links, secondary buttons and quiet accents. On dark the "-dark" variant
     is the BRIGHTER hover state — the name means "the other one", not
     "darker". */
  --c-brand:          #E0AC55;   /* links. 9.6:1 */
  --c-brand-dark:     #F2C67E;   /* link hover */
  --c-accent:         #E8BC6A;   /* brass highlight */
  --c-accent-deep:    #D9A441;   /* eyebrows. 8.4:1 */

  /* The money CTA. Lifted a little from the light theme's #C0341D so it
     still punches against near-black; white on it clears AA. */
  --c-cta:            #D23D23;
  --c-cta-dark:       #B02E17;
  --c-sale:           #F0785C;   /* price TEXT, so it needs more lift than the
                                    button fill. 6.2:1 on --c-surface */

  --c-btn-text:       #FFFFFF;
  --c-btn-text-alt:   #17120E;
  --c-on-dark:        #FBF7F2;   /* warm white — pure white on warm black glares */
  --c-on-dark-soft:   #C9BBAA;   /* secondary text on a dark band */

  --c-focus:          #6AA5FF;   /* deliberately not brand — focus must stand out */
  --focus-width:      3px;       /* thicker than the old 2px; easier to see */

  /* ---- Type ------------------------------------------------------------
     Fraunces for headings. It is a variable serif drawn from old advertising
     and specimen type, so it carries the hand-built, been-here-since-1969
     feeling without looking like a newspaper. It has real personality at
     large sizes, which is exactly where headings live on these pages.

     Plus Jakarta Sans for body. Tall x-height, open apertures, genuinely
     modern proportions, and it stays comfortable at 17–18px for readers who
     need glasses. That matters here more than on most sites.

     The pairing is high-contrast on purpose: a characterful serif against a
     clean geometric sans is what stops a page looking like a template.

     NOTE: these only apply because each page's <head> loads them. There is
     no @font-face here — see the font link in the templates. */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Guitar tab only. Must be monospace or the columns do not line up. */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "DejaVu Sans Mono", monospace;

  /* Mobile-first scale. Steps up at 768 and again at 1280 — see the bottom
     of this file. The jump from body to h1 is deliberately large; timid
     heading sizes are what make a page feel dated more than anything else. */
  --fs-h1:    2.25rem;    /* 36px */
  --fs-h2:    1.75rem;    /* 28px */
  --fs-h3:    1.25rem;    /* 20px */
  --fs-body:  1.0625rem;  /* 17px */
  --fs-lede:  1.25rem;    /* 20px */
  --fs-small: 1rem;       /* 16px — 15px was too thin in multi-column grids */
  --fs-micro: 0.875rem;   /* 14px */

  --lh-tight: 1.05;   /* display headings */
  --lh-head:  1.18;
  --lh-body:  1.7;    /* more air than the live site's 1.618 */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold:   700;

  --ls-tight: -0.021em;  /* large headings only — tightens as type grows */
  --ls-caps:   0.11em;   /* uppercase eyebrows need the room */

  /* ---- Spacing scale --------------------------------------------------- */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  /* Vertical rhythm between sections.

     This is per-section padding, so the gap a visitor actually sees
     between two stacked sections is DOUBLE it. At --sp-10 that came to
     256px of dead space between every block, which reads as broken
     rather than generous. --sp-7 puts the desktop gap at 96px. */
  --section-y: var(--sp-6);

  /* ---- Layout ---------------------------------------------------------- */
  /* The live site's column is 1000px, which is narrow by current standards
     and part of why it feels cramped. 1200 gives the grids room to breathe. */
  --container:       1200px;
  --container-text:  760px;   /* readable measure at the larger body size */
  --gutter:          var(--sp-5);

  /* ---- Shape & depth ---------------------------------------------------
     Elevation rather than outlines. Shadows are tinted with the ink colour
     instead of pure black, so they sit on the warm palette without going
     grey and muddy. */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-cta:  12px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* On near-black a soft tinted shadow does nothing, so these are pure
     black and much heavier. They separate a panel from the page; the
     lighter --c-surface is what actually does most of the work. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.40),
               0 1px 3px rgba(0, 0, 0, 0.30);
  --shadow:    0 2px 4px rgba(0, 0, 0, 0.36),
               0 8px 24px rgba(0, 0, 0, 0.44);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.38),
               0 24px 56px rgba(0, 0, 0, 0.55);
  --shadow-cta: 0 2px 6px rgba(210, 61, 35, 0.34),
                0 10px 24px rgba(210, 61, 35, 0.26);
  --shadow-text: 0 1px 2px rgba(0, 0, 0, 0.55);

  --border: 1px solid var(--c-line);

  /* ---- Buttons --------------------------------------------------------- */
  --btn-pad-y:   0.875rem;
  --btn-pad-x:   1.75rem;
  --btn-fs:      1rem;
  --btn-lh:      1.25;
  --btn-fw:      var(--fw-bold);

  /* ---- Motion ---------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* soft overshoot-free ease-out */
  --dur:  220ms;
  --dur-reveal: 700ms;   /* slower — for the once-per-element scroll reveal */
  --stagger-1: 90ms;     /* reveal stagger, grid children 2nd/3rd/4th */
  --stagger-2: 180ms;
  --stagger-3: 270ms;

  --tilt-perspective: 900px;   /* depth of the hero image's cursor tilt */
  --string-glow: 0 0 12px rgba(232, 188, 106, 0.55);  /* a struck string */

  /* ---- Fretboard ---------------------------------------------------------
     The string demo draws a real neck, so it needs materials rather than
     UI colours: rosewood, nickel fret wire, a bone nut, pearl inlays and
     two kinds of string. Acoustic sets are phosphor bronze on the wound
     strings and plain steel on the top two, which is why those differ. */
  --c-wood:         #3B2417;   /* rosewood board */
  --c-wood-deep:    #1E0E06;   /* edge shadow and grain */
  --c-fret:         #CFCBC2;   /* nickel fret wire */
  --c-nut:          #E8DFC9;   /* bone nut */
  --c-inlay:        #E3D9C2;   /* pearl position dots */
  --c-string-wound: #C2A882;   /* phosphor bronze, strings 6 to 4 */
  --c-string-plain: #EFEBE1;   /* plain steel, strings 3 to 1 */

  /* ---- Header ------------------------------------------------------------ */
  --header-blur: 10px;

  /* ---- Hero --------------------------------------------------------------
     Warm brass glow laid over the hero panel. Enough to stop the panel
     reading as a flat block of black, not enough to compete with the
     photograph. */
  --hero-wash: radial-gradient(
                 ellipse 90% 70% at 15% 0%,
                 rgba(217, 164, 65, 0.13) 0%,
                 rgba(217, 164, 65, 0) 62%);
}

/* Breakpoints used across the project — 480 / 768 / 1024 / 1280, min-width
   only. CSS variables cannot be used in media queries, so these are
   documented here and written literally everywhere else. */

@media (min-width: 768px) {
  :root {
    --fs-h1:    3rem;       /* 48px */
    --fs-h2:    2.25rem;    /* 36px */
    --fs-h3:    1.5rem;     /* 24px */
    --fs-body:  1.125rem;   /* 18px */
    --fs-lede:  1.5rem;     /* 24px */
    --gutter:   var(--sp-6);
    --section-y: var(--sp-7);
  }
}

@media (min-width: 1280px) {
  :root {
    --fs-h1:    3.75rem;    /* 60px */
    --fs-h2:    2.5rem;     /* 40px */
    --fs-lede:  1.625rem;   /* 26px */
    /* No third step for --section-y. The 96px gap set at 768 holds up on
       a wide screen; stepping it again is what produced the 256px gaps. */
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; --dur-reveal: 0ms; }
}
