:root {
  --ink: #12202a;
  --ink-soft: #3b4a55;
  --paper: #f6f1e8;
  --paper-2: #efe6d8;
  --card: #fffdf8;
  --line: #d9cbb3;
  --gold: #b68a2c;
  --gold-d: #8d6818;
  --teal: #1c4a48;
  --teal-2: #2a6b66;
  --ok: #2d6a4f;
  --bad: #9b2335;
  --shadow: 0 18px 40px rgba(18, 32, 42, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 72px 7vw 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.slide.dark {
  background: linear-gradient(160deg, #0e1a22 0%, #16333a 100%);
  color: #f4ead8;
}
.slide.dark .kicker, .slide.dark .muted { color: #cbb991; }
.slide.alt { background: var(--paper-2); }
.inner { max-width: 1080px; width: 100%; margin: 0 auto; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; margin-bottom: 18px; }
h3 { font-size: 26px; margin-bottom: 8px; }
p { font-size: 18px; }
.muted { color: var(--ink-soft); }
.lede { font-size: 21px; max-width: 42rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.g3fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4fixed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.follow { margin-top: 36px; }
.follow-lg { margin-top: 42px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.slide.dark .card {
  background: rgba(255,253,248,0.07);
  border-color: rgba(255,255,255,0.12);
  box-shadow: none;
}
.card h3 { font-size: 22px; }
.card p, .card li { font-size: 15.5px; color: var(--ink-soft); }
.slide.dark .card p, .slide.dark .card li { color: #e6dcc6; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  background: #e7efe9;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.gold-rule { width: 56px; height: 2px; background: var(--gold); margin: 18px 0 22px; }
ul.clean { padding-left: 18px; }
ul.clean li { margin: 6px 0; }
.qbox {
  background: var(--card);
  border: 1px dashed var(--gold);
  border-radius: 16px;
  padding: 18px 20px;
}
.qbox label { display: block; font-weight: 600; margin-bottom: 8px; }
textarea, input[type="text"], input[type="password"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
textarea { min-height: 84px; }
.slide.workshop {
  justify-content: flex-start;
  padding-top: 96px;
  padding-bottom: 72px;
}
.slide.workshop h2 { margin-bottom: 10px; }
.prompt-flow { margin-top: 18px; }
.prompt-rail {
  list-style: none;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin: 0 0 14px;
  scrollbar-width: thin;
}
.prompt-rail li { flex: 1 0 auto; min-width: 0; }
.prompt-rail button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.prompt-rail .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--gold-d);
  font-size: 12px;
  font-weight: 700;
}
.prompt-rail button.active {
  color: #f6f1e8;
  background: var(--teal);
  border-color: var(--teal);
}
.prompt-rail button.active .n { background: #e2c36b; color: #12202a; }
.prompt-rail button.filled:not(.active) { border-color: var(--gold); }
.prompt-rail button.filled:not(.active) .n { background: var(--gold); color: #fffdf8; }
.prompt-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: var(--shadow);
}
.prompt-index {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-d);
  margin-bottom: 8px;
}
.prompt-stage label {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}
.prompt-hint {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 14px;
  max-width: 40rem;
}
.prompt-stage textarea {
  min-height: 180px;
  font-size: 17px;
  line-height: 1.5;
}
.prompt-stage input[type="text"] {
  font-size: 18px;
  padding: 14px 16px;
}
.prompt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.prompt-status {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-d);
}
.prompt-nav button {
  font: inherit;
  font-weight: 700;
  min-width: 108px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  cursor: pointer;
}
.prompt-next {
  background: var(--teal);
  color: #f6f1e8;
  border-color: var(--teal);
}
.prompt-nav button:disabled {
  opacity: 0.38;
  cursor: default;
}
.choices { display: grid; gap: 10px; margin-top: 12px; }
.choice {
  text-align: left;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: 0.15s ease;
}
.choice:hover { border-color: var(--teal); }
.choice.correct { background: #e8f5ee; border-color: var(--ok); }
.choice.wrong { background: #fdecee; border-color: var(--bad); }
.choice:disabled { cursor: default; }
.feedback { margin-top: 10px; font-weight: 600; min-height: 1.4em; }
.nav {
  position: fixed; right: 18px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 20;
}
.nav a {
  width: 9px; height: 9px; border-radius: 50%;
  background: #c9b89a; opacity: 0.55; text-indent: -9999px;
}
.nav a.active, .nav a:hover { background: var(--gold-d); opacity: 1; }
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px;
  background: rgba(246,241,232,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  gap: 16px;
}
.topbar form { display: inline; }
.topbar button.linkish, a.linkish {
  background: none; border: 0; font: inherit; font-weight: 600;
  color: var(--teal); cursor: pointer; text-decoration: none;
}
.progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--gold);
  width: 0; z-index: 40;
}
.pill { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.save-state { font-weight: 600; color: var(--gold-d); min-width: 90px; text-align: right; }
footer.slide-foot {
  position: absolute; bottom: 22px; left: 7vw; right: 7vw;
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8a7b63;
}
.slide.dark footer.slide-foot { color: #b7aa8c; }
.big-num { font-family: "Cormorant Garamond", serif; font-size: 42px; color: var(--gold-d); line-height: 1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare .card:first-child { border-top: 4px solid var(--teal); }
.compare .card:last-child { border-top: 4px solid var(--gold); }
.scoreboard { font-size: 15px; margin-top: 8px; color: var(--gold-d); font-weight: 700; }
.tiny { font-size: 13px; color: var(--ink-soft); }
.point {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 46rem;
  margin-top: 40px;
}
.slide.dark .point { color: #f4ead8; }
.quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px; font-style: italic; line-height: 1.25; max-width: 36rem;
}
.close-band {
  padding-top: 64px;
  padding-bottom: 64px;
}
.slide-credit {
  margin-top: 0;
  opacity: 0.8;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(160deg, #0e1a22 0%, #16333a 100%);
  color: #f4ead8;
}
.auth-card {
  width: min(420px, 100%);
  background: #fffdf8;
  color: var(--ink);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 36px; margin-bottom: 8px; }
.auth-card p { color: var(--ink-soft); margin-bottom: 22px; }
.auth-card label { display: block; font-weight: 600; margin: 12px 0 6px; }
.auth-card button {
  margin-top: 18px; width: 100%;
  background: var(--teal); color: #f6f1e8; border: 0;
  padding: 12px 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
}
.err { color: var(--bad); font-weight: 600; min-height: 1.3em; margin-top: 10px; }
.admin-page { padding: 80px 6vw 60px; }
.admin-page table { width: 100%; border-collapse: collapse; background: var(--card); }
.admin-page th, .admin-page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.admin-page th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-d); }
.note-block { margin: 10px 0 18px; padding: 14px 16px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); }
.note-block strong { display: block; margin-bottom: 4px; }
@media (max-width: 760px) {
  .slide { padding: 88px 22px 96px; }
  .pair, .g2, .g3, .g4, .g3fixed, .g4fixed { grid-template-columns: 1fr; }
  .nav { display: none; }
  h1 { font-size: 38px; }
  .prompt-rail .t { display: none; }
  .prompt-rail button { padding: 8px 10px; min-width: 44px; }
  .prompt-stage { padding: 18px 16px; }
  .prompt-stage textarea { min-height: 150px; }
  .prompt-nav button { min-width: 88px; }
}
