/* Wasatch Booths */
:root {
  --ink: #1b1712;
  --ink-soft: #3d352c;
  --muted: #6b6156;
  --paper: #f4efe6;
  --paper-2: #efe7d8;
  --card: #fffaf2;
  --line: #d8cebf;
  --pine: #2a4a3d;
  --pine-deep: #1d342c;
  --rust: #b5452a;
  --gold: #c9a15a;
  --warn: #8a5a12;
  --warn-bg: #f7e7c6;
  --shadow: 0 10px 30px rgba(27, 23, 18, 0.08);
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 400px at 10% -10%, #efe4cc 0%, transparent 55%), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--pine); }
a:hover { color: var(--rust); }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark { width: 38px; height: 38px; color: var(--pine); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.links { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; }
nav.links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.links a[aria-current="page"] { color: var(--rust); }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  cursor: pointer;
}
.hero { padding: 3.2rem 0 2.2rem; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 560; max-width: 16ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; margin: 0 0 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  background: none;
  color: inherit;
}
.btn-primary { background: var(--pine); color: #f7f3ea; }
.btn-primary:hover { background: var(--pine-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 2.2rem 0 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.section { padding: 1.6rem 0 2.4rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; }
.card p { margin: 0 0 0.8rem; color: var(--ink-soft); }
.meta { font-size: 0.88rem; color: var(--muted); }
.notice, .callout {
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin: 0 0 1.2rem;
}
.callout { background: var(--warn-bg); border-color: #e4c98a; color: var(--warn); }
.tbd { color: var(--warn); font-weight: 700; }
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table.events {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 920px;
}
table.events th, table.events td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
table.events th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8f3ea;
  position: sticky;
  top: 0;
}
table.events tr:last-child td { border-bottom: 0; }
table.events tbody tr:hover { background: #fbf6ee; }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.filters input, .filters select, .field input, .field select {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  width: 100%;
}
.filters input, .filters select { width: auto; min-width: 12rem; flex: 1; }
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; align-items: start; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.field label { font-weight: 650; font-size: 0.95rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.results {
  background: var(--pine-deep);
  color: #f4efe6;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.2rem;
}
.results h2 { color: #fff; }
.big-number {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
  margin: 0.3rem 0 0.2rem;
}
.results dl { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 1rem 0 0; }
.results dt { color: #d8cebf; }
.results dd { margin: 0; font-weight: 700; text-align: right; }
.formula { font-size: 0.88rem; color: #d8cebf; margin-top: 1rem; }
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }
.placeholder-stamp {
  display: inline-block;
  border: 2px dashed var(--rust);
  color: var(--rust);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  transform: rotate(-2deg);
  margin-bottom: 0.8rem;
}
.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.note-box {
  border: 1px dashed #c9bead;
  border-radius: 12px;
  min-height: 4.5rem;
  padding: 0.8rem;
  background: #fffdf8;
  color: #9a8f81;
}
.prose { max-width: 46rem; }
.prose p, .prose li { color: var(--ink-soft); }
.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.name-card .avail { color: var(--pine); font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }
  nav.links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    flex-direction: column;
  }
  header.site.open nav.links { display: flex; }
  .stats, .cards, .calc-grid, .note-grid, .names { grid-template-columns: 1fr; }
  .results { position: static; }
  h1 { max-width: none; }
}

/* Phase 2 additions */
.ad-slot {
  border: 1px dashed var(--line);
  background: #f3eee4;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.2rem 0;
}
nav.links .sub {
  position: relative;
}
.crumb { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.8rem; }
.crumb a { color: var(--ink-soft); }
article.prose, .prose.wide { max-width: 48rem; }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.3rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.source-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}
.source-box h3 { margin-top: 0; }
.checklist li { margin: 0.45rem 0; }
.muted { color: var(--muted); }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { margin: 0 0 0.8rem; }
#events-count { color: var(--muted); font-size: 0.92rem; }
table.events td a { overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .ad-slot { min-height: 80px; }
}
