/* Northline Hockey — shared site layer.
   Aligned with the Compete app's design system "Night Rink" (rh-compete/DESIGN.md) — the
   site is the brand surface, so it lives on the app's dark palette: tonal surfaces (no
   borders, no shadows on content), volt as a signal (hero + one primary per viewport),
   status in green/caution/red, Oswald for the moment, system type for everything else.
   Fonts are self-hosted: no third-party requests, no consent surface. */

@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-var.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Night Rink — dark tokens (DESIGN.md §2) */
  --ink: #0A101C;            /* page ground (--sc-bg) */
  --ink-2: #0D1626;          /* deep ground (--sc-bg2) */
  --surface: #141F33;        /* cards, rows (--sc-surface) */
  --surface2: #1B2A45;       /* tonal fills inside a card: chips, inputs, tiles */
  --text: #EAF1F8;           /* ink; also the selected fill */
  --steel: #93A7BC;          /* labels, secondary text */
  --line: #283B5C;           /* hairlines — list separators only */
  --navy: #0C2340;           /* brand navy (light-mode ink in the app) */
  --volt: #C8F31D;           /* the signal */
  --volt-glow: rgba(200, 243, 29, .35);
  --red: #C8102E;            /* goal red — the goal-line device, jersey numbers */
  --red-ui: #FF5468;         /* status red on dark (miss / urgent) */
  --green: #2BCE92;          /* status green (good / verified) */
  --caution: #E8B23A;        /* status caution — also gold, top tier only */
  --gold: #E8B23A;
  --dim: rgba(255, 255, 255, .6);
  --ghost: rgba(255, 255, 255, .13);
  --glass: rgba(20, 31, 51, .62);
  --glass-line: rgba(255, 255, 255, .12);
  /* Concentric radii */
  --r-sheet: 28px; --r-card: 20px; --r-tile: 16px; --r-control: 14px; --r-pill: 999px;
  /* Motion — feedback under 300 ms, ease-out */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  /* Foils — the earned ladder (BRAND.md §3) */
  --foil-gold: linear-gradient(135deg, #7A5A14 0%, #E8B23A 24%, #FFF0BF 50%, #E8B23A 76%, #7A5A14 100%);
  --foil-volt: linear-gradient(135deg, #5E7607 0%, #C8F31D 24%, #F2FFC0 50%, #C8F31D 76%, #5E7607 100%);
  --foil-silver: linear-gradient(135deg, #5E6B7A 0%, #B9C6D2 24%, #F2F7FB 50%, #B9C6D2 76%, #5E6B7A 100%);
  --matte-rookie: linear-gradient(135deg, #131E31 0%, #22344E 50%, #131E31 100%);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--volt); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Oswald is for the moment: hero numbers, titles, eyebrows, the card. */
h1, h2, h3, .disp {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .02em;
  text-wrap: balance;
}
p { max-width: 62ch; }
.muted { color: var(--steel); }
strong { color: var(--text); }

/* Inline prose links — underlined and text-coloured, so they read as links
   inside steel copy without borrowing volt (which stays an earned signal). */
.link {
  color: var(--text); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: var(--text); }
}

/* The app's `label` style: small, system, uppercase-tracked, subtle. */
.label, .eyebrow {
  font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--steel);
}
/* Brand eyebrow — Oswald + red, one per page (the app's brand eyebrow).
   Text uses the lifted on-ink red (#C8102E is 3.2:1 on ink — device-only); the
   goal-line device keeps true goal red. */
.eyebrow.brand { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--red-ui); font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }

/* Tonal surfaces — depth from surface steps, never borders or shadows. */
.card { background: var(--surface); border-radius: var(--r-card); }
.tile { background: var(--surface2); border-radius: var(--r-tile); }
.inset { background: var(--surface2); border-radius: var(--r-control); }
/* Status tints — a tinted surface + coloured text, no border. */
.tint-caution { background: color-mix(in srgb, var(--caution) 14%, var(--surface)); }
.tint-red { background: color-mix(in srgb, var(--red-ui) 14%, var(--surface)); }
.tint-green { background: color-mix(in srgb, var(--green) 14%, var(--surface)); }

/* Chips — system label type, tonal; ink (= text) fill when selected. */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--surface2); color: var(--text);
  font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.chip.on { background: var(--text); color: var(--ink); }

/* Icons — 2 px stroke, currentColor (Lucide grid) */
.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Language switching ──────────────────────────────────────────────────────
   Bilingual content is authored twice with lang attributes; html.L-de / html.L-en
   shows one. The pre-paint script in each <head> sets the class before first render. */
html.L-en [lang="de"] { display: none !important; }
html.L-de [lang="en"] { display: none !important; }

/* Section heading grammar: Oswald caps + the goal-line underline (BRAND.md §5.1). */
.sec-head { margin-bottom: clamp(28px, 5vw, 52px); }
.sec-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.sec-head .goal-line {
  display: block; width: 88px; height: 7px; background: var(--red);
  transform: skewX(-14deg); margin-top: 14px;
}

/* ── Buttons — the app's Btn: capsule, system 600/16, min-height 50 ─────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; min-height: 50px; padding: 0 24px; border-radius: var(--r-pill);
  border: 0; cursor: pointer; color: var(--text);
  transition: transform 120ms var(--ease-out), background 150ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-volt { background: var(--volt); color: var(--ink); box-shadow: 0 8px 24px var(--volt-glow); }
/* Hover glow lives on a pseudo-element and transitions opacity — animating
   box-shadow itself repaints every frame. */
.btn-volt::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 10px 30px var(--volt-glow); opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.btn-ghost { background: var(--surface2); color: var(--text); }
.btn-navy { background: var(--text); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-volt:hover::after { opacity: 1; }
  .btn-ghost:hover { background: #22344E; }
}
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: var(--r-pill); }

/* ── Nav: glass chrome pill (glass is for floating chrome only) ─────────────── */
nav.site { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-pill {
  position: relative; /* anchors the mobile menu panel */
  pointer-events: auto; max-width: 1120px;
  margin: 0 auto; padding: 8px 10px 8px 10px;
  width: calc(100% - 32px);
  display: flex; align-items: center; gap: 14px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-line);
  border-radius: var(--r-pill);
}
.nav-pill > a.home { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 2px 4px 2px 2px; }
.nav-pill img { width: 40px; height: 40px; border-radius: 50%; }
.nav-pill .wordmark {
  font-family: var(--display); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: 14px; white-space: nowrap;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a.plain {
  font-family: var(--body); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--steel);
  padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill);
  transition: color 150ms ease, background 150ms ease;
}
.nav-cta { min-height: 44px; padding: 0 16px; font-size: 14px; margin-left: 6px; }
.lang-toggle {
  font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .05em;
  background: var(--surface2); border: 0;
  color: var(--steel); border-radius: var(--r-pill); min-height: 44px; padding: 0 12px; cursor: pointer;
  transition: background 150ms ease, transform 120ms var(--ease-out); margin-left: 6px;
}
.lang-toggle:active { transform: scale(.97); }
.lang-toggle b { color: var(--text); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a.plain:hover { color: var(--text); background: rgba(255,255,255,.06); }
  .lang-toggle:hover { background: #22344E; }
}

/* ── Mobile nav menu — a disclosure in the pill; the IA never disappears ───── */
.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); color: var(--steel);
  transition: background 150ms ease, color 150ms ease;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary .ico { width: 20px; height: 20px; }
.nav-menu[open] summary { background: var(--surface2); color: var(--text); }
/* Positioned against the pill, not the trigger — a trigger-anchored panel falls
   off the left screen edge on narrow phones. */
.nav-menu .menu-panel {
  position: absolute; right: 8px; top: calc(100% + 8px); min-width: 210px;
  display: flex; flex-direction: column; padding: 8px;
  /* Opaque, not glass — backdrop-filter can't re-sample the page from inside
     the pill's own backdrop root, so glass here reads as bleed-through. */
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--glass-line), 0 18px 44px rgba(0, 0, 0, .5);
  border-radius: var(--r-tile);
}
.nav-menu .menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  color: var(--text); text-decoration: none; border-radius: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .nav-menu .menu-panel a:hover { background: rgba(255,255,255,.08); }
}
/* 820, not 760 — the German labels ("Compete öffnen", "Ausrüstung") overflow the
   pill in the 761–790px band with an English-tuned breakpoint. */
@media (max-width: 820px) {
  .nav-links a.plain { display: none; }
  .nav-menu { display: block; }
  .nav-pill { gap: 8px; }
  .nav-pill .wordmark { font-size: 12px; letter-spacing: .14em; }
  .lang-toggle, .nav-cta { white-space: nowrap; margin-left: 4px; }
  .nav-cta { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 460px) {
  .nav-pill .wordmark { display: none; } /* the crest alone is enough (BRAND.md §2) */
  .eyebrow.brand { letter-spacing: .18em; }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.foot-grid { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-grid img { width: 44px; height: 44px; border-radius: 50%; }
.foot-grid .fm { font-family: var(--display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.foot-links { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.foot-links a, .foot-legal a { color: var(--steel); text-decoration: none; font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-pill); }
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover, .foot-legal a:hover { color: var(--text); }
}
.foot-legal { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; margin-left: -10px; }
.credits { margin-top: 16px; font-size: 12px; color: rgba(147, 167, 188, .85); }

/* ── Skip link — first tab stop on every page ──────────────────────────────── */
.skip {
  position: fixed; top: 14px; left: 14px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: var(--volt); color: var(--ink); border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 600; font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ── Reveal on scroll: enhancement only — motion is feedback, under 300 ms ── */
.rv { transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.rv.rv-init { opacity: 0; transform: translateY(12px); }
.rv.rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv.rv-init { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-pill { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(234,241,248,.4); }
  .eyebrow.brand { color: #FF8A99; }
  .credits { color: var(--steel); }
}
