:root {
  --bg: #f6f4ef;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #e2ddd3;
  --link: #163e72;
  --paper: #fcfbf8;
  --measure: 40rem;
  --wide: 52rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
}

.skip:focus { top: 0.5rem; }

.site-header,
main,
.site-footer {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-family: Newsreader, Georgia, "Iowan Old Style", serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

nav a[aria-current="page"] { border-bottom-color: var(--ink); }

main { padding: 2.5rem 0 4rem; }

.hero h1,
.prose h1,
h2, h3 {
  font-family: Newsreader, Georgia, "Iowan Old Style", serif;
  font-weight: 480;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1,
.prose h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2.7rem, 9vw, 4.75rem);
  max-width: 11ch;
}

h2 {
  margin: 3rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h3 { margin: 0 0 0.8rem; font-size: 1.45rem; }

h4 {
  margin: 0 0 0.35rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede, .range {
  max-width: var(--measure);
  font-size: 1.2rem;
  line-height: 1.45;
}

.lede { margin-top: 0; }

a { color: var(--link); }

a:hover { text-decoration-thickness: 2px; }

.week { margin-top: 2.5rem; }

.action {
  max-width: var(--measure);
  margin: 1.5rem 0 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.action h3 { font-size: 1.35rem; }

.action ul, .guide-index, .link-list { padding: 0; list-style: none; }

.action li + li { margin-top: 0.8rem; }

.day { margin: 2rem 0 2.5rem; }

.event {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.when {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.type {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.where, .who, .summary, .event-actions { margin: 0.35rem 0; }

.summary { max-width: var(--measure); }

.event-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }

.event-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.filters {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0.5rem;
}

.filters label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
}

select, input, textarea, button {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cfc8bb;
  border-radius: 2px;
}

select, input, textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
}

textarea { min-height: 8rem; }

button, .text-button {
  min-height: 3rem;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  cursor: pointer;
}

.text-button { color: var(--link); }

.subscribe span, .empty, .who, .where { color: var(--muted); }

.guide-index li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.guide-index a {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.55rem;
  text-decoration: none;
  color: var(--ink);
}

.guide-index p, .link-list { margin: 0.3rem 0 0; }

.link-list li { margin: 0.45rem 0; }

.prose { max-width: var(--measure); }

.prose h1 { max-width: 16ch; }

.more { margin-top: 1.5rem; }

.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.disclaimer {
  color: var(--ink);
  max-width: var(--measure);
}

.admin-list article {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.admin-list h3 { font-size: 1.25rem; }

.stack { display: grid; gap: 0.8rem; max-width: 36rem; }

.check { display: flex; gap: 0.6rem; align-items: center; }

.check input { width: auto; min-height: 1.25rem; }

.hidden-flag { color: #8a3b12; }

.log {
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  background: var(--paper);
  padding: 0.8rem;
  overflow-x: auto;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

@media (min-width: 800px) {
  .site-header, main, .site-footer {
    width: min(var(--wide), calc(100% - 6rem));
  }

  main { padding-top: 4rem; }

  .filters {
    grid-template-columns: 1fr 1fr auto auto;
    align-items: end;
  }

  .event {
    display: grid;
    grid-template-columns: 13rem 1fr;
    column-gap: 2rem;
  }

  .when { margin: 0.3rem 0 0; }
}
