/* ============================================================
   base.css — design tokens, reset, primitives
   Tyson "The Truth" Isa — editorial luxury boxing identity
   ============================================================ */

:root {
  /* ---- Type scale (fluid) ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.4rem + 5vw, 5.5rem);
  --text-hero: clamp(3.25rem, 0.5rem + 9vw, 9rem);

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius (restrained — editorial, mostly square) ---- */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Content widths ---- */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;
  --gutter: clamp(var(--space-5), 5vw, var(--space-24));

  /* ---- Fonts ---- */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-script: "Mrs Saint Delafield", "Playfair Display", cursive;
  --font-body: "Archivo", "Helvetica Neue", system-ui, sans-serif;

  /* ---- Brand accent (antique / metallic gold) — constant across themes ---- */
  --gold: #b8934a;
  --gold-bright: #cdaa5e;
  --gold-deep: #8a6a30;
}

/* ============================================================
   PERSONA: FIGHTER — "FIGHT NIGHT" (default / cinematic dark)
   The dangerous ring persona. High contrast, gold on black.
   ============================================================ */
:root,
[data-persona="fighter"] {
  --color-bg: #0c0b0a;
  --color-bg-2: #100f0d;
  --color-surface: #141310;
  --color-surface-2: #191713;
  --color-border: #2a2621;
  --color-border-strong: #3a352c;
  --color-text: #ece7dc;
  --color-text-muted: #a49c8c;
  --color-text-faint: #6f685b;
  --color-text-inverse: #0c0b0a;
  --color-accent: var(--gold-bright);
  --color-accent-hover: #ddbb6c;
  --color-on-accent: #14110a;
  --hero-scrim: linear-gradient(
    100deg,
    rgba(8, 7, 6, 0.94) 0%,
    rgba(8, 7, 6, 0.78) 34%,
    rgba(8, 7, 6, 0.35) 62%,
    rgba(8, 7, 6, 0.55) 100%
  );
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  /* Cinematic dark, high contrast — aggressive but readable */
  --img-filter: contrast(1.12) brightness(0.9) saturate(0.9);
  --hero-img-filter: contrast(1.16) brightness(0.86) saturate(0.85);
  color-scheme: dark;
}

/* ============================================================
   PERSONA: MAN — "THE MAN" (warm ivory, human, lighter)
   The person outside the ring. Warmer, calmer, natural.
   ============================================================ */
[data-persona="man"] {
  --color-bg: #f4f0e6;
  --color-bg-2: #efeadd;
  --color-surface: #ece6d8;
  --color-surface-2: #e7e0cf;
  --color-border: #d8cfb9;
  --color-border-strong: #c4b898;
  --color-text: #171512;
  --color-text-muted: #5c554a;
  --color-text-faint: #938a78;
  --color-text-inverse: #f4f0e6;
  --color-accent: var(--gold-deep);
  --color-accent-hover: #6f5324;
  --color-on-accent: #f6f1e6;
  --hero-scrim: linear-gradient(
    100deg,
    rgba(244, 240, 230, 0.95) 0%,
    rgba(244, 240, 230, 0.82) 34%,
    rgba(244, 240, 230, 0.38) 62%,
    rgba(244, 240, 230, 0.6) 100%
  );
  --shadow-md: 0 6px 24px rgba(60, 48, 24, 0.12);
  --shadow-lg: 0 20px 60px rgba(60, 48, 24, 0.16);
  /* Warm and natural — keep the real photo, no heavy overlay */
  --img-filter: brightness(1.03) saturate(1.06) contrast(0.99);
  --hero-img-filter: brightness(1.04) saturate(1.08) contrast(0.98);
  color-scheme: light;
}

/* ============================================================
   Reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role="list"] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.05;
  font-weight: 400;
}

p {
  text-wrap: pretty;
  max-width: 64ch;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: var(--gold);
  color: #14110a;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a,
button,
[role="button"],
input,
textarea,
select {
  transition: color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    opacity var(--transition-interactive),
    transform var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
