/* ==========================================================================
   THE TENNIS SHOP 2.0 — UNIFIED DESIGN TOKENS (design-tokens.css)
   Direction: "The Modern Lawn Tennis Club" — British club heritage,
   editorial authority (Fraunces + Manrope), warm chalk & deep forest green.
   ========================================================================== */

:root {
  /* Core Surfaces & Backgrounds */
  --tts-paper: #fbfaf6;        /* Primary warm chalk page surface */
  --tts-cream: #f4f2eb;        /* Secondary surface, studio photo boxes, elevated strips */
  --tts-stone: #e9e6dc;        /* Quick-entry strip, subtle wells, neutral pill background */
  --tts-white: #ffffff;        /* Crisp card surface */
  --tts-line: #d6dcd3;         /* Hairline borders, dividers, table rules */
  --tts-line-strong: #b8c4b9;  /* Emphasised borders and input outlines */

  /* Club Greens & Brand Accents */
  --tts-forest-950: #0c261f;   /* Hero & dark editorial sections */
  --tts-forest-900: #13392e;   /* Primary brand green, buttons, active borders */
  --tts-forest-800: #1c4d3e;   /* Hover states, secondary badges */
  --tts-forest-700: #296350;   /* Supporting interactive accents */
  --tts-grass-500: #4c6b53;    /* Eyebrows, secondary botanical accents */
  --tts-ball: #dbe96b;         /* Optic yellow-lime primary CTA & highlight accent */
  --tts-ball-hover: #e6f286;   /* Hover state for optic ball CTA */
  --tts-ball-tint: #f2f6d8;    /* Soft lime tint for badges */
  --tts-clay: #b85d38;         /* Terracotta clay accent for trade-offs & clay court tags */
  --tts-brass: #8a6d3b;        /* Heritage brass for provenance / archive callouts */

  /* Ink & Text Hierarchy (WCAG AA Checked on --tts-paper & --tts-cream) */
  --tts-ink: #12241d;          /* Primary headings and high-contrast values */
  --tts-body: #253931;         /* Long-form editorial and UI body copy */
  --tts-muted: #52665c;        /* Metadata, provenance captions, secondary labels */

  /* Semantic Status & Freshness Colours */
  --tts-success: #1b5e3a;
  --tts-success-bg: #e6f2eb;
  --tts-warn: #8a5311;
  --tts-warn-bg: #faeedb;
  --tts-error: #8c261e;
  --tts-error-bg: #fbe8e6;

  /* Legacy Alias Bridge (keeps site.css, content.css, rebuild.css, storefront.css in sync) */
  --court: var(--tts-forest-900);
  --forest: var(--tts-forest-950);
  --field: var(--tts-forest-800);
  --ink: var(--tts-ink);
  --paper: var(--tts-paper);
  --chalk: var(--tts-paper);
  --warm: var(--tts-stone);
  --lime: var(--tts-ball);
  --ball: var(--tts-ball);
  --line: var(--tts-line);
  --muted: var(--tts-muted);
  --danger: var(--tts-error);
  --terra: var(--tts-clay);

  /* Typography Stack (Owner Locked: Fraunces Display + Manrope UI/Body) */
  --tts-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --tts-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tts-font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;

  /* Fluid Type Scale */
  --tts-text-hero: clamp(2.5rem, 4.8vw, 4.35rem);
  --tts-text-h1: clamp(2.15rem, 3.8vw, 3.35rem);
  --tts-text-h2: clamp(1.65rem, 2.7vw, 2.45rem);
  --tts-text-h3: clamp(1.22rem, 1.7vw, 1.5rem);
  --tts-text-lead: clamp(1.02rem, 1.25vw, 1.15rem);

  /* Layout & Spacing */
  --tts-max-content: 1240px;
  --tts-gutter-desktop: 32px;
  --tts-gutter-tablet: 24px;
  --tts-gutter-phone: 16px;

  /* Border Radius */
  --tts-radius-xs: 6px;
  --tts-radius-sm: 10px;
  --tts-radius-card: 14px;
  --tts-radius-feature: 20px;
  --tts-radius-pill: 999px;

  /* Shadows & Motion */
  --tts-shadow-sm: 0 2px 8px rgba(12, 38, 31, 0.05);
  --tts-shadow-md: 0 12px 30px rgba(12, 38, 31, 0.08);
  --tts-shadow-lg: 0 22px 48px rgba(12, 38, 31, 0.16);
  --tts-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tts-duration-fast: 160ms;
}

/* Tabular numerals for weights, head sizes, tensions and £ prices */
.tabular-nums,
.price-amount,
.spec-list dd,
.offer-table td,
.quick-spec strong {
  font-variant-numeric: tabular-nums;
}
