:root {
  color-scheme: light;
  --ink: #122738;
  --muted: #586774;
  --line: #dcded9;
  --paper: #f7f6f1;
  --card: #fffefa;
  --navy: #102b3e;
  --gold: #ebbc58;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2472a5; outline-offset: 4px; }
.top { max-width: 1040px; margin: auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 900; letter-spacing: -1.5px; text-decoration: none; min-height: 44px; }
.wordmark span { max-width: 90px; font-size: 10px; line-height: 1.4; letter-spacing: 1.6px; }
.archive-link { font-size: 12px; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 44px; }
main { max-width: 1040px; margin: auto; padding: 16px 24px 48px; }
.dates { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.dates a { min-height: 44px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.dates a:nth-child(2) { color: var(--muted); }
.day-hero { padding: 24px 0 20px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; margin: 0 0 8px; }
h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -3px; line-height: 1.05; margin: 0 0 16px; font-weight: 800; }
.hero-dot { color: #b57e1b; }
.lede { color: var(--muted); max-width: 560px; margin: 0 0 20px; }
.archive-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 12px; color: var(--muted); }
.archive-meta b { color: var(--ink); }
.archive-meta span:last-child { margin-left: auto; font-size: 10px; letter-spacing: 1.5px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px; }
.category-nav a { text-decoration: none; font-size: 12px; min-height: 44px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 24px; padding: 8px 16px; background: var(--card); }
.category-nav a:hover { background: var(--navy); color: white; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 0 0 24px; overflow: hidden; scroll-margin-top: 16px; }
.section-heading { padding: 20px 24px 16px; background: var(--navy); color: white; }
.section-kicker { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.section-brand { color: white; letter-spacing: -.5px; font-size: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.7px; margin: 8px 0; }
.note { color: #c3cfd5; font-size: 12px; line-height: 1.5; margin: 0; max-width: 680px; }
.share-card { flex-shrink: 0; padding: 8px 12px; border: 1px solid #6e8493; background: transparent; border-radius: 8px; color: white; min-height: 44px; font-size: 12px; }
.share-card:hover { background: #28475a; }
.scroll { overflow-x: auto; padding: 8px 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td.season { font-variant-numeric: tabular-nums; color: var(--muted); width: 64px; font-weight: 700; }
td.team { width: 28%; }
.num { text-align: right; }
.detail { color: var(--muted); font-size: 12px; }
.rank { color: #846014; white-space: nowrap; font-size: .8em; }
a.glink { text-decoration: none; display: flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 44px; }
a.glink:hover .team-name { text-decoration: underline; }
.team-name { overflow-wrap: anywhere; }
.score { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.winner .team-name { font-weight: 700; }
.loser { color: var(--muted); }
.section-footer { display: flex; justify-content: space-between; gap: 8px; padding: 12px 24px; background: #efefe8; color: var(--muted); font-size: 10px; letter-spacing: .5px; }
.section-footer span:last-child { color: var(--ink); font-weight: 700; letter-spacing: 0; }
.today { margin: 0 0 24px; }
.today a, .button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.today a, .primary { background: var(--navy); color: white; }
.secondary { background: var(--card); border-color: var(--line); color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; }
.facts li { flex: 1; border-top: 2px solid var(--line); padding: 12px 0; min-width: 100px; }
.facts b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.facts span { display: block; color: var(--muted); font-size: 12px; max-width: 180px; }
.monthblock { margin-bottom: 32px; }
.monthblock h2 { font-size: 20px; margin: 0 0 12px; }
.daygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.daygrid a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; }
.daygrid a:hover { border-color: var(--navy); }
.daygrid b { display: block; font-size: 14px; }
.daygrid small { color: var(--muted); font-size: 12px; }
.foot { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; }
dialog { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #071724c9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-header h2 { font-size: 18px; letter-spacing: -.4px; margin: 0; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); flex-shrink: 0; }
.icon-button:disabled { opacity: .35; cursor: default; }
.dialog-hint { font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
#share-preview { display: block; width: 100%; height: auto; background: var(--navy); border-radius: 4px; }
.share-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 0; font-size: 12px; color: var(--muted); }
.share-actions { display: flex; gap: 8px; }
.share-actions > * { flex: 1; }
#share-status { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
#share-status:empty { display: none; }
@media (max-width: 600px) {
  .top { padding: 8px 16px; }
  .wordmark { font-size: 24px; }
  .wordmark span { font-size: 9px; max-width: 76px; }
  .archive-link { font-size: 11px; gap: 8px; }
  main { padding: 8px 12px 32px; }
  .dates { font-size: 12px; padding: 0 4px; }
  .dates a { gap: 4px; }
  .day-hero { padding: 20px 4px; }
  h1 { font-size: clamp(36px, 11vw, 52px); letter-spacing: -2px; margin-bottom: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
  .lede { font-size: 14px; max-width: 300px; margin-bottom: 16px; }
  .archive-meta { gap: 8px 12px; font-size: 11px; }
  .archive-meta span:last-child { font-size: 8px; letter-spacing: 1px; }
  .category-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
  .category-nav::-webkit-scrollbar { display: none; }
  .category-nav a { flex-shrink: 0; padding: 8px 12px; }
  .card { border-radius: 12px; margin-bottom: 20px; }
  .section-heading { padding: 16px; }
  .section-kicker { font-size: 9px; letter-spacing: 1px; }
  .section-title { gap: 8px; }
  .card h2 { font-size: 21px; letter-spacing: -.6px; }
  .share-card { font-size: 11px; padding: 8px; }
  .note { font-size: 11px; }
  .scroll { overflow: visible; padding: 0 16px; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "season detail" "winner winner" "loser loser"; padding: 12px 0; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  td { padding: 0; border: 0; }
  td.season { grid-area: season; width: auto; font-size: 11px; line-height: 20px; color: var(--ink); }
  td.season::after { content: " · FINAL"; font-size: 9px; font-weight: 400; color: var(--muted); }
  td.detail { grid-area: detail; text-align: right; font-size: 10px; line-height: 20px; padding-left: 12px; overflow-wrap: anywhere; }
  td.team { width: auto; min-width: 0; }
  td.winner { grid-area: winner; }
  td.loser { grid-area: loser; }
  a.glink { min-height: 44px; gap: 16px; font-size: 15px; line-height: 1.3; }
  .score { font-size: 25px; }
  .section-footer { padding: 12px 16px; font-size: 8px; }
  .section-footer span:last-child { font-size: 10px; }
  .daygrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daygrid a { padding: 12px; }
  .daygrid small { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .top, .dates, .category-nav, .share-card, dialog { display: none !important; } .card { break-inside: avoid; } }
