@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --border: #E1E5EA;
  --text: #0B1220;
  --muted: #4B5565;
  --brand: #D92D20;
  --on-brand: #FFFFFF;
  --link: #1D4ED8;
  --good: #1D4ED8;
  --good-bg: #E8EEFC;
  --focus: #1D4ED8;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 8px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1117;
    --surface: #151A23;
    --border: #263041;
    --text: #E6EAF2;
    --muted: #9AA6B8;
    --brand: #D92D20;
    --on-brand: #FFFFFF;
    --link: #7AA2FF;
    --good: #7AA2FF;
    --good-bg: #1B2742;
    --focus: #7AA2FF;
  }
}

:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1117;
  --surface: #151A23;
  --border: #263041;
  --text: #E6EAF2;
  --muted: #9AA6B8;
  --brand: #D92D20;
  --on-brand: #FFFFFF;
  --link: #7AA2FF;
  --good: #7AA2FF;
  --good-bg: #1B2742;
  --focus: #7AA2FF;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
img { height: auto; }
.tabular, .stat-value, .data-table td, .data-table th, .pick-side { font-variant-numeric: tabular-nums; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

a, button, [tabindex]:not([tabindex="-1"]), input, select, textarea, summary {
  transition: color 120ms, background-color 120ms, border-color 120ms;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px var(--gutter) 64px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  min-height: 44px;
  background: var(--bg);
  color: var(--link);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 32px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--link); background: var(--surface); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--link); box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }

.theme-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); border-color: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--surface); }

.stat-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}
.stat { padding: 20px 24px; background: var(--surface); }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 0.875rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-head h2, .section-head h3 { margin: 0; }
.section-head p, .section-head .meta { margin: 0; color: var(--muted); font-size: 0.875rem; }

.pick-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--border); }
.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.pick-matchup { font-weight: 600; overflow-wrap: anywhere; }
.pick-date { display: block; margin-top: 2px; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.card-note { margin: 0 0 8px; color: var(--muted); font-size: 0.875rem; }
.pick-side { color: var(--text); overflow-wrap: anywhere; }
.pick-row .reasoning, .pick-row p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }

.badge-high, .badge-medium {
  display: inline-block;
  justify-self: end;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-high { background: var(--good-bg); color: var(--good); border: 1px solid var(--good); }
.badge-medium { background: transparent; color: var(--muted); border: 1px solid var(--border); }

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card > :last-child { margin-bottom: 0; }

.pick-empty { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }

.section { margin: 0 0 56px; }
.section > .section-head:first-child { margin-top: 0; }

.hero { display: flex; flex-direction: column; gap: 40px; padding: 24px 0 56px; }
.hero-copy { min-width: 0; }
.hero-copy p:not(.pill) { max-width: 52ch; font-size: 1.125rem; color: var(--muted); }
.hero .stat-panel { margin: 0; grid-template-columns: 1fr; }
.hero .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hero .stat-value { order: 2; font-size: 1.75rem; }
.hero .stat-label { margin-top: 0; }
@media (min-width: 800px) {
  .hero { flex-direction: row; align-items: center; gap: 56px; padding: 48px 0 72px; }
  .hero-copy { flex: 1 1 55%; }
  .hero .stat-panel { flex: 1 1 40%; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1em; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 32px; }
.card-grid .card { display: flex; flex-direction: column; gap: 8px; }
.card-grid .card h3, .card-grid .card p { margin: 0; }
.card-grid .card a { margin-top: auto; padding-top: 8px; }
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .data-table th, .data-table td { padding: 10px 6px; font-size: 0.8125rem; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 10px; }
  .data-table td:last-child, .data-table th:last-child { padding-right: 10px; }
  .data-table td, .data-table tbody th { white-space: normal; }
  .data-table thead th { letter-spacing: 0; font-size: 0.75rem; }
}
.table-wrap + .table-wrap { margin-top: 16px; }
.section > h3 { margin: 28px 0 12px; }
.data-table caption { caption-side: top; padding: 12px 16px; text-align: left; font-weight: 600; border-bottom: 1px solid var(--border); }

.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data-table th { background: var(--surface); color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table .num { text-align: right; }

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; }
.disclaimer { max-width: 70ch; margin: 0 0 24px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.prose { max-width: 70ch; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin: 32px 0 8px; font-size: 1.25rem; }
.prose p { margin: 0 0 12px; }
.prose .meta { color: var(--muted); font-size: 0.875rem; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .container { padding-top: 32px; padding-bottom: 48px; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; margin-left: -12px; }
  .nav .theme-toggle { margin-left: 12px; }
  .btn { width: 100%; }
  .stat-panel { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 16px; }
  .stat-value { font-size: 1.5rem; order: 2; }
  .stat-label { margin-top: 0; }
  .pick-row { grid-template-columns: 1fr; gap: 6px; }
  .badge-high, .badge-medium { justify-self: start; }
  .section-head { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.lede { max-width: 70ch; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.day-list { margin: 8px 0 0; padding-left: 20px; white-space: normal; color: var(--muted); }
.data-table tbody th { background: transparent; color: var(--text); font-size: inherit; font-weight: 600; letter-spacing: normal; text-transform: none; }
.sport-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 16px; font-size: 0.9375rem; }
.sport-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.sport-nav a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

.card > a { display: inline-flex; align-items: center; min-height: 44px; }
