:root {
  --paper: #f3eee4;
  --paper-deep: #e7e0d2;
  --card: #fbf7ef;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: #d5ccba;
  --pine: #14352b;
  --pine-2: #1f5c45;
  --cream: #f6f1e6;
  --copper: #a84b24;
  --open: #1d5c3e;
  --open-bg: #e5f2ea;
  --wait: #8a5a12;
  --wait-bg: #f8efd6;
  --ended: #8a3b28;
  --ended-bg: #f6e6df;
  --shadow: 0 1px 0 rgba(28, 25, 20, 0.04);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Liberation Serif", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
a { color: var(--pine-2); }
a:hover { color: var(--copper); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 0.5rem; }

.banner {
  background: var(--pine);
  color: #efe7d6;
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  text-align: center;
}
.banner a { color: #f2d3a2; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.92);
  position: sticky;
  top: 0;
  z-index: 3;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--copper); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--copper); }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  background:
    radial-gradient(1200px 400px at 90% -10%, rgba(184, 90, 42, 0.35), transparent 50%),
    var(--pine);
  color: var(--cream);
  padding: 3.2rem 0 2.6rem;
}
.hero a { color: #f2d3a2; }
.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); margin: 0 0 1rem; max-width: 16ch; }
.lede { font-size: 1.18rem; max-width: 42rem; margin: 0 0 1.4rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; max-width: 40rem; margin: 0 0 1.4rem; }
.stat { border-top: 1px solid rgba(246, 241, 230, 0.35); padding-top: 0.55rem; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: #f2d3a2; }
.stat span { font-size: 0.92rem; }
.search {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 36rem;
}
.search input, .filters select, .quiz select, .quiz input[type="text"] {
  font: inherit;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1rem;
}
.search input { flex: 1 1 16rem; }
button, .button {
  font: inherit;
  background: var(--copper);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
button.secondary, .button.secondary { background: transparent; color: var(--cream); border: 1px solid rgba(246,241,230,0.5); }
.hero .button.secondary:hover { color: white; }

main { padding-bottom: 3rem; }
section { padding: 2.2rem 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.4rem; }
.section-note { color: var(--muted); max-width: 42rem; margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.cards { display: grid; gap: 0.9rem; }
.card, .slot, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0.35rem 0; font-size: 1.35rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--copper); }
.amount { font-family: var(--serif); color: var(--copper); font-size: 1.2rem; margin: 0.2rem 0 0.55rem; overflow-wrap: anywhere; }
.card .amount {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta { color: var(--muted); font-size: 0.92rem; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.is-open { background: var(--open-bg); color: var(--open); }
.is-wait { background: var(--wait-bg); color: var(--wait); }
.is-ended { background: var(--ended-bg); color: var(--ended); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.7rem 0; }
.tag { background: var(--paper-deep); border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.82rem; }

.slot {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, #fbf7ef, #fbf7ef 12px, #f3eee4 12px, #f3eee4 24px);
}
.slot-kicker { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }
.crumbs { font-size: 0.92rem; color: var(--muted); margin: 1rem 0; }
.crumbs a { color: inherit; }
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1rem; }
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; align-items: start; }
.fact dt { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.8rem; }
.fact dd { margin: 0.15rem 0 0; }
blockquote {
  margin: 0 0 0.8rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--copper);
  color: var(--muted);
  font-size: 0.95rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.index-list { columns: 3; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.index-list a { text-decoration: none; color: var(--ink); }
.index-list a:hover { color: var(--copper); }
.index-list li { break-inside: avoid; margin: 0 0 0.35rem; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 16px; margin: 0 0 0.8rem; background: var(--card); }
.quiz legend { font-family: var(--serif); padding: 0 0.4rem; }
.quiz label { display: block; margin: 0.35rem 0; }
.choices { display: flex; flex-direction: column; gap: 0.25rem; }
.result { margin-top: 1rem; }
.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.footer a { color: var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.callout { background: var(--wait-bg); border-radius: 16px; padding: 0.9rem 1rem; }

@media (max-width: 800px) {
  .stats, .split, .index-list { grid-template-columns: 1fr; columns: 1; }
  .hero { padding: 2.2rem 0 1.8rem; }
  h1 { max-width: none; }
  .nav { position: static; }
}
