/* Licking County Brief
   Palette comes from the county itself: limestone, the green of the Newark
   Earthworks, and the blue-grey of Flint Ridge flint. The one loud idea is
   the source margin: every item sits beside the record it came from. */

:root {
  --stone: #f6f7f3;
  --panel: #ecefe8;
  --ink: #17221c;
  --ink-soft: #4a5a52;
  --earthwork: #2c5a41;
  --flint: #55677a;
  --rule: #cfd6cc;
  --notice: #8a5a00;
  --notice-bg: #fbf1d8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --margin-col: 11.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --stone: #121915;
    --panel: #1a231e;
    --ink: #e7ece6;
    --ink-soft: #a5b3aa;
    --earthwork: #8fc3a3;
    --flint: #9fb2c6;
    --rule: #2e3a33;
    --notice: #f0c35a;
    --notice-bg: #2a2413;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--earthwork); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--flint);
  outline-offset: 3px;
}

.wrap {
  max-width: calc(var(--margin-col) + var(--measure) + 5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Masthead */

.masthead { padding: 1.5rem 0 1.1rem; border-bottom: 3px solid var(--ink); }
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; }
.masthead .name {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
/* The independence line is in the header of every page: the domain is close
   to the county's own addresses, so a reader has to be able to tell at a
   glance that this is not a government site. It follows the name in the
   markup. On wide screens it takes its own row under the name and the nav;
   on narrow ones it sits directly under the name (see the media query). */
.masthead .independent {
  order: 1;
  flex-basis: 100%;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.masthead nav { font-family: var(--sans); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.alert {
  display: none;
  background: var(--notice-bg);
  color: var(--notice);
  font-family: var(--sans);
  font-size: 0.9375rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.alert a { color: inherit; font-weight: 600; }
.alert.on { display: block; }

/* The opening: the date and the receipt */

.opening { padding: 3.25rem 0 2.25rem; }
/* The edition name: "Daily Brief" is the morning edition of the site. */
.opening .edition {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--earthwork);
}
.opening h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7.2vw, 4.75rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.receipt {
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.receipt strong { color: var(--ink); font-weight: 600; }
.mode-notice {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--notice-bg);
  color: var(--notice);
  font-family: var(--sans);
  font-size: 0.9375rem;
  max-width: var(--measure);
  border-left: 4px solid var(--notice);
}

/* Town pages and other list pages */
.opening .edition a { color: inherit; }
.town-opening h1 { max-width: none; }
.block-heading { margin: 2.5rem 0 0.75rem; font-size: 1.45rem; line-height: 1.25; font-weight: 600; }
.section > h2 a { color: inherit; }
.fine-print { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); max-width: var(--measure); margin: 0.9rem 0 0; }
.fine-print a { color: inherit; }

/* Meetings: the date sits where the source sits on a brief item */
.meeting .when time { display: block; color: var(--ink); font-weight: 600; font-size: 0.9375rem; }
.meeting h3 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; }
.meeting .docs { list-style: none; margin: 0.5rem 0 0; padding: 0; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.45; }
.meeting .docs li { margin: 0.3rem 0; }
.meeting .docs .kind { color: var(--ink-soft); font-size: 0.8125rem; white-space: nowrap; }
.meeting .preview-link { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; margin-top: 0.6rem; }
.meeting-slot { margin: 0 0 0.6rem; font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); }
.status, .status-plain { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.status { padding: 0.12rem 0.5rem; border: 1px solid currentColor; border-radius: 2px; }
.status-upcoming { color: var(--flint); }
.status-preview { color: var(--earthwork); }
.status-decided { color: var(--ink); }
.status-canceled { color: var(--notice); background: var(--notice-bg); }
.status-plain { color: var(--ink-soft); font-weight: 400; }
.prose .legend { list-style: none; padding: 0; font-family: var(--sans); font-size: 0.9375rem; }
.prose .legend li { margin: 0.55rem 0; }
.prose .legend .status, .prose .legend .status-plain { margin-right: 0.5rem; }

/* Who They Are */
.officials-page { max-width: calc(var(--measure) + 8rem); }
.officials-page > p, .officials-page > h1 { max-width: var(--measure); }
.officials { scroll-margin-top: 1rem; }
.officials table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.officials .fine-print { margin-top: 0.4rem; }
.prose .jump { font-family: var(--sans); font-size: 0.9375rem; }

/* Data pages: weather and water */
.forecast { max-width: var(--measure); margin: 0.75rem 0 0; }
.forecast dt { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; margin-top: 0.9rem; }
.forecast dd { margin: 0.15rem 0 0; }
.table-scroll { overflow-x: auto; margin: 0.75rem 0 0; }
table.data { border-collapse: collapse; width: 100%; min-width: 38rem; font-family: var(--sans); font-size: 0.9375rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
table.data th[scope="row"] { font-weight: 600; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .row-towns { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); margin-top: 0.15rem; }
table.data .row-towns a { color: inherit; }
table.data .row-note { color: var(--ink-soft); font-size: 0.8125rem; }

/* Gauge charts: static SVG, one per stored gauge. Dots are stored readings. */
.gauge-charts { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1rem 0 0.25rem; }
.gauge-chart { margin: 0; padding: 0.85rem 0.95rem 0.7rem; background: var(--panel); min-width: 0; }
.gauge-chart figcaption { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.gauge-chart figcaption .row-towns { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); margin-top: 0.15rem; }
.gauge-chart figcaption .row-towns a { color: inherit; }
.gauge-chart .chart-note { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.45; margin-top: 0.25rem; }
.gauge-svg { display: block; width: 100%; height: auto; margin-top: 0.35rem; color: var(--ink); }
.gauge-svg text { font-family: var(--sans); font-size: 11px; fill: var(--ink-soft); }
.gauge-svg .gauge-value { fill: var(--ink); font-size: 13px; font-weight: 600; }
.gauge-grid line, .gauge-axis-line { stroke: var(--rule); stroke-width: 1; }
.gauge-line { fill: none; stroke: var(--earthwork); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gauge-point { fill: var(--earthwork); stroke: var(--panel); stroke-width: 1.5; }
.chart-readings { list-style: none; margin: 0.35rem 0 0; padding: 0; font-family: var(--sans); font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.45; }
.chart-readings li { margin: 0.1rem 0; }
@media (min-width: 60rem) {
  .gauge-charts { grid-template-columns: 1fr 1fr; }
}

/* Policy pages and their draft markings */
.draft-banner { margin: 0 0 1.75rem; padding: 0.9rem 1.1rem; background: var(--notice-bg); color: var(--notice); border-left: 4px solid var(--notice); font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; }
.prose .decision, .prose .open { margin: 1rem 0; padding: 0.7rem 1rem; border: 1px dashed var(--notice); color: var(--notice); background: var(--notice-bg); font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; }
footer .policies { flex-basis: 100%; }

/* Sections and items: source in the margin, words beside it */

.section { border-top: 1px solid var(--rule); padding: 1.75rem 0 0.5rem; }
.section > h2 {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--earthwork);
}
.item {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, var(--measure));
  column-gap: 2.5rem;
  padding-bottom: 1.9rem;
}
.item .source {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--flint);
  padding-top: 0.42rem;
  border-top: 2px solid var(--flint);
  align-self: start;
}
.item .source a { color: inherit; display: block; }
.item .source a + a { margin-top: 0.5rem; }
/* Town tags sit under the source, in the same margin: where it came from, then where it is. */
.item .source .town-tags { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin-top: 0.55rem; color: var(--ink-soft); }
.item .source .town-tag, .item .source a.town-tag { display: inline; font-weight: 600; margin-top: 0; }
.item h3 { margin: 0; font-size: 1.5rem; line-height: 1.22; font-weight: 600; letter-spacing: -0.012em; }
.item p { margin: 0.45rem 0 0; }
.item.headline-only h3 { font-size: 1.25rem; font-weight: 500; }
.item .from-outlet { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.35rem; }
details.passage { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); }
details.passage summary { cursor: pointer; width: fit-content; }
details.passage blockquote { margin: 0.5rem 0 0; padding-left: 0.9rem; border-left: 2px solid var(--rule); font-family: var(--serif); font-size: 1rem; }

.empty { max-width: var(--measure); padding: 0.5rem 0 2rem; }

/* How this page was made: the generated note on every page */

.made {
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.5rem;
  background: var(--panel);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.made h2 { margin: 0 0 0.6rem; font-size: 1rem; color: var(--ink); font-weight: 600; }
.made dl { margin: 0; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.3rem 1rem; }
.made dt { color: var(--ink); }
.made dd { margin: 0; }

/* Subscribe */

.subscribe { margin: 3rem 0 0; padding: 2rem 0; border-top: 3px solid var(--ink); }
.subscribe h2 { margin: 0; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; }
.subscribe p { margin: 0.4rem 0 1rem; max-width: var(--measure); color: var(--ink-soft); }
.subscribe form { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 32rem; }
.subscribe input[type="email"] {
  flex: 1 1 15rem;
  font: inherit;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--ink-soft);
  background: var(--stone);
  color: var(--ink);
  border-radius: 2px;
}
.subscribe button {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 2px;
  background: var(--earthwork);
  color: var(--stone);
  cursor: pointer;
}
.subscribe button[disabled], .subscribe input[disabled] { opacity: 0.55; cursor: not-allowed; }
.subscribe .fine { font-family: var(--sans); font-size: 0.875rem; margin-top: 0.75rem; }

/* Long-form pages */

.prose { max-width: var(--measure); padding: 2.75rem 0 1rem; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; margin: 0 0 1.25rem; }
.prose h2 { font-size: 1.45rem; line-height: 1.25; font-weight: 600; margin: 2.2rem 0 0.4rem; }
.prose p, .prose li { margin: 0.6rem 0; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 0.9375rem; margin: 1rem 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); }

.archive-list { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.archive-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.archive-list span { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }

footer { margin-top: 3rem; padding: 1.75rem 0 3rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9375rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer a { color: inherit; }

@media (max-width: 46rem) {
  body { font-size: 1.125rem; }
  .masthead .independent { order: 0; }
  .item { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .item .source { order: 2; border-top: 0; border-left: 2px solid var(--flint); padding: 0 0 0 0.7rem; }
  .item .source a + a { margin-top: 0.25rem; }
  /* A meeting's date is not a footnote: it stays first on a phone. */
  .item.meeting .source { order: 0; border-left: 0; padding: 0; }
  .item.meeting .source .town-tags { margin-top: 0.2rem; }
  .meeting h3 { font-size: 1.2rem; }
  .made dl { grid-template-columns: 1fr; gap: 0; }
  .made dt { margin-top: 0.5rem; }
  .opening { padding: 2.25rem 0 1.75rem; }
}
