/* Design tokens — the single place global visual changes are made.
   Values extracted from the reference build (whipsupplyhub.com BaseLayout CSS,
   2026-10-10). Two registers: paper (default) and dark (.dark-surface / [data-theme=dark]). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Metric-compatible fallbacks so text does not reflow when the webfont lands */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 130.7759%; ascent-override: 67.1378%; descent-override: 16.058%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 134.2826%; ascent-override: 72.1426%; descent-override: 17.9629%; line-gap-override: 0%; }

:root {
  /* Palette */
  --color-ink: #1b1b21;
  --color-ink-soft: #24242c;
  --color-ink-line: #383842;
  --color-gold: #8f6718;
  --color-gold-bright: #e8c06a;
  --color-paper: #faf8f4;
  --color-surface: #fff;
  --color-line: #e8e3d9;
  --color-body: #22222a;
  --color-muted: #5f5f69;
  --color-sale: #c0392b;
  --color-success: #1e7a4b;
  --color-black: #000;
  --color-white: #fff;

  /* Paper register (default) */
  --bg: var(--color-paper);
  --bg-raised: var(--color-surface);
  --bg-sunken: #f2efe8;
  --fg: var(--color-body);
  --fg-muted: var(--color-muted);
  --line: var(--color-line);
  --accent: var(--color-gold);
  --accent-contrast: #fff;
  --header-bg: #ffffffe0;
  --header-fg: var(--color-body);

  /* Type */
  --font-display: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --leading-snug: 1.375;
  --leading-relaxed: 1.625;
  --tracking-wide: .025em;
  --tracking-wider: .05em;
  /* Fluid scale (reference uses clamp() almost everywhere) */
  --text-h1: clamp(1.875rem, 4.5vw, 3rem);
  --text-h2: clamp(1.5rem, 3.2vw, 2.25rem);
  --text-h3: clamp(1.125rem, 1.6vw, 1.375rem);
  --text-body: 1rem;
  --text-sm: .875rem;
  --text-xs: .75rem;
  --text-eyebrow: .6875rem;

  /* Space, size, shape */
  --spacing: .25rem;
  --container: 88rem;
  --container-pad: 1.25rem;
  --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem;
  --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem;
  --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem;
  --radius-card: 14px;
  --radius-pill: 999px;
  --header-h: 72px;

  /* Elevation */
  --shadow-card: 0 1px 2px #0b0b0d0a, 0 8px 24px -12px #0b0b0d1f;
  --shadow-lift: 0 2px 4px #0b0b0d0d, 0 18px 40px -16px #0b0b0d38;
  --shadow-drawer: -18px 0 60px -20px #0b0b0d59;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-default: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .15s;
  --dur: .2s;
  --dur-slow: .3s;
  --blur-sm: 8px;
  --blur-md: 12px;

  /* Breakpoints are documented here for reference; CSS cannot read them from a var.
     sm 40rem/640px · md 48rem/768px · lg 64rem/1024px · xl 80rem/1280px · 2xl 96rem/1536px */
}

@media (min-width: 48rem) { :root { --container-pad: 2rem; } }
@media (min-width: 64rem) { :root { --container-pad: 2.5rem; --header-h: 84px; } }

/* Dark register — gold-on-black hero/footer/CTA bands */
.dark-surface,
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --bg-raised: #141418;
  --bg-sunken: #08080a;
  --fg: #f2f0ec;
  --fg-muted: #c2c2cb;
  --line: var(--color-ink-line);
  --accent: var(--color-gold-bright);
  --accent-contrast: #0b0b0d;
  --header-bg: #08080aeb;
  --header-fg: #f5f3ee;
}
.dark-surface { background: var(--color-ink); color: var(--fg); }
