:root {
  --bg: #f6f0e7;
  --bg-elevated: rgba(255, 252, 247, 0.9);
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(102, 78, 58, 0.14);
  --text: #241b14;
  --muted: #655446;
  --warm: #c86f3d;
  --warm-soft: #9c4f24;
  --teal: #4f8f86;
  --red: #b25b5b;
  --shadow: 0 24px 60px rgba(106, 83, 58, 0.12);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(200, 111, 61, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(79, 143, 134, 0.12), transparent 24%),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 34%, #f0e6da 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(88, 68, 51, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 68, 51, 0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

.site-hero,
main {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
}

/* ---------- Editorial hero ---------- */
.site-hero {
  padding: 2.2rem 0 1.5rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.15rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(200, 111, 61, 0.3);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.55rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 1.6rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.02;
  margin: 0;
  color: var(--text);
}

.hero-intro {
  padding-bottom: 0.4rem;
}

.hero-lede {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.55;
  max-width: 38ch;
}

.hero-refresh {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(101, 84, 70, 0.7);
  font-style: italic;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0.85rem 1.3rem;
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid rgba(200, 111, 61, 0.14);
  border-radius: 0.85rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.3rem;
  position: relative;
  font-size: 0.85rem;
  white-space: nowrap;
}

.hero-meta-item:first-child {
  padding-left: 0;
}

.hero-meta-item:last-child {
  padding-right: 0;
  margin-left: auto;
}

.hero-meta-item + .hero-meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1rem;
  background: rgba(200, 111, 61, 0.25);
}

.hero-meta-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(79, 143, 134, 0.18);
  flex-shrink: 0;
}

.hero-meta-label {
  color: var(--muted);
}

.hero-meta-value {
  color: var(--text);
  font-weight: 600;
}

.hero-meta-value-accent {
  color: var(--warm-soft);
}

/* ---------- Event density strip ---------- */
.hero-density {
  margin-top: 1.3rem;
}

.hero-density-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  gap: 1rem;
}

.hero-density-header .eyebrow {
  margin: 0;
}

.hero-density-legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-density-swatch {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.15rem;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.hero-density-swatch-strong { background: var(--warm); }
.hero-density-swatch-mid    { background: rgba(200, 111, 61, 0.45); }
.hero-density-swatch-low    { background: rgba(200, 111, 61, 0.22); }

.hero-density-bars {
  display: grid;
  grid-template-columns: repeat(var(--day-count, 14), 1fr);
  gap: 0.28rem;
  height: 2.5rem;
  align-items: end;
}

.hero-density-bar {
  width: 100%;
  border-radius: 0.2rem;
  background: rgba(200, 111, 61, 0.22);
  min-height: 0.3rem;
  transition: opacity 180ms ease;
}

.hero-density-bar.is-mid {
  background: rgba(200, 111, 61, 0.45);
}

.hero-density-bar.is-strong {
  background: var(--warm);
}

.hero-density-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: rgba(101, 84, 70, 0.7);
}

/* Shared editorial styles preserved from old header block */
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.lede,
.body-copy,
.compact-list,
.rich-list {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.67rem;
  color: var(--warm-soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.hero-copy,
.hero-panel,
.card,
.score-strip,
.rule-card,
.history-band {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: 2rem;
}

.hero h2 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.94;
  max-width: 12ch;
}

.lede {
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 1.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--warm), #bd6a40);
  color: #fffaf5;
  font-weight: 700;
}

.button-secondary {
  border: 1px solid rgba(79, 143, 134, 0.28);
  background: rgba(79, 143, 134, 0.08);
  color: var(--text);
}

.hero-panel {
  border-radius: 1.6rem;
  padding: 1.5rem;
}

.hero-stat {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.7rem;
}

.compact-list,
.rich-list {
  margin: 0;
  padding-left: 1.15rem;
}

.compact-list li + li,
.rich-list li + li {
  margin-top: 0.55rem;
}

.score-strip {
  margin: 1.2rem 0 2rem;
  border-radius: 1.75rem;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
}

.score-grid {
  display: grid;
  gap: 0.9rem;
}

.score-row {
  display: grid;
  gap: 0.45rem;
}

.score-row header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.score-row strong {
  color: var(--text);
}

.score-bar {
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--warm));
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.span-two {
  grid-column: span 2;
}

.card,
.history-band {
  border-radius: 1.5rem;
  padding: 1.35rem;
}

.card h3,
.score-strip h3,
.history-band h3,
.rules-header h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 0.9rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  border: 1px solid rgba(200, 111, 61, 0.18);
  background: rgba(200, 111, 61, 0.06);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.93rem;
}

.persona-grid,
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.persona,
.history-card {
  border: 1px solid rgba(102, 78, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 1.15rem;
  padding: 1rem;
}

.persona p,
.history-card p,
.history-card span {
  margin: 0;
}

.persona .persona-role {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.persona .persona-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.operating-rules {
  margin: 1.8rem 0;
  padding: 1.2rem 0;
}

.rules-header {
  margin-bottom: 1rem;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rule-card {
  border-radius: 1.35rem;
  padding: 1.2rem;
}

.rule-number {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--warm);
}

.history-band {
  margin: 1rem 0 2rem;
  display: grid;
  gap: 1rem;
}

.featured-strip,
.planner-shell,
.taste-shell {
  margin: 0.7rem 0 1.1rem;
}

.section-heading {
  margin-bottom: 0.65rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.featured-card,
.day-block,
.no-event-card,
.event-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.featured-card {
  border-radius: 1.4rem;
  padding: 0.95rem;
}

.featured-card h4,
.event-card h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0.18rem 0 0.45rem;
}

.featured-date {
  margin: 0 0 0.35rem;
  color: var(--warm-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.planner-grid {
  display: grid;
  gap: 0.8rem;
}

.taste-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.taste-card {
  padding: 0;
}

.taste-card-summary {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.taste-copy,
.taste-list {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.taste-copy {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(0.94rem, 1.1vw, 1.04rem);
  line-height: 1.68;
}

.taste-sources-heading {
  margin: 0.1rem 0 0;
}

.taste-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 23.5rem));
  width: 100%;
  justify-content: center;
  justify-items: center;
  gap: 0.8rem;
}

.taste-promo {
  display: block;
  width: min(100%, 23.5rem);
  padding: 0.55rem;
  text-decoration: none;
  color: inherit;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, #f4f4f2 0%, #ececea 100%);
  border: 1px solid rgba(196, 193, 186, 0.9);
  box-shadow: 0 10px 24px rgba(106, 83, 58, 0.05);
  transition: transform 180ms ease;
}

.taste-promo:hover {
  transform: translateY(-2px);
}

.taste-promo-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 1.35rem;
}

.taste-list {
  margin: 0;
  padding-left: 1rem;
}

.taste-list li + li {
  margin-top: 0.38rem;
}

.day-block {
  border-radius: 1.5rem;
  padding: 0.95rem;
}

.day-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.day-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.event-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.event-card,
.no-event-card {
  border-radius: 1.15rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.event-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.event-meta,
.event-copy,
.no-event-card p {
  line-height: 1.48;
}

.event-meta,
.event-copy,
.no-event-card p {
  color: var(--muted);
  margin: 0.28rem 0 0;
  font-size: 0.92rem;
}

.event-copy strong,
.event-meta strong {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-hot {
  background: rgba(200, 111, 61, 0.12);
  color: var(--warm-soft);
  border-color: rgba(200, 111, 61, 0.28);
}

.badge-warm {
  background: rgba(79, 143, 134, 0.12);
  color: #2d5f58;
  border-color: rgba(79, 143, 134, 0.28);
}

.badge-muted,
.badge-score {
  background: rgba(98, 82, 67, 0.06);
  color: var(--muted);
  border-color: rgba(98, 82, 67, 0.1);
}

.event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.event-button:hover {
  transform: translateY(-1px);
}

.event-button-primary {
  background: linear-gradient(135deg, var(--warm), #b9602f);
  color: #fffaf5;
  box-shadow: 0 10px 24px rgba(200, 111, 61, 0.18);
}

.event-button-secondary {
  background: rgba(79, 143, 134, 0.08);
  border: 1px solid rgba(79, 143, 134, 0.22);
  color: #275952;
}

.no-event-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
}

.no-event-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.history-card span {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--warm-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.site-footer {
  margin-top: 1.4rem;
  background: linear-gradient(180deg, #36505c 0%, #314752 100%);
  color: rgba(246, 240, 231, 0.88);
  padding: 2.8rem 1rem 3rem;
}

.site-footer-inner {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}

.site-footer-location,
.site-footer-copy {
  margin: 0;
}

.site-footer-location {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 238, 0.92);
}

.site-footer-copy {
  font-size: 0.82rem;
  color: rgba(240, 232, 222, 0.6);
}

@media (max-width: 980px) {
  .hero,
  .score-strip,
  .section-grid,
  .rules-grid,
  .persona-grid,
  .history-grid,
  .featured-grid,
  .taste-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
  }

  .hero-intro {
    padding-bottom: 0;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 0.75rem 0;
    padding: 1rem 1.1rem;
  }

  .hero-meta-item {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 0;
  }

  .hero-meta-item + .hero-meta-item::before {
    display: none;
  }

  .span-two {
    grid-column: auto;
  }

}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(200, 111, 61, 0.12), transparent 34%),
      radial-gradient(circle at top right, rgba(79, 143, 134, 0.12), transparent 26%),
      linear-gradient(180deg, #fbf6ef 0%, var(--bg) 34%, #f0e6da 100%);
  }

  .site-hero,
  main,
  .site-footer-inner {
    width: min(100vw - 1rem, 1180px);
  }

  .hero-copy,
  .hero-panel,
  .card,
  .score-strip,
  .rule-card,
  .history-band,
  .featured-card,
  .taste-card,
  .day-block,
  .event-card,
  .no-event-card {
    border-radius: 1.2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .day-header,
  .event-card-top {
    flex-direction: column;
  }

  .event-card-badges {
    justify-content: flex-start;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .taste-promo-grid {
    grid-template-columns: 1fr;
  }
}
