/* Ground Zero — design system. Warm, modern, personal. Mobile-first at 375px. */

:root {
  --bg: #FBF8F3;
  --ink: #1C1B18;
  --ink-soft: #5C5A53;
  --ink-faint: #8F8C83;
  --accent: #C2542B;
  --accent-soft: #F8E9E1;
  --pause: #14342B;
  --pause-ink: #EAF4EF;
  --good: #2F6B4F;
  --good-soft: #E6F0EA;
  --bad: #A4432F;
  --bad-soft: #F7E7E2;
  --card: #FFFFFF;
  --line: #E9E4DA;
  --max: 680px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

main { max-width: var(--max); margin: 0 auto; padding: 32px 22px 96px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
p { margin-bottom: 16px; }
a { color: var(--accent); }

/* ---------- Landing letter ---------- */
.letter { font-size: 19px; padding-top: 28px; }
.letter h1 { font-size: clamp(30px, 7vw, 44px); font-weight: 800; margin-bottom: 24px; }
.letter p { color: var(--ink-soft); margin-bottom: 20px; }
.letter p strong, .letter p b { color: var(--ink); }
.letter .sign { color: var(--ink); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  appearance: none; border: none; cursor: pointer;
  background: var(--ink); color: #fff;
  font-size: 16px; font-weight: 700; font-family: inherit;
  padding: 16px 28px; border-radius: 999px;
  text-decoration: none; text-align: center;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); }
.btn-quiet { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }

/* ---------- Quiz ---------- */
.quiz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; margin: 18px 0;
}
.quiz-card h2 { font-size: 21px; font-weight: 800; margin-bottom: 18px; }
.option-row {
  display: block; width: 100%;
  min-height: 56px; padding: 14px 18px; margin-bottom: 10px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 16px; font-family: inherit; color: var(--ink);
  text-align: left; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.option-row:hover { border-color: var(--ink-faint); }
.option-row.selected { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }

.progress-dots { display: flex; gap: 8px; justify-content: center; margin: 18px 0 4px; }
.progress-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.progress-dots span.on { background: var(--accent); }

.route-result {
  background: var(--pause); color: var(--pause-ink);
  border-radius: var(--radius); padding: 30px 24px; margin: 18px 0;
}
.route-result h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.route-result p { opacity: 0.92; margin-bottom: 18px; }
.route-result .btn { background: var(--pause-ink); color: var(--pause); }

/* ---------- Chapter pages ---------- */
.chapter-header { padding: 22px 0 10px; }
.chapter-header .num {
  font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; display: block;
}
.chapter-header h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; margin: 8px 0 10px; }
.chapter-header .promise { color: var(--ink-soft); font-size: 17px; }

.story { padding: 14px 0; }
.story p { color: var(--ink-soft); }
.story p strong, .story p b { color: var(--ink); }
.story .first { color: var(--ink); font-size: 19px; }

/* The Question: a full-stop moment */
.question-pause {
  background: var(--pause); color: var(--pause-ink);
  border-radius: var(--radius);
  padding: 48px 26px; margin: 34px -6px;
  text-align: center;
}
.question-pause .hint {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 22px;
}
.question-pause .big-question {
  font-size: clamp(26px, 6.5vw, 40px); font-weight: 800; line-height: 1.25;
  margin-bottom: 30px;
}
.question-pause .reveal-gate { margin-top: 6px; }
.question-pause.answered { padding-bottom: 36px; }

.principle {
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 28px 24px; margin: 26px 0;
}
.principle .label {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.principle .lead { font-size: 21px; font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.principle p { color: var(--ink-soft); margin-bottom: 0; }

.practice {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; margin: 26px 0;
}
.practice .label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.practice .label .tag {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--good); font-weight: 700;
}
.practice .label .time {
  font-size: 12px; font-weight: 700; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.practice ol { margin: 0 0 0 22px; }
.practice li { margin-bottom: 10px; color: var(--ink-soft); }
.practice li strong { color: var(--ink); }

/* ---------- Calibration checks ---------- */
.checks {
  border-top: 2px solid var(--ink); margin-top: 40px; padding-top: 26px;
}
.checks > .label { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.checks > .sublabel { color: var(--ink-faint); font-size: 15px; margin-bottom: 18px; }
.check { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin-bottom: 16px; }
.check .prompt { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.confidence { display: flex; gap: 10px; margin: 14px 0 4px; }
.confidence button {
  flex: 1; min-height: 48px; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--ink-soft);
}
.confidence button.selected { border-color: var(--ink); color: var(--ink); background: #fff; }
.check .feedback { border-radius: 12px; padding: 16px 18px; margin-top: 14px; font-size: 15.5px; }
.check .feedback.good { background: var(--good-soft); color: var(--good); }
.check .feedback.bad { background: var(--bad-soft); color: var(--bad); }
.check .feedback p { margin: 6px 0 0; color: var(--ink-soft); }
.checks .done-note { background: var(--good-soft); color: var(--good); font-weight: 700; border-radius: 12px; padding: 16px 18px; }

/* ---------- Your Shape ---------- */
.shape {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; margin: 20px 0;
}
.shape h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.shape .persona { color: var(--ink-faint); font-size: 14px; margin-bottom: 16px; }
.shape-row { margin-bottom: 12px; }
.shape-row .dim { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.shape-row .dim .val { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.shape-row .bar { height: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.shape-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.shape .guidance { margin-top: 16px; padding: 14px 16px; background: var(--accent-soft); border-radius: 12px; font-size: 15px; }
.shape .guidance a { font-weight: 700; }

/* ---------- Return question (spaced retrieval) ---------- */
.return-q {
  background: var(--pause); color: var(--pause-ink);
  border-radius: var(--radius); padding: 28px 24px; margin: 20px 0;
}
.return-q .label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-bottom: 12px; }
.return-q .prompt { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.return-q .option-row { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: var(--pause-ink); }
.return-q .option-row.selected { background: rgba(255,255,255,0.16); border-color: var(--pause-ink); }
.return-q .confidence button { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); color: var(--pause-ink); }
.return-q .confidence button.selected { border-color: var(--pause-ink); color: var(--pause-ink); }
.return-q .feedback.good { background: rgba(255,255,255,0.12); color: var(--pause-ink); }
.return-q .feedback.bad { background: rgba(0,0,0,0.25); color: var(--pause-ink); }
.return-q .feedback p { color: var(--pause-ink); opacity: 0.85; }

/* ---------- Chapter nav ---------- */
.chapter-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  font-size: 15px; font-weight: 700;
}
.chapter-nav a { text-decoration: none; }
.chapter-nav .home { color: var(--ink-faint); }

/* ---------- Shelf ---------- */
.shelf-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; margin-bottom: 18px;
}
.shelf-item h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.shelf-item pre {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; font-size: 13.5px; line-height: 1.6; overflow-x: auto;
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.shelf-item ul { margin-left: 20px; color: var(--ink-soft); }
.shelf-item li { margin-bottom: 8px; }
.shelf-item dt { font-weight: 800; margin-top: 12px; }
.shelf-item dd { color: var(--ink-soft); margin-left: 0; }
.copy-btn { margin-top: 12px; }

/* ---------- Utility ---------- */
[hidden] { display: none !important; }
.center { text-align: center; }
