/* Self-hosted (latin subset) — generated from Google Fonts */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/mulish-400-800.woff2) format('woff2');
  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;
}

/* Styled after the printed CalendarLabs sheet: dark green month bar, sage weekday row,
   gray weekends, bold game lines. Wide screens get the month grid; phones get a list. */
:root {
  --green: #0d3b18;
  --sage: #a9c58e;
  --ink: #1d1d1b;
  --muted: #55554f;
  --line: #4d4d4a;
  --weekend: #ececea;
  --out: #b9b9b4;
  --hl: #fff200;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f6f6f3; color: var(--ink); font: 15px/1.35 "Mulish", "Century Gothic", system-ui, sans-serif; }

.top { max-width: 1200px; margin: 0 auto; padding: 20px 16px 8px; }
.back { color: var(--green); font-weight: 700; text-decoration: none; }
h1 { margin: 8px 0 10px; font-size: clamp(24px, 4.5vw, 36px); font-weight: 800; }
h1 span { color: var(--muted); font-weight: 600; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { padding: 6px 12px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.key { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

main { max-width: 1200px; margin: 0 auto; padding: 8px 16px 48px; }
.month { margin: 22px 0 34px; scroll-margin-top: 12px; background: #fff; border: 2px solid var(--line); }
.month h2 {
  margin: 0; padding: 10px; text-align: center;
  background: var(--green); color: #fff;
  font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.dow, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow div { background: var(--sage); text-align: center; font-weight: 800; font-size: 17px; padding: 5px 2px; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.dow div:last-child { border-right: 0; }

.day { min-height: 118px; padding: 6px 8px 8px; border-right: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.day:nth-child(7n) { border-right: 0; }
.day.weekend { background: var(--weekend); }
.day .num { display: block; font-size: 22px; font-weight: 800; line-height: 1.05; margin-bottom: 4px; }
.day.weekend .num { font-weight: 400; }
.day.out .num { color: var(--out); }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { font-size: 12.5px; }
.day li.g, .day li.b { font-size: 16px; font-weight: 800; line-height: 1.15; margin-bottom: 3px; }
.day li.h { font-size: 15px; color: var(--muted); margin-top: 10px; }
.day li.x { display: inline-block; background: var(--hl); font-weight: 800; font-size: 12px; padding: 0 3px; margin: 2px 0; }
.day.today { outline: 3px solid #e0661b; outline-offset: -3px; }
.day.today .num::after { content: " · today"; font-size: 12px; font-weight: 700; color: #e0661b; }

/* Phones: a readable day-by-day list instead of a 7-column grid. */
@media (max-width: 720px) {
  .dow { display: none; }
  .grid { display: block; }
  .day { display: grid; grid-template-columns: 64px 1fr; gap: 8px; min-height: 0; border-right: 0; padding: 10px 12px; }
  .day.out, .day.empty { display: none; }
  .day .num { font-size: 24px; text-align: center; }
  .day::before { content: attr(data-dow); grid-column: 1; grid-row: 1; align-self: end; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding-top: 26px; }
  .day .num { grid-column: 1; grid-row: 1; align-self: start; }
  .day ul { grid-column: 2; grid-row: 1; }
  .day li { font-size: 14px; }
  .day li.h { margin-top: 0; }
}

@media print {
  @page { size: landscape; margin: 0.4in; }
  body { background: #fff; }
  .top nav, .back { display: none; }
  .month { break-after: page; margin: 0; }
}
