/* Terri's Glass Creations design system, tokens. Version 1.0, 2026-11-19.
   Faithful round: every value below is measured from the live site's own
   stylesheet (material/styles.css, its :root variables and fluid sizes) and
   checked against computed-type.txt at 1440 and 390. Nothing is invented.
   Naming: primitives are --tgc-<group>-<name>; semantic roles are --<role>.
   A tone ([data-tone="navy"], [data-tone="paper"], [data-tone="white"])
   re-points the semantic roles only. Page CSS never writes a raw value. */

:root {
  /* ---------- Color primitives (measured: :root swatches) ---------- */
  --tgc-ink: #231f20;          /* measured --swatch--dark */
  --tgc-navy: #002968;         /* measured --swatch--dark-secondary, 44% of the page */
  --tgc-paper: #f4f2ec;        /* measured --swatch--background-page */
  --tgc-white: #ffffff;        /* measured --swatch--light */
  --tgc-black: #000000;        /* measured --swatch--black, the picture frame line */
  --tgc-teal: #22e8dc;         /* measured --swatch--brand, the hero accent word */
  --tgc-sky: #3c89ff;          /* measured --swatch--brand-light-lighter, display line */
  --tgc-sun: #ffe662;          /* measured, the cursive "Inspired by" word and its icons */
  --tgc-stone: #e5e1d4;        /* measured --swatch--light-secondary, image underlay */
  --tgc-stone-deep: #ccc8bd;   /* measured --swatch--light-secondary-2, event card line on hover */
  --tgc-error: #a01c05;        /* measured --swatch--error */
  --tgc-empty: #dddddd;        /* measured, empty list box on the events band */
  /* Testimonial tints, measured --testimonial--testimonial-1..5, used in this order */
  --tgc-tint-lilac: #e3bfec;
  --tgc-tint-aqua: #9bf3ff;
  --tgc-tint-lime: #eeffa8;
  --tgc-tint-green: #a1f78b;
  --tgc-tint-butter: #ffe175;

  /* ---------- Semantic color roles (decided) ----------
     Contrast, computed (text needs 4.5:1, large text 24px+ or 18.7px bold and
     lines need 3:1):
     white on navy 13.84 | teal on navy 8.99 | sun on navy 11.04
     white at 60% on navy (renders #99a9c3) 5.81 | sky on navy 4.10, display only (large)
     ink on paper 14.56 | ink on white 16.30 | ink on empty gray 12.00
     ink on tints: lilac 10.04, aqua 12.93, lime 15.14, green 12.57, butter 12.64
     white on error 7.89 | focus ring: teal on navy 8.99, navy on paper 12.37, navy on white 13.84 */
  --surface: var(--tgc-white);
  --text: var(--tgc-ink);
  --accent: var(--tgc-teal);
  --line: var(--tgc-black);
  --focus-ring-color: var(--tgc-navy);

  /* ---------- Type families (measured @font-face, files in ./fonts) ---------- */
  --font-sans: "Switzer Variable", system-ui, sans-serif;      /* body and interface */
  --font-serif: "Fraunces 72 Supersoft", Georgia, serif;       /* headings and quotes */
  --font-script: "League Script", cursive;                      /* the one cursive word */

  --weight-thin: 100;      /* display italic */
  --weight-light: 300;     /* quotes, h3 */
  --weight-regular: 400;
  --weight-medium: 500;    /* h1, h2, buttons, nav */
  --weight-semibold: 600;  /* eyebrow labels */

  /* ---------- Type scale as roles (measured fluid clamps, kept exactly) ----------
     Each role names the measured size it reproduces at 1440 / 390. */
  --size-display: clamp(5.5rem, 3.0734rem + 11.03vw, 13.5515rem); /* 208 / 92.2 */
  --size-h1: clamp(2.5rem, 1.6904rem + 3.68vw, 5.184rem);         /* 80 / 41.4: hero and band titles */
  --size-h3: clamp(1.875rem, 1.3888rem + 2.21vw, 3.4855rem);      /* 54 / 30: link card titles */
  --size-h4: clamp(1.75rem, 1.4266rem + 1.47vw, 2.8235rem);       /* 44 / 28.6: footer title */
  --size-quote: clamp(1.5rem, 1.379rem + 0.55vw, 1.9025rem);      /* 30 / 24.2 */
  --size-body: clamp(1.125rem, 1.0854rem + 0.18vw, 1.259rem);     /* 20 / 18.1 */
  --size-ui-large: clamp(1.25rem, 1.2104rem + 0.18vw, 1.384rem);  /* 22 / 20.1: nav, eyebrow */
  --size-ui-small: clamp(1rem, 0.9604rem + 0.18vw, 1.134rem);     /* 18 / 16.1 */
  --size-button: 1.375rem;   /* measured 22 at desktop; 20 under 992, 18 under 480 (base.css) */
  --size-nav-overlay: 1.6rem; /* measured, phone menu links */

  --leading-tight: 1em;      /* display */
  --leading-heading: 1.1em;  /* every heading and button */
  --leading-quote: 1.15em;   /* measured from the quote cards */
  --leading-body: 1.5em;
  --tracking-heading: -0.03em;
  --tracking-display: -0.01em;
  --tracking-body: -0.02em;
  --measure-hero: 22ch;      /* measured, hero title */
  --measure-short: 7em;      /* decided, two-line closing title as captured */

  /* ---------- Spacing scale (measured fluid --size-- steps) ---------- */
  --space-6: 0.375rem;
  --space-8: 0.5rem;
  --space-12: clamp(0.625rem, 0.5854rem + 0.18vw, 0.759rem);
  --space-16: clamp(0.75rem, 0.6686rem + 0.37vw, 1.0185rem);
  --space-20: clamp(1rem, 0.9186rem + 0.37vw, 1.2685rem);
  --space-24: clamp(1.125rem, 1.004rem + 0.55vw, 1.5275rem);
  --space-30: clamp(1.375rem, 1.2122rem + 0.74vw, 1.912rem);
  --space-36: clamp(1.75rem, 1.5872rem + 0.74vw, 2.287rem);
  --space-44: clamp(2rem, 1.758rem + 1.1vw, 2.805rem);
  --space-52: clamp(2.375rem, 2.0912rem + 1.29vw, 3.3145rem);
  --space-64: clamp(2.75rem, 2.3452rem + 1.84vw, 4.092rem);
  --space-80: clamp(3.125rem, 2.5178rem + 2.76vw, 5.138rem);
  --space-96: 6rem;          /* measured fixed: hero overlap */
  --space-128: clamp(4rem, 2.7064rem + 5.88vw, 8.294rem);
  --space-156: clamp(4.5rem, 2.8016rem + 7.72vw, 10.136rem);
  --space-236: clamp(5.75rem, 2.8372rem + 13.24vw, 15.412rem);

  /* ---------- Container and grid (measured) ----------
     12 columns inside a "breakout" grid: one gutter track each side so a
     picture can run to the window edge. Max width 95rem. */
  --container-max: 95rem;
  --gutter: clamp(1rem, 0.3532rem + 2.94vw, 3.147rem);  /* 48 / 16 */
  --grid-gap: var(--space-16);
  --columns: 12;
  --breakout-side: minmax(calc(var(--gutter) - var(--grid-gap)), 1fr);
  --breakout-inner: calc(var(--container-max) - (var(--gutter) * 2));
  --grid-breakout: [full-start] var(--breakout-side) [content-start]
    repeat(var(--columns), minmax(0, calc((var(--breakout-inner) - var(--grid-gap) * (var(--columns) - 1)) / var(--columns))))
    [content-end] var(--breakout-side) [full-end];
  --grid-breakout-single: [full-start] var(--breakout-side) [content-start]
    minmax(0, var(--breakout-inner)) [content-end] var(--breakout-side) [full-end];
  /* Breakpoints (measured, the live site's): 991 tablet and menu, 767 phone, 479 small phone */

  /* ---------- Radii, lines, shadow (measured; the site uses no others) ---------- */
  --radius-card: 1rem;       /* testimonial cards */
  --radius-pill: 100em;      /* every button, the newsletter field */
  --line-frame: 2px;         /* black frame round pictures and cards */
  --line-hair: 1px;          /* button outlines */
  --shadow-skip: 0 2px 6px -2px rgb(0 0 0 / 0.2);
  --focus-ring-width: 3px;   /* decided: 3px, offset 3px, re-pointed per tone */

  /* ---------- Motion (measured easings and durations) ---------- */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-soft: cubic-bezier(0.165, 0.84, 0.44, 1);
  --duration-fast: 0.1s;     /* button color change */
  --duration-base: 0.2s;     /* form, arrow buttons */
  --duration-card: 0.35s;    /* measured: support boxes and event cards on hover (ease-soft) */
  --duration-card-slow: 0.5s;/* measured: contact icon links on hover (ease-soft) */
  --duration-menu-open: 0.5s;   /* measured: phone menu slides in, linear */
  --duration-menu-close: 1s;    /* measured: phone menu slides out, ease-soft */
  /* Signature motions: the cursive word cycling light, music, nature, light, in a loop of
     11.75 seconds (3 seconds on each word, a 0.75 second slide) that starts when it scrolls
     into view; the hand-drawn icons above it flicker through three drawings every 0.65 s.
     Scroll-linked motion and smooth scrolling live in motion.js. Under reduced motion the
     word rests on "light" with its icon still, and nothing moves with the scroll. */
  --tilt-1: -2deg;
  --tilt-2: 1deg;
  --tilt-3: -1.5deg;
  --tilt-4: 0.5deg;
  --tilt-5: -2deg;
  --strip-height: 44px;      /* measured color strip; 36px under 992 */
}

/* ---------- Tones: re-point the semantic roles ---------- */
[data-tone="navy"] {
  --surface: var(--tgc-navy);
  --text: var(--tgc-white);
  --focus-ring-color: var(--tgc-teal);
}
[data-tone="paper"] {
  --surface: var(--tgc-paper);
  --text: var(--tgc-ink);
  --focus-ring-color: var(--tgc-navy);
}
[data-tone="white"] {
  --surface: var(--tgc-white);
  --text: var(--tgc-ink);
  --focus-ring-color: var(--tgc-navy);
}

@media (max-width: 991px) {
  :root { --size-button: 1.25rem; --strip-height: 36px; }
}
@media (max-width: 479px) {
  :root { --size-button: 1.125rem; }
}
