/* ==========================================================================
   VFX Football League — design system
   Dark cinematic base, brand purple accent, mono numerics.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
/* Self-hosted variable fonts: no third-party request, no consent banner,
   ~120 KB total for all three. Files live in /assets/fonts/. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  /* surfaces */
  --bg:          #08090b;
  --bg-2:        #0d0f13;
  --surface:     #111318;
  --surface-2:   #171a21;
  --surface-3:   #1e222b;

  /* lines */
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* text */
  --text:        #eceef2;
  --muted:       #99a0ac;
  --dim:         #656c78;

  /* brand — taken from the logo
     #330098 is the logo's purple. It is only 1.4:1 against the page
     background, so it is used for fills, glows and gradients (where white
     sits on top of it) and never for text or hairlines. --accent is the same
     hue lightened to 5.9:1 on --bg, and does the UI work: links, numbers,
     active states, buttons. */
  --brand:       #330098;
  --brand-mid:   #5b21d6;
  --brand-soft:  #7c5ce6;
  --accent:      #a78bff;
  --accent-dim:  #7c5ce6;
  --lavender:    #c3c6db;  /* the logo's light face */
  --paper:       #f1f1f1;  /* the logo's white */
  --on-accent:   #120a26;  /* text on an --accent fill, 5.7:1 */

  /* secondary — decorative only */
  --cyan:        #3de8ff;
  --orange:      #ff6b3d;
  --magenta:     #ff3d8a;

  /* typography */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* rhythm */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --maxw-narrow: 720px;
  --radius: 4px;
  --radius-lg: 10px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.18rem, 2.3vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--accent); color: var(--on-accent); }

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

/* --------------------------------------------------------------- textures */
/* Very fine grain + scanlines, the "we work in post" tell. Pointer-events off. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section + .section { padding-top: 0; }
.page-hero + .section { padding-top: clamp(2rem, 5vw, 3.5rem); }

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10000;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; }

/* --------------------------------------------------------------- eyebrows */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }
.section-head > div { min-width: 0; }
.section-head h2 { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
              color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); background: #fff; border-color: #fff; }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); color: #fff; border-color: var(--accent); }

.btn--sm { padding: 0.55rem 0.95rem; font-size: 0.7rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 0.28rem;
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  max-height: calc(100dvh - 4.1rem);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1.25rem; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--dim);
  letter-spacing: 0.15em;
}

@media (min-width: 62rem) {
  .nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ------------------------------------------------------------ colour bars */
.bars { display: flex; height: 3px; width: 100%; }
.bars span { flex: 1; }
/* A step wedge in the logo's own colours, deep to light, with one cyan chip. */
.bars span:nth-child(1) { background: var(--brand); }
.bars span:nth-child(2) { background: var(--brand-mid); }
.bars span:nth-child(3) { background: var(--brand-soft); }
.bars span:nth-child(4) { background: var(--accent); }
.bars span:nth-child(5) { background: var(--lavender); }
.bars span:nth-child(6) { background: var(--paper); }
.bars span:nth-child(7) { background: var(--cyan); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.5rem, 11vw, 8rem) clamp(2.5rem, 7vw, 5rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70ch 50ch at 12% -10%, rgba(167, 139, 255, 0.22), transparent 62%),
    radial-gradient(60ch 45ch at 92% 8%, rgba(61, 232, 255, 0.07), transparent 60%);
}
.hero::after {
  /* faint node-graph grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120ch 60ch at 50% 25%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120ch 60ch at 50% 25%, #000 25%, transparent 78%);
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}
.hero__lede {
  font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__meta b { color: var(--text); font-weight: 600; }

/* page hero (interior pages) */
.page-hero {
  position: relative;
  padding-block: clamp(2.6rem, 7vw, 4.6rem) clamp(1.8rem, 4vw, 2.8rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60ch 34ch at 8% 0%, rgba(167, 139, 255, 0.11), transparent 65%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); max-width: 58ch; font-size: 1.04rem; margin: 0; }

/* ------------------------------------------------------------------ stats */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 0.5rem;
}
@media (min-width: 46rem) { .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; gap: 1px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 42rem) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}

a.card, .card--link { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card--link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  background: var(--surface-2);
  color: inherit;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 42rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.panel--accent { border-color: rgba(167, 139, 255, 0.38); background: linear-gradient(160deg, rgba(167, 139, 255, 0.1), var(--surface) 55%); }

/* --------------------------------------------------------------- widgets */
.widget-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-frame__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.widget-frame__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.widget-frame__body { padding: 0.35rem; background: #0e1014; }
.widget-frame iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 420px;
  border-radius: 6px;
  background: #0e1014;
  color-scheme: dark;
}

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 0 rgba(167, 139, 255, 0.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(167, 139, 255, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(167, 139, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 255, 0); }
}

/* segmented control (division / round switchers) */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.segmented button:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.round-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.round-picker label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
select {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

/* ------------------------------------------------------------------ table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 34rem;
}
table.data caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 0.75rem;
}
table.data th, table.data td {
  padding: 0.62rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
table.data th {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  white-space: nowrap;
}
table.data th:nth-child(2), table.data td:nth-child(2) { text-align: left; width: 99%; }
table.data td:first-child, table.data th:first-child { width: 2.4rem; text-align: center; color: var(--dim); font-family: var(--font-mono); font-size: 0.8rem; }
table.data td:last-child { font-weight: 700; color: var(--text); }
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
table.data tbody tr.is-champion td { background: rgba(167, 139, 255, 0.1); }
table.data tbody tr.is-champion td:first-child { color: var(--accent); }
table.data td { color: var(--muted); font-size: 0.9rem; }
table.data td:nth-child(2) { color: var(--text); font-weight: 500; }

/* ------------------------------------------------------------------ teams */
.team-list {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 38rem) { .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .team-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.team {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease);
}
.team:hover { border-color: var(--line-strong); }
.team__badge {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--on-accent);
  background: var(--team-colour, var(--accent));
}
.team--alumni .team__badge { background: var(--surface-3); color: var(--muted); }
.team__name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.team__seasons {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 0.2rem;
  margin-left: 0.2rem;
}

/* --------------------------------------------------------------- honours */
.honour {
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1fr;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 46rem) {
  .honour { grid-template-columns: 6rem 1fr auto; gap: 1.5rem; }
}
.honour__season {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.honour__winner {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  letter-spacing: -0.02em;
}
.honour__winner span { color: var(--accent); }
.honour__meta { color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.honour__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  justify-self: start;
}
.honour__tag--live { color: var(--accent); border-color: rgba(167, 139, 255, 0.42); }

.trophy-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(167, 139, 255, 0.34);
  background:
    radial-gradient(40ch 24ch at 85% 0%, rgba(167, 139, 255, 0.2), transparent 70%),
    var(--surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.trophy-card__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.trophy-card__team {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.trophy-card__meta { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ------------------------------------------------------------------- news */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { border-bottom: 1px solid var(--line); }
.post-item a {
  display: grid;
  gap: 0.35rem 1.75rem;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding 0.2s var(--ease);
}
.post-item a:hover { padding-left: 0.6rem; }
.post-item a:hover .post-item__title { color: var(--accent); }
@media (min-width: 46rem) { .post-item a { grid-template-columns: 8.5rem 1fr; } }
.post-item__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.35rem;
}
.post-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.3rem;
  transition: color 0.15s var(--ease);
}
.post-item__summary { color: var(--muted); font-size: 0.94rem; margin: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.22rem 0.6rem;
}

/* long-form article */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose h3 { margin-top: 1.8em; }
.prose img, .prose video { border-radius: var(--radius-lg); border: 1px solid var(--line); width: 100%; }
.prose figure { margin: 2rem 0; }
.prose figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-top: 0.6rem;
  text-align: center;
}
.prose blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.08rem;
}
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--muted); }
.prose li + li { margin-top: 0.4rem; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.12em 0.4em;
}
.prose .video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.prose .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ media */
.ig-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
  padding: clamp(2.5rem, 8vw, 5rem) 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.ig-fallback p { color: var(--muted); max-width: 44ch; margin: 0; }

/* ------------------------------------------------------------------- form */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface-3); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field--2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .field--2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; }

.form-note { font-size: 0.82rem; color: var(--dim); }

.form-status { border-radius: var(--radius); padding: 0.85rem 1rem; font-size: 0.92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(167, 139, 255, 0.14); border: 1px solid rgba(167, 139, 255, 0.38); color: var(--accent); }
.form-status--err { background: rgba(255, 61, 138, 0.1); border: 1px solid rgba(255, 61, 138, 0.35); color: #ff8fb4; }

/* --------------------------------------------------------------- accordion */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.3rem; color: var(--muted); max-width: 68ch; }

/* -------------------------------------------------------------------- CTA */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(50ch 30ch at 90% 110%, rgba(61, 232, 255, 0.09), transparent 70%),
    radial-gradient(50ch 30ch at 5% -20%, rgba(167, 139, 255, 0.22), transparent 70%),
    var(--surface);
  padding: clamp(1.8rem, 6vw, 3.5rem);
  text-align: center;
}
.cta h2 { margin-bottom: 0.7rem; }
.cta p { color: var(--muted); max-width: 52ch; margin-inline: auto; margin-bottom: 1.8rem; }
.cta .btn-row { justify-content: center; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  margin-top: clamp(3rem, 8vw, 6rem);
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 46rem) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; } }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__blurb { color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.site-footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ------------------------------------------------------------------- misc */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .bars, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------- hero side panel */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr); align-items: center; }
}

.hero__panel {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__panel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.mini-table { list-style: none; margin: 0; padding: 0.25rem 0 0; counter-reset: none; }
.mini-table li {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.52rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.mini-table li:last-child { border-bottom: 0; }
.mini-table__pos { font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); }
.mini-table li:first-child .mini-table__pos { color: var(--accent); }
.mini-table__team {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-table__played { font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); }
.mini-table__pts { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; min-width: 1.6rem; text-align: right; }

.hero__panel-link {
  display: block;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
