/* ============================================================================
   Ages Productions — brand foundation, extracted for the LED Wall property.

   Source of truth: the Ages Productions design system doc
   (ages.productions repo → _internal/Ages Productions Design System.html).
   Values here are copied verbatim from that system's styles.css so the two
   properties stay visually related. Do not invent new colours or type here —
   if this project needs a token the brand doesn't have, add it under the
   "LED-specific" block at the bottom and say why.

   This file is deliberately standalone: the LED project must not depend on the
   Ages repo at build or run time.
   ========================================================================== */

:root {
  /* ── Charcoal · structure ───────────────────────────────────────────────── */
  --charcoal-1: #14171B;   /* primary dark ground */
  --charcoal-2: #2A2F36;   /* secondary / body copy on light */
  --charcoal-3: #1B1F24;
  --charcoal-4: #0E1115;   /* deepest */

  /* ── Brand blue · accent ────────────────────────────────────────────────── */
  --blue: #355C84;         /* brand blue — 6.96:1 on white */
  --blue-bright: #4A78A8;
  --blue-soft: #7A9BC2;    /* 6.25:1 on charcoal-1 */

  /* ── Neutral · surfaces ─────────────────────────────────────────────────── */
  --gray-soft: #E6E8EB;
  --gray-paper: #F4F5F7;
  --gray-line: #D9DCE0;
  --white: #FFFFFF;
  --ink-mute: #5C636C;     /* 6.08:1 on white */

  /* ── Type ───────────────────────────────────────────────────────────────── */
  --font-sans: 'Sora', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* ── Layout ─────────────────────────────────────────────────────────────── */
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);

  --accent: var(--blue);

  /* ── Focus ring (WCAG 2.4.7) ────────────────────────────────────────────── */
  --focus-ring: var(--blue-bright);
  --focus-ring-contrast: #FFFFFF;
}

/* ============================================================================
   RESET / BASE
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Keyboard-only focus. :focus-visible never fires on mouse click, so this adds
   no visual weight for pointer users. Sharp corners, no glow. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}
/* On dark grounds the white halo is the visible edge — invert the pairing. */
.on-dark :focus-visible {
  outline-color: var(--focus-ring-contrast);
  box-shadow: 0 0 0 4px rgba(53,92,132,0.55);
}

/* Skip link (WCAG 2.4.1) */
.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transform: translateY(-120%);
  padding: 14px 22px;
  background: var(--charcoal-1);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  border: 1px solid var(--blue-bright);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Anchor targets clear the sticky header (WCAG 2.4.11) */
[id] { scroll-margin-top: 88px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ============================================================================
   TYPE
   ========================================================================== */

.h-display {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--charcoal-1);
  text-wrap: balance;
}
.text-blue { color: var(--accent); }

/* Mono is the technical voice: labels, specs, counts, statuses.
   Always uppercase, tracking opened to 0.12–0.18em. */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  font-weight: 500;
}
.section-label--light { color: rgba(255,255,255,0.6); }

/* ============================================================================
   BUTTONS — sharp corners, solid fills, never gradients
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 18px 30px; font-size: 15px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--charcoal-1);
  border-color: var(--charcoal-1);
  transform: translateY(-1px);
}
/* On a dark ground the standard hover goes charcoal and disappears.
   Use this variant there instead. */
.on-dark .btn--primary:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--charcoal-1);
  border-color: var(--gray-line);
}
.btn--ghost:hover { border-color: var(--charcoal-1); }

/* ============================================================================
   ACCESSIBILITY FLOORS — carried over from the Ages August 2026 audit
   ========================================================================== */

/* Translucent white text on charcoal must not drop below 0.55 alpha (4.5:1).
   UI component borders need 3:1 — form fields sit at 0.38 for that reason.
   Decorative dividers are exempt and may stay dim. */

@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;
  }
}

/* ============================================================================
   LED-SPECIFIC ADDITIONS
   Tokens the Ages brand doesn't define, added for this property only.
   ========================================================================== */

:root {
  /* The LED site leans darker than the main site — the product is a light
     source, and dark grounds make the wall photography read as luminous. */
  --led-ground: var(--charcoal-4);
  --led-panel: #161A1F;    /* card ground on the dark sections */
}
