/* Shared look for interactive lessons. Each lesson can override the color
   variables in a <style> block to get its own mood. */
:root {
  --bg-0: #171310;
  --bg-1: #221c17;
  --bg-2: #2c241d;
  --line: #463a2e;
  --text: #ece2d0;
  --text-dim: #b7a892;
  --accent: #c97a3d;
  --accent-bright: #e8a15c;
  --accent-glow: rgba(201, 122, 61, 0.35);
  --wrong: #a94b3c;
  --ok: #d7a24a;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, var(--accent-glow), transparent 60%),
    var(--bg-0);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  min-height: 100vh;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 28px 18px 64px; }

.plaque { text-align: center; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.plaque .eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; color: var(--text-dim); margin-bottom: 8px; }
.plaque h1 { font-size: 28px; margin: 0 0 6px; color: var(--accent-bright); }
.plaque p { font-family: var(--sans); color: var(--text-dim); font-size: 14.5px; margin: 0; }

.placeholder-banner {
  font-family: var(--sans); font-size: 13px; text-align: center;
  border: 1px dashed var(--accent); color: var(--accent-bright);
  padding: 8px 12px; border-radius: 3px; margin-bottom: 18px;
}
.ph { border-bottom: 1px dashed var(--accent); color: var(--text-dim); font-style: italic; }

.rail { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 30px; flex-wrap: wrap; }
.rail button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--sans); color: var(--text-dim); font-size: 11px; }
.rail .dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line); transition: all 0.25s ease; }
.rail button.visited .dot { border-color: var(--accent); background: var(--accent); }
.rail button.active .dot { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 0 4px var(--accent-glow); }
.rail button.active span { color: var(--accent-bright); }
.rail .seg { width: 26px; height: 1px; background: var(--line); }
.rail .seg.filled { background: var(--accent); }

.stop { display: none; }
.stop.active { display: block; animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stop h2 { font-size: 21px; margin: 0 0 4px; }
.stop .sub { font-family: var(--sans); color: var(--accent-bright); font-size: 12.5px; letter-spacing: 0.06em; margin-bottom: 16px; }

.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line); border-radius: 3px;
  padding: 20px; margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.prompt-list { font-family: var(--sans); list-style: none; padding: 0; margin: 0; }
.prompt-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; gap: 10px; }
.prompt-list li:last-child { border-bottom: none; }
.prompt-list li .n { color: var(--accent-bright); font-weight: 700; font-family: Georgia, serif; }
p.read { font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
p.read:last-child { margin-bottom: 0; }
p.read b { color: var(--accent-bright); }
.small { font-family: var(--sans); font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; font-family: var(--sans); }
.term { background: var(--bg-1); border: 1px solid var(--line); border-radius: 3px; padding: 12px; }
.term .name { font-weight: 700; font-size: 13.5px; color: var(--accent-bright); margin-bottom: 4px; }
.term .desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }

.btn {
  font-family: var(--sans); background: var(--accent); color: #1c1310; border: none;
  padding: 11px 22px; border-radius: 2px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--accent-bright); }
.btn.ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { color: var(--text); border-color: var(--text-dim); }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.nav-row { display: flex; justify-content: space-between; margin-top: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.q { font-family: var(--sans); }
.q .qtext { font-size: 15px; margin-bottom: 10px; font-weight: 600; }
.opt {
  display: block; width: 100%; text-align: left; background: var(--bg-1);
  border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: 2px;
  margin-bottom: 8px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.opt:hover { border-color: var(--text-dim); }
.opt.correct { border-color: var(--ok); background: rgba(215, 162, 74, 0.15); }
.opt.wrong { border-color: var(--wrong); background: rgba(169, 75, 60, 0.15); }
.opt:disabled { cursor: default; }
.feedback { font-size: 13px; margin-top: 4px; color: var(--text-dim); }
.feedback.correct { color: var(--ok); }
.feedback.wrong { color: var(--wrong); }

.done-note {
  font-family: var(--sans); margin-top: 16px; padding: 14px; border: 1px solid var(--ok);
  border-radius: 3px; background: rgba(215, 162, 74, 0.08); font-size: 13.5px; text-align: center;
}
