:root {
  --paper: #fbfaf6;
  --ink: #22201c;
  --river: #1f4a3d;
  --river-deep: #163529;
  --sage: #e7efe9;
  --rule: #ddd9ce;
  --meta: #6b6f6a;
  --urgent: #a32f27;
  --measure: 68ch;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- sample data notice ---------- */

.notice {
  background: var(--sage);
  border-bottom: 1px solid var(--rule);
  color: var(--river-deep);
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.notice p {
  margin: 0 auto;
  max-width: 72rem;
}

/* ---------- header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 1.25rem 1.25rem;
}

.masthead-inner {
  margin: 0 auto;
  max-width: 72rem;
}

.wordmark {
  color: var(--river-deep);
  display: inline-block;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  text-decoration: none;
}

.wordmark:hover { color: var(--river); }

.locality {
  color: var(--meta);
  font-size: 0.9375rem;
  margin: 0.25rem 0 0;
}

.masthead-contact {
  font-size: 0.9375rem;
  margin: 0.875rem 0 0;
}

.masthead-contact a {
  color: var(--river);
  font-weight: 600;
}

.masthead-contact span {
  color: var(--meta);
}

/* ---------- navigation ---------- */

nav {
  border-bottom: 1px solid var(--rule);
  padding: 0 1.25rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0;
}

nav a {
  color: var(--ink);
  display: block;
  font-size: 0.9375rem;
  padding: 0.75rem 0;
  text-decoration: none;
}

nav a:hover { color: var(--river); }

nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--river);
  color: var(--river-deep);
  font-weight: 600;
}

/* ---------- urgent strip: the one loud element ---------- */

.urgent {
  background: var(--urgent);
  color: #fff;
  padding: 0.875rem 1.25rem;
}

.urgent-inner {
  margin: 0 auto;
  max-width: 72rem;
}

.urgent p {
  margin: 0;
  font-size: 0.9375rem;
}

.urgent a {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- layout ---------- */

main {
  margin: 0 auto;
  max-width: 72rem;
  padding: 2.5rem 1.25rem 4rem;
}

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

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  color: var(--river-deep);
  font-size: 2rem;
  margin: 0 0 1.25rem;
}

h2 {
  border-top: 1px solid var(--rule);
  font-size: 1.375rem;
  margin: 2.75rem 0 1rem;
  padding-top: 1.5rem;
}

h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.5rem;
}

h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

p, ul, ol { margin: 0 0 1rem; }

.prose ul, .prose ol { padding-left: 1.25rem; }

li { margin-bottom: 0.375rem; }

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

a:hover { color: var(--river-deep); }

strong { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

blockquote {
  border-left: 3px solid var(--sage);
  margin: 1.5rem 0;
  padding-left: 1rem;
}

code {
  background: var(--sage);
  border-radius: 2px;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
}

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

/* ---------- tables ---------- */

.table-wrap {
  margin: 0 0 1.5rem;
  max-width: 100%;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 100%;
}

th, td {
  border-bottom: 1px solid var(--rule);
  padding: 0.625rem 1.25rem 0.625rem 0;
  text-align: left;
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--river);
  color: var(--river-deep);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 1px solid var(--rule); }

/* ---------- homepage ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-bottom: 1rem;
}

.hero h1 { font-size: 2.375rem; }

.hero-lede {
  font-size: 1.0625rem;
  max-width: 46ch;
}

.hours-panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--river);
  padding: 1.25rem 1.375rem 1.5rem;
}

.hours-panel h2 {
  border: 0;
  font-size: 1.0625rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.hours-panel table { font-size: 0.875rem; }

.hours-panel td { padding-right: 0; }

.hours-panel td:last-child { text-align: right; }

.hours-note {
  color: var(--meta);
  font-size: 0.8125rem;
  margin: 0.875rem 0 0;
}

.section-links {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.section-links h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.375rem;
}

.section-links p {
  color: var(--meta);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 34ch;
}

/* ---------- machine-readable pointer ---------- */

.source-link {
  border-top: 1px solid var(--rule);
  color: var(--meta);
  font-size: 0.875rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
}

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

footer {
  border-top: 1px solid var(--rule);
  color: var(--meta);
  font-size: 0.875rem;
  padding: 2rem 1.25rem 3rem;
}

.footer-inner {
  margin: 0 auto;
  max-width: 72rem;
}

footer p { margin: 0 0 0.5rem; }

footer a { color: var(--river); }

/* ---------- responsive ---------- */

@media (max-width: 46rem) {
  body { font-size: 16px; }
  .hero {
    gap: 1.75rem;
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 1.875rem; }
  h1 { font-size: 1.625rem; }
  nav ul { gap: 0 1.125rem; }
}

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