/* ---- Tweak these first ---- */
:root {
  --bg: #eef0ec;        /* page background */
  --ink: #1d2a2e;       /* main text */
  --muted: #5b6a6e;     /* dates, sources */
  --accent: #1f4e79;    /* links, rules */
  --panel: #e1e5df;     /* subtle dividers */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 42rem;     /* text column width */
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#161d20; --ink:#e6eae6; --muted:#9aa8ab; --accent:#8db7e0; --panel:#2a363b; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }

/* header */
.site-header { padding: 1.25rem 0; border-bottom: 2px solid var(--accent); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.site-name { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
nav a { font-family: var(--sans); font-size: 1rem; margin-left: 1.25rem; padding: .35rem 0; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid transparent; }
nav a:hover { border-bottom-color: var(--muted); }
nav a[aria-current="page"] { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

/* hero */
.hero { padding: 1.5rem 0 .5rem; }
.hero h1 { font-size: clamp(1.3rem, 3.2vw, 1.5rem); line-height: 1.2; margin: 0 0 .4rem; font-weight: 700; }
.tagline { font-size: 1rem; max-width: var(--measure); margin: 0 0 1rem; color: var(--muted); }

section { padding: 1rem 0; }
h2 { font-family: var(--sans); font-size: 1.1rem; margin: 0 0 1rem; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }

/* articles: search, filters, list */
.search { display: block; width: 100%; max-width: var(--measure); font-family: var(--sans); font-size: 1rem;
  padding: .6rem .75rem; margin-top: .25rem; border: 2px solid var(--accent); background: var(--bg); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 .5rem; }
.filters button { font-family: var(--sans); font-size: .9rem; padding: .55rem .9rem; border: 1px solid var(--accent);
  background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.filters button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#status { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }

.year { color: var(--muted); margin: 1.5rem 0 .5rem; }
.list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.list li { padding: .6rem 0; border-top: 1px solid var(--panel); }
.meta { display: block; font-family: var(--sans); font-size: .85rem; color: var(--muted); }

footer { padding: 2.5rem 0; margin-top: 2rem; border-top: 1px solid var(--panel); font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* home page: photos, video, link row */
.clear { clear: both; }
.photo { float: right; width: 15rem; max-width: 40%; margin: .25rem 0 1rem 1.5rem; }
.photo img { width: 100%; height: auto; display: block; }
.video { display: block; width: 100%; max-width: var(--measure); aspect-ratio: 16 / 9; border: 0; margin-top: 1rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-family: var(--sans); }
@media (max-width: 36rem) { .photo { float: none; max-width: 100%; width: 100%; margin: 0 0 1rem; } }

/* featured cards */
.featured { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 1rem 0; }
.featured article { min-width: 0; }
.featured img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; margin-bottom: .6rem; }
.featured h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .2rem; }
.featured p { font-size: .95rem; line-height: 1.5; margin: .4rem 0 0; }

/* shows + news */
.events { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.events li { padding: .75rem 0; border-top: 1px solid var(--panel); }
.events h3 { font-size: 1.05rem; line-height: 1.3; margin: .1rem 0 .2rem; }
.events p { font-size: .95rem; line-height: 1.5; margin: .35rem 0 0; }
.list a, .events a { overflow-wrap: anywhere; }

/* collapsible bio */
.about summary { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; cursor: pointer; padding: .6rem 0; }
.about::after { content: ""; display: block; clear: both; }

/* page headings: hidden visually (the nav shows where you are), still read by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tagline { margin-top: 1.25rem; }

.tagline p { margin: 0; }
