/* "arena": a bold, high-energy child theme on the Fluid base v2, for sports
   and combat. Stadium-board capitals, huge and tight; a hot red for actions
   and the rule over each section; heavy sans labels; a fast motion beat.
   Fonts: themes/fonts/arena.css. Link after the base: fluid.min.css, then
   this file. */
@layer reset, tokens, base, layouts, components, themes, utilities;

@layer themes {
  :root {
    --font-heading: "Big Shoulders Display Variable", "Oswald", "Arial Narrow", Impact, sans-serif;
    --font-body: "Chivo Variable", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    --accent: oklch(52% 0.21 27);           /* fight-night red; white on it ≈ 6:1 */
    --neutral-tint: oklch(50% 0.008 260);   /* cold steel */
    --type-ratio: 1.5;
    --weight-display: 850;
    --weight-heading: 800;
    --display-max: 13rem;
    --measure: 62ch;
    --radius-control: 0;
    --border-width: 2px;
    --container-content: 88rem;
    --space-section: clamp(4rem, 2.4rem + 7.111vi, 9rem);     /* 64 → 144 */
    --motion-base: 200ms;
    --nav-tracking: 0.08em;
    --nav-tracking-min: 0.02em;
    --toc-marker: decimal-leading-zero;
    --section-rule: 8px;
  }

  /* Fight-night red: in dark mode the base softens the accent as text to a
     pale salmon; Arena keeps it hot (5.8:1 on the dark page, 5.4:1 on a
     tinted band). The rules take the same red. */
  :root {
    --arena-red: light-dark(var(--accent-ink), oklch(66% 0.22 29));
    --arena-rule: light-dark(var(--accent), oklch(62% 0.22 28));
  }

  :is(h1, h2, h3, .display, .hero__headline, .card__title, .feature__title, .cta__title, .stat__value, .site-footer__title) {
    text-transform: uppercase;
  }
  .display, .hero__headline, h1 { line-height: 0.86; letter-spacing: -0.005em; }
  h2 { line-height: 0.95; }
  :is(h1, h2, h3, .display, .hero__headline, .card__title, .feature__title, .cta__title) em {
    font-style: normal;   /* no italic file: emphasis by colour */
    color: var(--arena-red);
  }
  /* On a band (a dark, accent, gradient or photo hero, an inverse or
     accent-strong section, a dark footer) the red would sit on red or a photo
     (#136): emphasis there keeps the band's text colour and takes a heavy
     underline instead. */
  :is(.hero:is([data-theme="dark"], [data-theme="accent"], [data-theme="gradient"], [data-overlay]), :is(.section, section):is([data-bg="inverse"], [data-bg="accent-strong"]), .site-footer[data-dark])
    :is(h1, h2, h3, .display, .hero__headline, .card__title, .feature__title, .cta__title) em {
    color: inherit;
    text-decoration: underline 0.08em;
    text-underline-offset: 0.08em;
  }
  /* Every title in the stadium face carries weight, not only the heads. */
  :is(.card__title, .feature__title, .site-footer__title) { font-weight: calc(750 + var(--_dark-weight)); }
  :is(.pullquote, .testimonial__quote p) { font-weight: calc(700 + var(--_dark-weight)); }

  :is(.eyebrow, h5, h6, thead th, .plate, cite, legend, dt, .toc__label, .stat__label) {
    font-weight: calc(800 + var(--_dark-weight));
    letter-spacing: 0.12em;
  }
  :is(button, .button, .nav__cta), :is(.nav__link, .nav__dropdown-link) {
    font-weight: calc(800 + var(--_dark-weight));
    text-transform: uppercase;
  }
  :is(button, .button, .nav__cta) { letter-spacing: 0.08em; }
  /* A long button label still fits a 320px screen. */
  @media (max-width: 24rem) {
    :is(button, .button, .nav__cta) { letter-spacing: 0.01em; }
  }
  /* A segmented button group cannot wrap: on a phone its capitals lose their
     tracking and some padding, so three labels still fit a 390px screen. */
  @media (max-width: 30rem) {
    .button-group > :is(button, .button) { letter-spacing: 0; padding-inline: 1em; }
  }
  .nav__brand {
    font-family: var(--font-heading);
    font-weight: 900;   /* the face's heaviest: no dark-mode step above it */
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }

  .lede { font-family: var(--font-body); font-weight: calc(400 + var(--_dark-weight)); }
  /* The section rule in the action red: thick, like a corner post. On the
     red band it would vanish, so there it is the band's own ink. */
  :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) { border-block-start-color: var(--arena-rule); }
  [data-bg="accent-strong"] :is(.section__head, .features__header, .stats__header, .team__header, .testimonials__header) { border-block-start-color: var(--color-border-strong); }
  blockquote:not(.testimonial__quote) {
    font: calc(800 + var(--_dark-weight)) var(--step-3) / 1 var(--font-heading);
    text-transform: uppercase;
    border-inline-start: var(--section-rule) solid var(--arena-rule);
  }

  /* ---------- Layout signature (_docs/plans/2026-11-22-theme-differentiation.md) ----------
     The theme recomposes the default hero (one with no data-layout; an author's
     data-layout wins) and the bar; the markup stays the core's. */
  /* A fight poster: the headline as big as the bar allows, the photo inset on the end side with a
     hard red block behind it. */
  @media (min-width: 48rem) {
    .hero:not([data-layout]) > .hero__plate {
      inline-size: 62%;
      margin-inline: auto 1.5rem;
      margin-block-end: var(--space-l);
      box-shadow: -1.5rem 1.5rem 0 var(--arena-rule);
    }
    .hero:not([data-layout]) > .hero__plate figcaption { margin-inline: 0; }
  }
}
