/* Allotment Index — typographic, paper-and-soil, fast and readable */
:root {
  --paper: #f4efe4;
  --paper-deep: #ebe4d4;
  --ink: #1c2416;
  --ink-soft: #3d4a36;
  --muted: #5c6756;
  --line: #d4cbb8;
  --green: #234332;
  --green-mid: #2f5a40;
  --leaf: #3d6b4a;
  --clay: #8a4b2e;
  --gold: #c4a15a;
  --status-open: #1d5a38;
  --status-closed: #8a2f2f;
  --status-mixed: #8a5a14;
  --max: 72rem;
  --prose: 42rem;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--green);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--clay); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner, .footer-inner, .band-inner, .hero, .article {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.wordmark em { font-style: italic; font-weight: 500; }
.wordmark:hover { color: var(--clay); }
.mark { flex: none; }

.nav { display: flex; gap: 1.25rem; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
}

.hero { padding: 3.25rem 0 2.75rem; max-width: 46rem; margin-left: auto; margin-right: auto; width: min(46rem, calc(100% - 2rem)); }
.hero h1, .article-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.3rem 0 0.9rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.hero-actions, .prose .button { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.button {
  display: inline-block;
  background: var(--green);
  color: var(--paper) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  border: 1px solid var(--green);
}
.button:hover { background: var(--green-mid); }
.button-quiet {
  background: transparent;
  color: var(--green) !important;
  border-color: var(--line);
}
.button-quiet:hover { border-color: var(--green); background: var(--paper-deep); }

.band { padding: 2.5rem 0; background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band { border-top: 0; }
.band-plain { background: transparent; border-bottom: 0; }
.band h2, .article h2, .prose h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.card-grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 2px;
}
.band-plain .card { background: var(--paper-deep); }
.card h2, .card h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0.2rem 0 0.5rem; line-height: 1.25; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--green); text-decoration: underline; }
.card-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.card-meta { margin: 0.8rem 0 0; font-size: 0.9rem; color: var(--muted); }
.card p { margin: 0; color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.plain-list { padding-left: 1.15rem; margin: 0.5rem 0 0; }
.plain-list li { margin: 0.45rem 0; }

.panel {
  background: var(--green);
  color: var(--paper);
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 2px;
}
.panel h2 { color: var(--paper); font-size: 1.3rem; }
.panel a { color: #f3e2b0; }
.panel p { margin: 0 0 0.75rem; }
.stat { font-size: 1.15rem; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 600;
}

.article { padding: 2rem 0 4rem; max-width: calc(var(--prose) + 2rem); }
.directory-table { font-size: 0.95rem; }
.article-header { margin-bottom: 1.75rem; }
.byline { color: var(--muted); font-size: 0.95rem; margin: 0; }

.crumbs { font-size: 0.9rem; margin: 0 0 1.1rem; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.crumbs li:not(:last-child)::after { content: " / "; color: var(--muted); margin-left: 0.25rem; }
.crumbs a { color: var(--muted); }

.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.table-wrap, .prose .table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.table-help { font-size: 0.95rem; color: var(--muted); margin: 0 0 0.75rem; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--paper-deep);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.dates { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; }

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  background: var(--paper-deep);
}
.status-open { color: var(--status-open); background: #dcecde; }
.status-closed { color: var(--status-closed); background: #f3d9d6; }
.status-mixed { color: var(--status-mixed); background: #f3e6c8; }

.factfile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.factfile dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.25rem; }
.factfile dd { margin: 0; }

.note, .prose .note, aside.note {
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  margin: 1.5rem 0;
}
.note p { margin: 0; }

.site-footer {
  background: #182016;
  color: #d7d2c6;
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.3rem; color: var(--paper); }
.footer-tag, .footer-legal { color: #b7b1a4; }
.footer-heading { margin: 0 0 0.4rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: #f3e2b0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a, .site-footer a { color: #f4efe4; }
.footer-legal { margin: 0; padding-top: 1.25rem; border-top: 1px solid #2c3828; font-size: 0.88rem; }

@media (max-width: 600px) {
  .nav { gap: 0.85rem; }
  .header-inner { padding: 0.7rem 0; }
  .hero { padding-top: 2rem; }
}
