:root {
  --paper: #fbfaf7;
  --ink: #1c1b19;
  --muted: #6b675f;
  --rule: #dedad2;
  --accent: #2f5d50;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --ink: #ebe7df;
    --muted: #a09a8e;
    --rule: #34322d;
    --accent: #8fbfae;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 0 1rem 3rem;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, .name { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-weight: 600; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 2rem 0 0.75rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.5rem; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { text-decoration: underline; }

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.name { font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav a { font-size: 0.95rem; }
header nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1rem; }
header nav a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

.lead { font-size: 1.05rem; color: var(--muted); }
.section { margin: 2rem 0 -1.5rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.section a { text-decoration: none; }

.day h2 { padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }

.events { list-style: none; margin: 0; padding: 0; }
.events li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.events li:target { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.notable .kind { font-weight: 600; }
.outcome { color: var(--muted); }
.outcome::before { content: "· "; }
.where { color: var(--muted); font-size: 0.92rem; }

.rounds, .data { color: var(--muted); font-size: 0.92rem; }

.days { display: flex; justify-content: space-between; margin-top: 2rem; }

.all p { margin: 0.4rem 0; }
.all a { display: inline-block; min-width: 1.6rem; }
.month { display: inline-block; min-width: 9.5rem; color: var(--muted); }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.88rem; }

/* Meetings */
.what { margin: 0.1rem 0; }
.unchecked { font-style: italic; }
.notice {
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.92rem;
}
.items li { grid-template-columns: 2.2rem 1fr; }
.number { color: var(--muted); font-variant-numeric: tabular-nums; }
.items .kind { font-weight: 400; }
.notable .what { font-weight: 600; }

.meeting { margin: 0.6rem 0 0.2rem; }
.meeting + .data { margin: 0.2rem 0 0.6rem; }

.transcript p { margin: 0.6rem 0; }
.transcript p > a, .transcript p > span {
  margin-right: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Stories */
.stories article { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.stories h2 { padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.stories h3 { margin: 0; font: 600 1.15rem/1.3 "Iowan Old Style", Palatino, Georgia, serif; }
.stories h3 a { color: inherit; text-decoration: none; }
.stories h3 a:hover { text-decoration: underline; }
.stories p { margin: 0.25rem 0 0; }

.story { font-size: 1.05rem; line-height: 1.6; }
.story h2 { margin-top: 2.5rem; }
.story li { margin: 0.35rem 0; }
.story blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.story code { font-size: 0.9em; }

.table { margin: 1.25rem 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.4rem 1rem 0.4rem 0; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
th { font-weight: 600; vertical-align: bottom; }
th:last-child, td:last-child { padding-right: 0; }
.num { text-align: right; }
