/* League of the Goose — almanac look. Single committed light theme. */
:root {
  --bg: #F5F7F4;
  --surface: #FFFFFF;
  --ink: #1D2A21;
  --ink-soft: #56655C;
  --ink-faint: #8A978F;
  --line: #DCE3DD;
  --accent: #2E7D46;
  --accent-deep: #1F5C33;
  --accent-soft: #E4EFE7;
  --gold: #A97E24;
  --gold-soft: #F5ECD8;
  --loss: #A64B35;
  --loss-soft: #F6EAE5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- header / nav --- */
header.site {
  background: var(--accent-deep);
  color: #F2F7F3;
  padding: .9rem 1rem .8rem;
}
header.site .inner { max-width: 1020px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.brand .goose { font-size: 1.5rem; }
.brand h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem; margin: 0; letter-spacing: .01em; color: #FFFFFF;
}
.brand .est { font-size: .78rem; color: #BFD5C4; letter-spacing: .1em; text-transform: uppercase; }
nav.site { max-width: 1020px; margin: .6rem auto 0; display: flex; flex-wrap: wrap; gap: .1rem .2rem; }
nav.site a {
  color: #DCEADF; text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: .35rem .6rem; border-radius: 5px;
}
nav.site a:hover { background: rgba(255,255,255,.12); color: #fff; }
nav.site a.active { background: rgba(255,255,255,.18); color: #fff; }

main { max-width: 1020px; margin: 0 auto; padding: 1.6rem 1rem 4rem; }

/* --- typography --- */
h2 {
  font-family: Georgia, serif; font-size: 1.45rem; margin: 2.2rem 0 .7rem;
  text-wrap: balance;
}
h2:first-child { margin-top: 0; }
h3 { font-size: 1.02rem; margin: 1.6rem 0 .5rem; }
p { max-width: 68ch; }
.lede { color: var(--ink-soft); max-width: 68ch; margin-top: .2rem; }
.eyebrow {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700;
}
.muted { color: var(--ink-soft); font-size: .88rem; }
.small { font-size: .85rem; }

/* --- cards & layout --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin: 1rem 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem 1rem;
}
.card .big {
  font-family: Georgia, serif; font-size: 1.9rem; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.card .label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; } }

/* --- tables --- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin: .8rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: .89rem; }
th, td { padding: .45rem .65rem; text-align: left; white-space: nowrap; }
thead th {
  font-size: .71rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); border-bottom: 2px solid var(--line);
  position: sticky; top: 0; background: var(--surface);
}
tbody td { border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--accent-soft); }
td.r, th.r { text-align: right; }
td.mgr { font-weight: 650; }
tr.champ-row td { background: var(--gold-soft); }
tr.champ-row:hover td { background: var(--gold-soft); }

/* --- pills & marks --- */
.pill {
  display: inline-block; padding: .05rem .5rem; border-radius: 99px;
  font-size: .74rem; font-weight: 700; vertical-align: middle;
}
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.green { background: var(--accent-soft); color: var(--accent-deep); }
.pill.red { background: var(--loss-soft); color: var(--loss); }
.trophy { color: var(--gold); }

/* --- champions wall --- */
.champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; margin: 1rem 0; }
.champ {
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: .5rem .55rem; text-align: center; text-decoration: none; color: var(--ink);
  display: block;
}
.champ:hover { border-color: var(--accent); }
.champ .yr { font-size: .72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.champ .who { font-weight: 700; font-size: 1rem; }
.champ .team { font-size: .68rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- h2h grid --- */
.h2h td.win { background: var(--accent-soft); }
.h2h td.loss { background: var(--loss-soft); }
.h2h td.self { background: var(--bg); color: var(--ink-faint); }
.h2h td { font-size: .8rem; }

/* --- charts --- */
figure.chart { margin: 1rem 0 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem .5rem; }
figure.chart figcaption { font-size: .82rem; color: var(--ink-soft); padding: .4rem 0 .4rem; }
figure.chart svg { width: 100%; height: auto; display: block; }
.chart-title { font-weight: 700; font-size: .95rem; margin-bottom: .1rem; }

/* --- details / accordions --- */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; margin: .6rem 0; }
details summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: .5rem; }

/* --- scout cards --- */
.scout { border-left: 4px solid var(--accent); }
.scout h3 { margin: 0 0 .3rem; }
.scout ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.scout li { margin-bottom: .25rem; font-size: .9rem; }

/* --- weekly box scores --- */
details.week { margin: .45rem 0; }
details.week summary { font-weight: 550; font-size: .9rem; }
.boxes { display: grid; gap: 1rem; margin-top: .6rem; }
.game-box { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.game-box:last-child { border-bottom: none; }
@media (max-width: 560px) { .game-box { grid-template-columns: 1fr; } }
table.box { font-size: .8rem; }
table.box thead th { font-size: .78rem; text-transform: none; letter-spacing: 0; color: var(--ink); position: static; }
table.box td { padding: .18rem .45rem; border-bottom: none; }
table.box td.slot { color: var(--ink-soft); font-size: .7rem; text-transform: uppercase; width: 3.2em; }
table.box tr.bench td { color: var(--ink-faint); }
table.box tr.bench:first-of-type td { border-top: 1px dashed var(--line); }

/* --- footer --- */
footer.site {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 1.2rem 1rem 2rem; text-align: center; color: var(--ink-soft); font-size: .82rem;
}

/* --- download list --- */
ul.downloads { list-style: none; padding: 0; }
ul.downloads li { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--accent-soft); padding: .08em .3em; border-radius: 4px; }
