/* ============================================
   CAMPUS LEAGUE — Apple-quality monochromatic
   Type: Inter Tight + JetBrains Mono
   Palette: paper, ink, signature orange
   ============================================ */

:root {
  --paper: #ffeae2;
  --paper-2: #f7ddd2;
  --paper-3: #efd0c2;
  --ink: #0a0a0a;
  --ink-2: #2a2624;
  --muted: #8a6b62;
  --rule: #e6c8b8;
  --rule-2: #d8b6a3;
  --signature: #b84135;
  --signature-2: #9a3128;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; max-width: 100%; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Layout ---------- */

.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-thick { height: 2px; background: var(--ink); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background-color: color-mix(in oklab, var(--paper) 88%, transparent);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.brand-mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.brand-mark svg { width: 14px; height: 14px; }

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.topbar-meta .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signature);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Primary nav (hand-drawn underline) ---------- */

nav.primary { padding: 28px 0 22px; }

nav.primary ul {
  padding: 0 0 18px;
  border-bottom: 5px solid var(--signature);
  border-shape: shape(from 0 calc(100% - 10px),curve to 2.88% calc(100% - 10.5px) with 1.92% calc(100% - 18px),curve to 4.81% calc(100% - 5.5px) with 3.85% calc(100% - 3px),curve to 6.73% calc(100% - 8.5px) with 5.77% calc(100% - 8px),curve to 8.65% calc(100% - 9.5px) with 7.69% calc(100% - 9px),curve to 10.58% calc(100% - 8.5px) with 9.62% calc(100% - 10px),curve to 12.5% calc(100% - 13.5px) with 11.54% calc(100% - 7px),curve to 14.42% calc(100% - 17.5px) with 13.46% calc(100% - 20px),curve to 16.35% calc(100% - 12.5px) with 15.38% calc(100% - 15px),curve to 18.27% calc(100% - 13px) with 17.31% calc(100% - 10px),curve to 20.19% calc(100% - 12.5px) with 19.23% calc(100% - 16px),curve to 22.12% calc(100% - 11.5px) with 21.15% calc(100% - 9px),curve to 24.04% calc(100% - 11.5px) with 23.08% calc(100% - 14px),curve to 25.96% calc(100% - 14px) with 25% calc(100% - 9px),curve to 27.88% calc(100% - 13.5px) with 26.92% calc(100% - 19px),curve to 29.81% calc(100% - 6.5px) with 28.85% calc(100% - 8px),curve to 31.73% calc(100% - 7.5px) with 30.77% calc(100% - 5px),curve to 33.65% calc(100% - 13.5px) with 32.69% calc(100% - 10px),curve to 35.58% calc(100% - 17.5px) with 34.62% calc(100% - 17px),curve to 37.5% calc(100% - 10px) with 36.54% calc(100% - 18px),curve to 39.42% calc(100% - 7px) with 38.46% calc(100% - 2px),curve to 41.35% calc(100% - 8.5px) with 40.38% calc(100% - 12px),curve to 43.27% calc(100% - 4.5px) with 42.31% calc(100% - 5px),curve to 45.19% calc(100% - 7px) with 44.23% calc(100% - 4px),curve to 47.12% calc(100% - 7px) with 46.15% calc(100% - 10px),curve to 49.04% calc(100% - 9.5px) with 48.08% calc(100% - 4px),curve to 50.96% calc(100% - 17px) with 50% calc(100% - 15px),curve to 52.88% calc(100% - 13px) with 51.92% calc(100% - 19px),curve to 54.81% calc(100% - 8px) with 53.85% calc(100% - 7px),curve to 56.73% calc(100% - 11.5px) with 55.77% calc(100% - 9px),curve to 58.65% calc(100% - 14.5px) with 57.69% calc(100% - 14px),curve to 60.58% calc(100% - 15px) with 59.62% calc(100% - 15px),curve to 62.5% calc(100% - 13.5px) with 61.54% calc(100% - 15px),curve to 64.42% calc(100% - 7px) with 63.46% calc(100% - 12px),curve to 66.35% calc(100% - 5px) with 65.38% calc(100% - 2px),curve to 68.27% calc(100% - 13.5px) with 67.31% calc(100% - 8px),curve to 70.19% calc(100% - 12.5px) with 69.23% calc(100% - 19px),curve to 72.12% calc(100% - 8px) with 71.15% calc(100% - 6px),curve to 74.04% calc(100% - 14px) with 73.08% calc(100% - 10px),curve to 75.96% calc(100% - 15.5px) with 75% calc(100% - 18px),curve to 77.88% calc(100% - 15px) with 76.92% calc(100% - 13px),curve to 79.81% calc(100% - 11.5px) with 78.85% calc(100% - 17px),curve to 81.73% calc(100% - 7.5px) with 80.77% calc(100% - 6px),curve to 83.65% calc(100% - 8px) with 82.69% calc(100% - 9px),curve to 85.58% calc(100% - 4px) with 84.62% calc(100% - 7px),curve to 87.5% calc(100% - 6.5px) with 86.54% calc(100% - 1px),curve to 89.42% calc(100% - 8px) with 88.46% calc(100% - 12px),curve to 91.35% calc(100% - 12px) with 90.38% calc(100% - 4px),curve to 93.27% calc(100% - 17.5px) with 92.31% calc(100% - 20px),curve to 95.19% calc(100% - 17.5px) with 94.23% calc(100% - 15px),curve to 97.12% calc(100% - 11.5px) with 96.15% calc(100% - 20px),curve to 100% calc(100% - 10px) with 98.08% calc(100% - 3px));
  clip-path: inset(0);
  margin: 0;
  list-style: none;
  display: flex;
  gap: 0.4rem;
  font-size: 1.6rem;
  position: relative;
}

nav.primary ul:after {
  content: "";
  position: absolute;
  position-anchor: --a;
  inset: anchor(outside) anchor(inside) 0;
  /* must match background so the unselected segments hide */
  border-image: conic-gradient(var(--paper)) 1/0 100vw/0 100vw;
  transition: 0.2s;
}

nav.primary ul li a:is(:hover, [aria-current], :focus-visible) {
  anchor-name: --a;
}

nav.primary ul:has(a:is(:hover, :focus-visible)) a:not(:hover, :focus-visible) {
  anchor-name: none;
}

@supports not (border-shape: shape(from 0 0, line to 0 0)) {
  nav.primary ul { padding: 0 0 8px; }
}

nav.primary ul li a {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  padding-inline: 0.35em;
  display: block;
  outline: none;
  outline-offset: -2px;
  transition: opacity 0.18s ease;
}

nav.primary ul li a:hover { opacity: 0.7; }

nav.primary-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--signature); border-color: var(--signature); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-eyebrow .bar { width: 32px; height: 1px; background: var(--ink); }

.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  text-wrap: balance;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }

.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}

.hero-meta-item .num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-meta-item .num sup {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  vertical-align: super;
  margin-left: 4px;
  color: var(--muted);
}
.hero-meta-item .lbl {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marquee ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper);
}

.ticker-track {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

.ticker-track span { display: inline-flex; align-items: center; gap: 14px; }
.ticker-track .sep { width: 6px; height: 6px; background: var(--signature); border-radius: 50%; flex-shrink: 0; }
.ticker-track .score { color: var(--ink); font-weight: 600; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section heading ---------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 12px 0 0;
  text-wrap: balance;
}

.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-head .right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head .right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 4px;
  color: var(--ink);
  transition: border-color 0.18s ease;
}
.section-head .right a:hover { border-color: var(--ink); }
.section-head .right svg { width: 12px; height: 12px; }

/* ---------- Sport tabs ---------- */

.sport-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  background: var(--paper-2);
}

.sport-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.sport-tab svg { width: 14px; height: 14px; }
.sport-tab:hover { color: var(--ink); }
.sport-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Schedule ---------- */

.schedule {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.match {
  display: grid;
  grid-template-columns: 88px 1.4fr auto 1.4fr 120px 120px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.18s ease, padding 0.18s ease;
  position: relative;
}
.match:last-child { border-bottom: 0; }
.match:hover { background: var(--paper-2); padding-left: 16px; padding-right: 16px; }

.match-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.match-date strong {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 2px;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 14px;
}
.match-team.away { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }

.team-crest {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--paper);
}

.team-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.team-name small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.match-vs {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.match-venue {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-venue svg { width: 12px; height: 12px; flex-shrink: 0; }

.match-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: all 0.18s ease;
  justify-content: center;
}
.match-cta:hover { background: var(--ink); color: var(--paper); }
.match-cta svg { width: 11px; height: 11px; }

.match.is-live .match-date strong::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--signature);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- Standings ---------- */

.standings-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
}
.standings-table thead th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 8px;
  text-align: right;
  border-bottom: 1px solid var(--ink);
}
.standings-table thead th:first-child,
.standings-table thead th:nth-child(2) { text-align: left; }

.standings-table tbody td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.standings-table tbody td:first-child {
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  width: 32px;
}
.standings-table tbody td:nth-child(2) {
  text-align: left;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.standings-table tbody tr { transition: background 0.18s ease; }
.standings-table tbody tr:hover { background: var(--paper-2); }

.standings-table .team-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.standings-table .pts {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.standings-table .form {
  display: inline-flex;
  gap: 3px;
  justify-content: flex-end;
}
.form-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rule-2);
}
.form-dot.w { background: var(--ink); }
.form-dot.l { background: transparent; border: 1px solid var(--rule-2); width: 5px; height: 5px; }
.form-dot.d { background: var(--muted); }

.leaders {
  border: 1px solid var(--rule);
  padding: 28px;
  background: var(--paper-2);
}

.leaders h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

.leader-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.leader-row:last-child { border-bottom: 0; padding-bottom: 0; }
.leader-row:first-child { padding-top: 0; }

.leader-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.leader-info .name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.leader-info .team {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.leader-stat {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.leader-stat sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: baseline;
  margin-left: 4px;
  font-weight: 500;
}

/* ---------- Featured story ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.feature-img {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}

.feature-img .placeholder {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in oklab, var(--ink) 4%, transparent) 14px 15px);
  display: grid;
  place-content: center;
  text-align: center;
}
.feature-img .placeholder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 6px 12px;
  border: 1px solid var(--rule);
}

.feature-img .stamp {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 999px;
}

.feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.feature-body .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signature);
  font-weight: 600;
}

.feature-body h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.feature-body h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.feature-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
}

.feature-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.feature-byline .author { color: var(--ink); font-weight: 600; }

/* ---------- Teams grid ---------- */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.team-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  transition: background 0.2s ease;
  min-height: 220px;
  position: relative;
  cursor: pointer;
}
.team-card:hover { background: var(--ink); color: var(--paper); }
.team-card:hover .team-card-crest { border-color: var(--paper); }
.team-card:hover .team-card-meta { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.team-card:hover .team-card-arrow svg { transform: translate(2px, -2px); }

.team-card-crest {
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease;
}

.team-card-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: auto;
}

.team-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.team-card-arrow {
  position: absolute;
  top: 24px; right: 24px;
}
.team-card-arrow svg {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}

/* ---------- Footer ---------- */

footer.site-foot {
  padding: 96px 0 36px;
  background: var(--ink);
  color: var(--paper);
}

footer.site-foot h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0 0 56px;
  text-wrap: balance;
}
footer.site-foot h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--signature);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
}

.foot-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 50%, transparent);
  margin: 0 0 18px;
}

.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 6px 0; font-size: 14px; }
.foot-grid li a { transition: color 0.18s ease; }
.foot-grid li a:hover { color: var(--signature); }

.signup {
  display: flex;
  border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  border-radius: 999px;
  padding: 4px;
  max-width: 360px;
}
.signup input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 16px;
}
.signup input::placeholder { color: color-mix(in oklab, var(--paper) 50%, transparent); }
.signup button {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.18s ease;
}
.signup button:hover { background: var(--signature); }

.foot-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 60%, transparent);
}

.foot-end .links { display: flex; gap: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .standings-grid, .feature-grid, .foot-grid { grid-template-columns: 1fr; gap: 40px; }
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .match {
    grid-template-columns: 72px 1fr 1fr;
    grid-template-areas:
      "date home away"
      "date venue cta";
    row-gap: 12px;
  }
  .match-date { grid-area: date; }
  .match-vs { display: none; }
  .match-venue { grid-area: venue; }
  .match-cta { grid-area: cta; }
  .section-head { grid-template-columns: 1fr; }
  nav.primary-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .nav-cta { align-self: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .teams-grid { grid-template-columns: 1fr; }
  nav.primary ul { font-size: 1.2rem; gap: 0.2rem; }
  .topbar-meta .hide-mobile { display: none; }
}
