/* Gospel-Shaped Marriage course — shared lesson stylesheet.
   Tufte-ish: generous margins, restrained type, scripture set apart. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #444;
  --ink-faint: #6b6b6b;
  --paper: #fbfaf7;
  --rule: #d9d4c9;
  --accent: #7a1f1f;      /* deep oxblood, the one accent color */
  --accent-soft: #f3ecec;
  --gold: #8a6a1f;
  --scripture-bg: #f4f1ea;
  --highlight: #fff3c4;
  --green: #2f5d3a;
  --red: #8a2222;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Palatino, Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout ---------------------------------------------------------- */

.sheet {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.lesson-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.crumb {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.chapter-mark {
  display: inline-block;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* Reading plan callout ------------------------------------------- */

.reading {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.2rem;
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
  border-radius: 0 4px 4px 0;
}
.reading strong {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

/* Body type ------------------------------------------------------ */

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.8rem;
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-soft);
}

p { margin: 0 0 1.2rem; }

p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

a { color: var(--accent); }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.5rem; }

/* Scripture quotations ------------------------------------------- */

blockquote.scripture {
  background: var(--scripture-bg);
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-radius: 0 4px 4px 0;
  font-size: 1.02rem;
  line-height: 1.55;
}
blockquote.scripture p { margin: 0 0 0.6rem; }
blockquote.scripture p:last-child { margin: 0; }
blockquote.scripture .ref {
  display: block;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
}

/* Pull quotes ---------------------------------------------------- */

.pullquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}
.pullquote cite {
  display: block;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* Inline emphasis ------------------------------------------------ */

strong { font-weight: 600; }
em { font-style: italic; }

mark { background: var(--highlight); padding: 0 0.15em; border-radius: 2px; }

/* Boxes ---------------------------------------------------------- */

.box {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
  background: #fff;
}
.box h3 {
  margin-top: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

.box.takeaway { border-color: var(--accent); background: var(--accent-soft); }
.box.practice { border-color: var(--green); }
.box.practice h3 { color: var(--green); }
.box.warning { border-color: var(--gold); background: #faf6ec; }
.box.warning h3 { color: var(--gold); }

/* Quiz ----------------------------------------------------------- */

.quiz {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  margin: 2.5rem 0;
  background: #fff;
}
.quiz h3 {
  margin: 0 0 1rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}
.quiz .question { margin-bottom: 1.5rem; }
.quiz .question:last-child { margin-bottom: 0; }
.quiz .q-text { font-weight: 600; margin-bottom: 0.8rem; }
.quiz .options { list-style: none; padding: 0; margin: 0; }
.quiz .options li {
  margin: 0 0 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-size: 0.98rem;
}
.quiz .options li:hover { background: var(--accent-soft); }
.quiz .options li.correct {
  background: #e8f0e8;
  border-color: var(--green);
  font-weight: 600;
}
.quiz .options li.incorrect {
  background: #f6e6e6;
  border-color: var(--red);
}
.quiz .options li.selected { border-color: var(--accent); }
.quiz .feedback {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
}
.quiz .feedback.shown { display: block; }
.quiz .score {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* Reflection ----------------------------------------------------- */

.reflection {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  margin: 2.5rem 0;
}
.reflection h3 {
  margin: 0 0 0.3rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-style: normal;
}
.reflection .lead-line { color: var(--ink-soft); font-style: italic; margin-bottom: 1rem; }
.reflection ol { padding-left: 1.3rem; }
.reflection ol li { margin-bottom: 0.9rem; }
.reflection .for-h, .reflection .for-w {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

/* Mentor session (three-way: mentor + couple) ------------------- */

.mentor {
  background: #fff;
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin: 2.5rem 0;
}
.mentor h3 {
  margin: 0 0 0.4rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}
.mentor .lead-line { color: var(--ink-soft); font-style: italic; margin-bottom: 1rem; }
.mentor ol { padding-left: 1.3rem; }
.mentor ol li { margin-bottom: 1.1rem; }
.mentor ol li .cue {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

/* Together / share ---------------------------------------------- */

.together {
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin: 2.5rem 0;
  border: 1px solid var(--accent);
}
.together h3 {
  margin: 0 0 0.5rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

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

.lesson-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}
.lesson-nav .next { margin-left: auto; }
.lesson-nav a { color: var(--accent); text-decoration: none; }
.lesson-nav a:hover { text-decoration: underline; }

.ask {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Definition references inline ---------------------------------- */
.gloss {
  border-bottom: 1px dotted var(--ink-faint);
  cursor: help;
}

/* Reference pages (mission, glossary, resources, schema) -------- */

body.home .sheet { max-width: 52rem; }

/* Glossary ------------------------------------------------------ */

dl.glossary { margin: 1.5rem 0 2rem; }
dl.glossary dt {
  font-weight: 600;
  font-style: italic;
  margin-top: 1.4rem;
  color: var(--accent);
}
dl.glossary dt:first-child { margin-top: 0; }
dl.glossary dd {
  margin-left: 0;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
dl.glossary dd p.avoid {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0.4rem 0 0;
  font-style: italic;
}
dl.glossary dd p.avoid strong { color: var(--gold); font-style: normal; }

/* Code: schema tree + inline code ------------------------------- */

pre.tree {
  background: var(--scripture-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-x: auto;
  white-space: pre;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--scripture-bg);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  color: var(--ink-soft);
}
pre.tree code { background: none; padding: 0; font-size: inherit; }

/* Print --------------------------------------------------------- */
@media print {
  body { background: #fff; font-size: 11.5pt; }
  .sheet { max-width: none; padding: 0; }
  .quiz .options li { cursor: default; }
  .ask, .lesson-nav { display: none; }
  a { color: var(--ink); text-decoration: none; }
  blockquote.scripture, .box, .reflection, .together { break-inside: avoid; }
}
