/* ============================================================
   Gospel-Centered Discipleship — shared lesson stylesheet
   Tufte-inspired: clean serif reading, generous margins,
   quiet accents, print-friendly.
   ============================================================ */
:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #7a5c3e;      /* warm leather brown */
  --accent-soft: #f4efe8;
  --paper: #ffffff;
  --rule: #e2ddd5;
  --quote: #4a4a4a;
  --good: #3d6b4f;
  --warn: #8a3a2e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}
/* ---------- header ---------- */
header.course {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
}
header.course .kicker {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
header.course h1 { font-size: 1.9rem; margin: 0 0 0.4rem; line-height: 1.2; }
header.course .meta {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
/* ---------- typography ---------- */
h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.12rem; margin: 1.9rem 0 0.6rem; }
p { margin: 0 0 1.1rem; }
strong { font-weight: 700; }
em { font-style: italic; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(122,92,62,.4); }
a:hover { border-bottom-color: var(--accent); }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }
small { color: var(--muted); }
blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.3rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--quote);
  font-style: italic;
}
blockquote p { margin: 0 0 0.5rem; }
blockquote p:last-child { margin: 0; }
figure { margin: 1.75rem 0; }
figcaption {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }
/* ---------- tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 1.8rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
td:first-child { white-space: nowrap; color: var(--muted); }
/* ---------- definition lists ---------- */
dl { margin: 0 0 1.4rem; }
dt { font-weight: 700; margin-top: 1rem; }
dd {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
  border-left: 1px solid var(--rule);
  color: var(--quote);
}
/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 0.85rem 1.15rem;
  border-radius: 3px;
  margin: 1.5rem 0;
}
.callout .callout-title {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); background: #faf3f1; }
.callout.warn .callout-title { color: var(--warn); }
.callout.good { border-left-color: var(--good); background: #f2f7f3; }
.callout.good .callout-title { color: var(--good); }
/* ---------- practice / quiz ---------- */
.practice {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.15rem 1.35rem;
  margin: 1.8rem 0;
}
.practice .practice-title {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.practice .practice-title::before { content: "✦ "; }
.quiz {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.15rem 1.35rem;
  margin: 1.4rem 0;
}
.quiz .quiz-q {
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.quiz .quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #faf8f4;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  margin: 0.3rem 0;
  cursor: pointer;
  transition: background 0.12s ease;
}
.quiz .quiz-opt:hover { background: var(--accent-soft); }
.quiz .quiz-opt.correct { background: #e2efe5; border-color: var(--good); color: #2c5438; }
.quiz .quiz-opt.wrong { background: #f7e4e0; border-color: var(--warn); color: #7c2f24; }
.quiz .quiz-feedback { display: none; margin-top: 0.6rem; font-size: 0.95rem; }
.quiz .quiz-feedback.show { display: block; }
.quiz .quiz-feedback .why { color: var(--muted); font-size: 0.88rem; }
/* ---------- scripture ---------- */
.scr {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}
/* ---------- footer ---------- */
footer.course {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}
footer.course .next { font-size: 0.95rem; margin-bottom: 0.6rem; }
/* ---------- key terms chip ---------- */
.chips { margin: 0.4rem 0 1.2rem; }
.chip {
  display: inline-block;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.16rem 0.7rem;
  margin: 0.2rem 0.25rem 0.2rem 0;
}
/* ---------- print ---------- */
@media print {
  body { font-size: 11.5pt; max-width: none; padding: 1.5cm; }
  .quiz .quiz-opt { border: 1px solid #ccc; }
  a { border: 0; color: var(--ink); }
  .no-print { display: none; }
}
code, pre {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}
pre {
  background: #f7f5f1;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
