/* ==========================================================================
   Hybrid Sports Club — design tokens
   Source of truth for colour, type, space, shape and motion.
   Brand values (ink, teal, amber, Space Grotesk) come from the brand guideline.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  /* ---- Brand primitives ------------------------------------------------ */
  --ink-950: #080f15;
  --ink-900: #0d1821; /* brand navy */
  --ink-800: #16242f;
  --ink-700: #22323f;

  --teal-50: #ecfbf9;
  --teal-100: #d2f5f1;
  --teal-300: #6fe6dc;
  --teal-400: #00d4c4; /* brand teal, bright: fills and on-dark accents */
  --teal-600: #009999; /* brand teal, deep */
  --teal-700: #007676; /* text-safe on paper (5.6:1) */
  --teal-900: #00393a;

  --amber-100: #fcefd2;
  --amber-400: #e99e08; /* brand amber: accent only, about 10% */
  --amber-700: #8f5f00; /* text-safe on paper */

  --paper-0: #ffffff;
  --paper-50: #f8f8f6;
  --paper-100: #f2f2f2; /* brand light */
  --paper-200: #e6e7e6;
  --paper-300: #cfd2d3;

  --grey-500: #6b7680;
  --grey-600: #515c66;
  --grey-700: #3a4650;

  --red-500: #d92d2d;
  --green-600: #0a8f4a;

  /* ---- Semantic colour (light surface is the default) ------------------ */
  --bg: var(--paper-50);
  --bg-raised: var(--paper-0);
  --bg-sunken: var(--paper-100);
  --text: var(--ink-900);
  --text-muted: var(--grey-600);
  --text-subtle: var(--grey-500);
  --line: var(--paper-200);
  --line-strong: var(--paper-300);
  --accent: var(--teal-700);
  --accent-fill: var(--teal-400);
  --on-accent-fill: var(--ink-900);
  --highlight: var(--amber-400);
  --action: var(--ink-900);
  --on-action: var(--paper-0);
  --action-hover: var(--ink-700);
  --focus: var(--teal-600);
  --danger: var(--red-500);
  --success: var(--green-600);

  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --text-display: clamp(3rem, 1.2rem + 7.2vw, 7rem);     /* 48 → 112 */
  --text-h1: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);        /* 40 → 72 */
  --text-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);       /* 32 → 52 */
  --text-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);         /* 24 → 32 */
  --text-h4: 1.25rem;                                    /* 20 */
  --text-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);  /* 18 → 22 */
  --text-body: 1rem;                                     /* 16 */
  --text-small: 0.875rem;                                /* 14 */
  --text-caption: 0.75rem;                               /* 12 */

  --leading-display: 0.95;
  --leading-heading: 1.08;
  --leading-body: 1.55;
  --tracking-display: -0.045em;
  --tracking-heading: -0.03em;
  --tracking-body: 0;

  /* ---- Space (4px base) ------------------------------------------------ */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  --section-y: clamp(4rem, 2rem + 8vw, 8rem);
  --page-x: clamp(1.25rem, 0.5rem + 3.5vw, 4rem);
  --page-max: 82rem; /* 1312 */
  --gutter: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);

  /* ---- Shape ----------------------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 10px;   /* inputs, small tiles */
  --radius-md: 16px;   /* cards */
  --radius-lg: 24px;   /* media, feature panels */
  --radius-pill: 999px; /* buttons, tags: echoes the round caps of the logomark */

  --shadow-1: 0 1px 2px rgb(13 24 33 / 0.06);
  --shadow-2: 0 12px 32px -12px rgb(13 24 33 / 0.18);

  /* ---- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

/* Ink surface: put this class on any section to flip the semantic tokens. */
.surface-ink {
  --bg: var(--ink-900);
  --bg-raised: var(--ink-800);
  --bg-sunken: var(--ink-950);
  --text: #f4f6f6;
  --text-muted: #a9b4bc;
  --text-subtle: #7f8b94;
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.24);
  --accent: var(--teal-400);
  --action: var(--teal-400);
  --on-action: var(--ink-900);
  --action-hover: var(--teal-300);
  --focus: var(--teal-300);
  background: var(--bg);
  color: var(--text);
}

/* Teal surface: one per page at most (CTA band, announcement). */
.surface-teal {
  --bg: var(--teal-400);
  --bg-raised: var(--teal-300);
  --text: var(--ink-900);
  --text-muted: var(--teal-900);
  --text-subtle: var(--teal-900);
  --line: rgb(13 24 33 / 0.16);
  --line-strong: rgb(13 24 33 / 0.32);
  --accent: var(--ink-900);
  --action: var(--ink-900);
  --on-action: var(--paper-0);
  --action-hover: var(--ink-700);
  --focus: var(--ink-900);
  background: var(--bg);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
  }
}

/* Deep teal surface (Teal 600): the About section.
   White on #009999 is 3.5:1, fine for headings and large text; body copy is set at full white. */
.surface-deep {
  --bg: var(--teal-600);
  --bg-raised: #0aa3a3;
  --bg-sunken: var(--teal-700);
  --text: #ffffff;
  --text-muted: #ffffff;
  --text-subtle: rgb(255 255 255 / 0.85);
  --line: rgb(255 255 255 / 0.28);
  --line-strong: rgb(255 255 255 / 0.5);
  --accent: var(--ink-900);
  --action: var(--ink-900);
  --on-action: var(--paper-0);
  --action-hover: var(--ink-700);
  --focus: #ffffff;
  background: var(--bg);
  color: var(--text);
}
