
:root {
  color-scheme: light;

  /* Ozark palette. Cool and green: limestone bluff, creek water, hardwood
     canopy. No warm sand and no terracotta anywhere, which is what made the
     first attempt read as desert. */
  --limestone:  #eef1eb;   /* bluff limestone, faint green cast, the page */
  --chert:      #e2e8dd;   /* raised panels */
  --bone:       #f8faf6;
  --canopy:     #2c6b45;   /* hardwood canopy, the accent */
  --leaf:       #3a875a;   /* hover */
  --understory: #13241a;   /* deep shade, the ink */
  --slate:      #45574b;
  --lichen:     #5c6f62;   /* was #6d8074 at 3.7:1, below AA on 11-14px text */
  --shale:      #c7d2c4;   /* rules */
  --hickory:    #7d5615;   /* autumn, warnings; darkened from #9a6b1c (4.1:1) */

  --bg:        var(--limestone);
  --bg-sunk:   var(--chert);
  --ink:       var(--understory);
  --ink-muted: var(--slate);
  --ink-quiet: var(--lichen);
  --accent:    var(--canopy);
  --accent-hi: var(--leaf);
  --rule:      var(--shale);

  --display: "Zilla Slab", "Bitter", Georgia, "Times New Roman", serif;
  --serif:   "Literata", "Iowan Old Style", Georgia, serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --t-d1:   clamp(2.1rem, 6vw, 3.4rem);
  --t-d2:   clamp(1.35rem, 2.6vw, 1.9rem);
  --t-d3:   clamp(1.1rem, 1.6vw, 1.3rem);
  /* The old lede clamp was a no-op: its middle term only beat the floor above a
     1300px viewport, so the lede rendered at 16.96px against 16.8px body. */
  --t-lede: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  --t-body: 1.125rem;
  --t-small: 0.875rem;
  --t-kicker: 0.7rem;

  --gap-xs: 8px;  --gap-s: 16px;  --gap-m: 24px;
  --gap-l: 40px;  --gap-xl: 64px;

  /* One column width for everything. The masthead, the folio rule and the
     text all share a left edge; a wide masthead over a centred narrow column
     leaves the two unaligned and the page looks broken rather than airy. */
  /* Reading measure and page width are different jobs. One 720px column did
     both badly: ~80 characters per line for body text, and a homepage with no
     room for structure. 660px of text at 18px is ~68 characters. */
  --reading: 660px;
  --wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.6;
  font-optical-sizing: auto;
}

/* Keyboard users had only the UA default outline, and every link sets
   `color: inherit`, so focus was easy to lose entirely. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--bone);
  padding: var(--gap-xs) var(--gap-s); z-index: 10;
}
.skip:focus { left: var(--gap-s); top: var(--gap-s); }

.container { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gap-m); }
.container--reading { max-width: var(--reading); }

/* ---------- status strip ---------- */

/* The one place the palette has mass. Everything else was hairlines and
   micro-labels, so the page read as grey-on-off-white however green the tokens
   were. Bone on canopy measures 6.3:1. */
.status {
  background: var(--understory);
  color: var(--bone);
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: .07em;
}
.status__row {
  display: flex; flex-wrap: wrap; gap: var(--gap-xs) var(--gap-m);
  padding: var(--gap-xs) 0; align-items: center;
}
.status__item { display: flex; gap: var(--gap-xs); align-items: baseline; }
.status__label { opacity: .65; text-transform: uppercase; }
.status__alert { color: #f0c46a; font-weight: 600; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 2px; }
a:hover { color: var(--accent-hi); text-decoration-color: var(--accent-hi); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  padding-top: var(--gap-m);
}
.masthead__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gap-s); flex-wrap: wrap; padding-bottom: var(--gap-s);
}
.masthead__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-d1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.masthead__wordmark a { text-decoration: none; }
.masthead__tagline {
  font-size: var(--t-small);
  color: var(--ink-muted);
  margin: 0;
}

/* The rule under the masthead, doubled the way a newspaper folio is, with an
   Ozark ridgeline riding on it. Inline SVG in a data URI so the page stays a
   single file with no image request. */
.masthead::after {
  content: ""; display: block; height: 14px;
  border-top: 1px solid var(--ink);
  margin-top: 2px;
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 240px 14px;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='14' fill='none'><path d='M0 13 L18 7 L31 10 L48 3 L63 9 L79 5 L96 11 L114 6 L128 9 L145 2 L160 8 L176 5 L191 10 L208 6 L222 9 L240 4' stroke='%236d8074' stroke-width='1.2' stroke-linejoin='round'/></svg>");
}

.folio {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--gap-s); flex-wrap: wrap;
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: var(--gap-xs) 0;
  border-bottom: 1px solid var(--rule);
}

/* ---------- lead ---------- */

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink);
  margin: var(--gap-l) 0 var(--gap-m);
  padding-left: var(--gap-s);
  border-left: 3px solid var(--accent);
}

/* ---------- rundown ---------- */

.rundown {
  background: var(--bg-sunk);
  border: 1px solid var(--rule);
  padding: var(--gap-s) var(--gap-m);
  margin: 0 0 var(--gap-l);
}
.rundown__head {
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--gap-xs);
}
.rundown ol { margin: 0; padding: 0; list-style: none; counter-reset: rd; }
.rundown li {
  counter-increment: rd;
  margin: 0; padding: 0.4rem 0 0.4rem 2rem;
  position: relative;
  font-size: var(--t-small); line-height: 1.4;
  border-top: 1px solid var(--rule);
}
.rundown li:first-child { border-top: 0; }
.rundown li::before {
  content: counter(rd);
  position: absolute; left: 0; top: 0.35rem;
  font-family: var(--display); font-weight: 700;
  color: var(--accent); font-size: 0.95rem;
}

/* ---------- items ---------- */

.item {
  padding: var(--gap-m) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--gap-m);
}
.item:first-of-type { border-top: 2px solid var(--ink); }

.kicker {
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-xs);
}
.item__head {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-d2);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 var(--gap-xs);
}
.item__body { margin: 0 0 var(--gap-xs); }
/* Grouped tight to its own story: at 8px against a 24px item gap the source
   line read as part of the next item's whitespace. */
.item__src { font-size: var(--t-small); color: var(--ink-muted); margin: 0; }
.item__src a { color: var(--accent); text-decoration-color: var(--accent); }

/* A link to our own record of the meeting behind a story, set apart from the
   outbound source line so a reader can see which is ours. */
.item__related {
  margin: var(--gap-xs) 0 0;
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: .06em;
}
.item__related a { color: var(--accent); text-decoration: none; }
.item__related a:hover { text-decoration: underline; }

/* ---------- front page ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap-l);
  align-items: start;
  margin: var(--gap-l) 0;
}
.lead-grid--solo { grid-template-columns: 1fr; }
.lead__kicker { margin-bottom: var(--gap-xs); }
.lead__head {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--gap-s);
  text-wrap: balance;
}
.lead__dek { font-size: var(--t-lede); margin: 0 0 var(--gap-s); }
.lead__more { font-family: var(--mono); font-size: var(--t-small); }

/* A four-up of the day's other stories. The single column meant the same
   content took three screens and gained no rhythm. */
.across {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap-m);
  border-top: 2px solid var(--ink);
  padding-top: var(--gap-m);
}
.cell { border-left: 2px solid var(--rule); padding-left: var(--gap-s); }
.cell h3 {
  font-family: var(--display);
  font-size: var(--t-d3);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--gap-xs);
}
.cell p { font-size: var(--t-small); color: var(--ink-muted); margin: 0; }

/* The meeting calendar, which was being crammed into one prose sentence. */
.week {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--gap-s);
  margin: var(--gap-s) 0 0;
  padding: 0; list-style: none;
}
.day {
  border-top: 3px solid var(--accent);
  padding-top: var(--gap-xs);
}
.day--noagenda { border-top-color: var(--rule); }
.day__when {
  font-family: var(--mono); font-size: var(--t-kicker);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
  display: block; margin-bottom: 2px;
}
.day__what { font-size: var(--t-small); line-height: 1.3; }
.day__what a { text-decoration: none; }
.day__what a:hover { text-decoration: underline; }
.day__tag {
  font-family: var(--mono); font-size: var(--t-kicker);
  color: var(--accent); display: block; margin-top: 2px;
}

/* Desks. Colour that means something instead of one green for everything. */
.kicker--government { color: var(--accent); }
.kicker--weather    { color: var(--hickory); }
.kicker--business   { color: var(--slate); }
.kicker--news       { color: var(--ink-muted); }
/* Civic institution beats share the civic accent; the label carries the beat. */
.kicker--schools    { color: var(--accent); }
.kicker--county     { color: var(--accent); }
.kicker--airport    { color: var(--accent); }
/* Trail clay. The one warm note in the palette, and the only place it earns a
   spot: red dirt is what the singletrack here is actually made of. */
.kicker--trails     { color: #9c5230; }

/* A weather alert is the one item with a same-day consequence, and it was
   styled exactly like a cafe opening. */
.item--alert {
  background: var(--bg-sunk);
  border-left: 4px solid var(--hickory);
  padding: var(--gap-s) var(--gap-m);
}
.item--alert .item__head { font-size: var(--t-d3); }

/* ---------- recorded votes ---------- */

.votes { list-style: none; margin: var(--gap-s) 0 0; padding: 0; }
.votes li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--gap-s);
  align-items: baseline;
  padding: var(--gap-xs) 0;
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
}
.votes__tally {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.votes__result {
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.votes__what { color: var(--ink-muted); }

/* ---------- meeting preview ---------- */

/* The page opens on a kicker rather than a lede, so it needs the top space the
   lede's margin would otherwise have provided. */
.kicker--lead { margin-top: var(--gap-l); }

.meeting__head {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-d2);
  line-height: 1.15;
  margin: 0 0 var(--gap-xs);
}
.meeting__when {
  font-family: var(--mono);
  font-size: var(--t-small);
  color: var(--ink-muted);
  margin: 0 0 var(--gap-m);
}

/* Facts lifted verbatim from the agenda document. Set in the data voice and
   on a tinted panel so a reader can see at a glance which part of the page is
   quoted and which part is written. */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--gap-s);
  margin: var(--gap-s) 0 0;
  padding: var(--gap-s);
  background: var(--bg-sunk);
  border-left: 3px solid var(--accent);
  font-family: var(--mono);
  font-size: var(--t-small);
}
.facts dt {
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: var(--t-kicker);
  letter-spacing: .08em;
  padding-top: 3px;
}
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- archive ---------- */

.section-head {
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: var(--gap-xs);
  margin: var(--gap-xl) 0 var(--gap-s);
}
.archive { list-style: none; margin: 0; padding: 0; }
.archive li { border-bottom: 1px solid var(--rule); }
.archive a {
  display: flex; justify-content: space-between; gap: var(--gap-s);
  padding: 0.75rem 0; text-decoration: none; align-items: baseline;
  min-height: 44px;                       /* comfortable tap target */
}
.archive a:hover { color: var(--accent); }
.archive__date { font-weight: 500; }
.archive__count { font-family: var(--mono); font-size: var(--t-kicker); color: var(--ink-quiet); }

/* ---------- pager ---------- */

.pager {
  display: flex; justify-content: space-between; gap: var(--gap-s);
  /* margin-inline stays auto: a bare `margin: x 0 0` here overrode the
     container's centring and threw the pager out to the window edge. */
  margin: var(--gap-xl) auto 0; padding-top: var(--gap-s);
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
}
.pager a { color: var(--accent); padding: var(--gap-xs) 0; }
.pager span { color: var(--ink-quiet); }

/* ---------- notices ---------- */

.notice {
  border-left: 3px solid var(--hickory);
  background: var(--bg-sunk);
  padding: var(--gap-s);
  margin: var(--gap-m) 0;
  font-size: var(--t-small);
}
.notice ul { margin: var(--gap-xs) 0 0; padding-left: 1.1rem; }
.notice__head { font-weight: 600; }

.draft-banner {
  background: var(--hickory);
  color: #1b1206;
  font-family: var(--mono);
  font-size: var(--t-kicker);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--gap-xs);
}

.empty { color: var(--ink-muted); margin: var(--gap-l) 0; }

/* ---------- footer ---------- */

.footer {
  margin-top: var(--gap-xl);
  border-top: 2px solid var(--ink);
  padding: var(--gap-m) 0 var(--gap-xl);
  font-size: var(--t-small);
  color: var(--ink-muted);
}
.footer p { margin: 0 0 var(--gap-xs); }
.footer a { color: var(--accent); }

@media (max-width: 720px) {
  .lead-grid { grid-template-columns: 1fr; gap: var(--gap-m); }
}

@media (max-width: 640px) {
  .folio { font-size: 0.62rem; }
  .rundown { padding: var(--gap-s); }
  .status__row { font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .rundown, .pager, .draft-banner { display: none; }
  body { background: #fff; color: #000; }
}
