:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #211d17;
  --ink-soft: #6b6357;
  --line: #e7dfd3;
  --accent: #d9492b;
  --accent-dark: #b53a20;
  --accent-soft: #fbe9e4;
  --green: #3e6b4f;
  --green-soft: #e6efe9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(33, 29, 23, 0.06), 0 8px 24px rgba(33, 29, 23, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--ink-soft); }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, white);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
}

.brand-mark.small { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; margin-right: 8px; }

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
}

.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--accent); }

/* Mobile: the three nav items overflow narrow screens otherwise */
@media (max-width: 680px) {
  body { overflow-x: hidden; }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav-links { gap: 12px; font-size: 14px; }
  .nav-links .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .nav-links a[href="#/host"] { display: none; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; font-size: 17px; }
}

@media (max-width: 400px) {
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 10px; }
  .nav-links .btn { padding: 7px 12px; font-size: 12.5px; }
  .brand-name { font-size: 17px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 56px) clamp(48px, 7vw, 90px);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  max-width: 17ch;
  margin: 0 auto 20px;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero p.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- stats strip ---------- */

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
  text-align: center;
}

.stat .stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stat .stat-label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ---------- sections ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 56px);
}

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- format band ---------- */

.format-band { background: var(--ink); color: var(--bg); }
.format-band .section-head h2 { color: var(--bg); }
.format-band .section-head p { color: #b8b0a4; }

.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }

.format-card {
  border: 1px solid #3a352d;
  border-radius: var(--radius);
  padding: 26px 22px;
}

.format-card .big {
  font-family: "Fraunces", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #f4b8a6;
  display: block;
  margin-bottom: 6px;
}

.format-card p { color: #b8b0a4; font-size: 15px; }

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-grid.three { max-width: 1100px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.track-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.track-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.track-option input { margin-top: 3px; accent-color: var(--accent); }
.track-option.disabled { opacity: 0.55; cursor: not-allowed; }

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card.featured { border-color: var(--accent); }

.price-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-card.featured .price-label { color: var(--accent); }

.price-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin: 8px 0 4px;
}

.price-list {
  list-style: none;
  margin: 16px 0 24px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.price-list li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.price-card .btn { align-self: stretch; text-align: center; }

.price-tag {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 12px;
  vertical-align: middle;
  margin-left: 6px;
}

.pay-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

/* ---------- session cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(33,29,23,.07), 0 14px 32px rgba(33,29,23,.11); }

.card .date-chip {
  align-self: flex-start;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
}

.card .date-chip.full { background: #f1ece4; color: var(--ink-soft); }
.date-chip.warn { background: #fdf3e0; color: #8a6116; }
.date-chip.cancelled { background: #f1ece4; color: var(--ink-soft); text-decoration: line-through; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row .date-chip { align-self: auto; }
.card h3 { font-size: 22px; }
.card .meta { font-size: 14px; color: var(--ink-soft); display: grid; gap: 4px; }

.slotbar { height: 8px; border-radius: 99px; background: #efe9df; overflow: hidden; }
.slotbar > div { height: 100%; background: var(--accent); border-radius: 99px; }
.slotbar-label { font-size: 13px; color: var(--ink-soft); }

.card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- session detail ---------- */

.detail-head { max-width: 760px; }
.detail-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 10px 0 14px; }
.detail-head .meta-row { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.detail-head .desc { margin-top: 18px; color: var(--ink-soft); max-width: 64ch; }

.notice {
  margin-top: 22px;
  background: var(--accent-soft);
  border: 1px solid #f0cabc;
  color: #7c3014;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  max-width: 64ch;
}

.notice.green { background: var(--green-soft); border-color: #cbdcd2; color: var(--green); }
.notice.amber { background: #fdf3e0; border-color: #efd9a7; color: #8a6116; }
.notice.grey { background: #f1ece4; border-color: var(--line); color: var(--ink-soft); }

.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; margin-top: 40px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.lineup { list-style: none; display: grid; gap: 8px; }

.lineup-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lineup-item.pending { opacity: 0.6; border-style: dashed; }
.lineup-name { font-weight: 700; font-size: 14px; }
.lineup-talk { color: var(--ink-soft); font-size: 13.5px; }

.lineup-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- forms ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel h3 { font-size: 21px; margin-bottom: 4px; }
.panel .panel-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-error { color: var(--accent-dark); font-size: 14px; margin-bottom: 12px; font-weight: 500; }

.divider { border: none; border-top: 1px solid var(--line); margin: 26px 0; }

.audience-list { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

.success-box {
  background: var(--green-soft);
  border: 1px solid #cbdcd2;
  color: var(--green);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 500;
}

/* ---------- faq ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }

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

.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14.5px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 50;
}

.back-link { font-size: 14.5px; font-weight: 600; color: var(--accent); }
.back-link:hover { text-decoration: underline; }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- admin: tabs + ratings ---------- */

.admin-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs[hidden] { display: none; }

.admin-tabs .tab {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}

.admin-tabs .tab.active { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }

#ad-search {
  flex: 1;
  min-width: 180px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
}

#ad-search:focus { outline: none; border-color: var(--accent); }

.rating-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

.rating-chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}

span.rating-chip { cursor: default; }
.rating-chip.trusted.active, span.rating-chip.trusted { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.rating-chip.good.active, span.rating-chip.good { border-color: #7a9b6d; background: #eef4ea; color: #4c6b40; }
.rating-chip.caution.active, span.rating-chip.caution { border-color: #d9a73f; background: #fdf3e0; color: #8a6116; }
.rating-chip.banned.active, span.rating-chip.banned { border-color: #b53a20; background: var(--accent-soft); color: var(--accent-dark); }

.person-notes {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  background: var(--bg);
  resize: vertical;
}

.person-notes:focus { outline: none; border-color: var(--accent); background: #fff; }

/* ---------- pricing menu ---------- */

.menu-list { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }

.menu-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}

.menu-len strong { font-family: "Fraunces", Georgia, serif; font-size: 19px; color: var(--accent); }
.menu-desc { display: flex; flex-direction: column; }
.menu-desc span { color: var(--ink-soft); font-size: 13.5px; }
.menu-price { font-family: "Fraunces", Georgia, serif; font-size: 21px; font-weight: 700; }

@media (max-width: 480px) {
  .menu-row { grid-template-columns: 70px 1fr auto; padding: 12px 14px; gap: 10px; }
  .menu-desc span { display: none; }
}
