:root {
  --bg: #eef4f5;
  --paper: #fbfefe;
  --ink: #1e2a2f;
  --muted: #4b6168;
  --accent: #2f6f78;
  --accent-dark: #214f56;
  --line: #c7d8dc;
  --hero: linear-gradient(135deg, rgba(47, 111, 120, 0.12), rgba(125, 155, 146, 0.12));
  --shadow: 0 18px 40px rgba(27, 51, 56, 0.1);
  --surface-tint: rgba(255, 255, 255, 0.82);
  --success: #6d8f62;
  --warning: #a86b5b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Aptos", "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 120, 0.11), transparent 34%),
    linear-gradient(180deg, #f7fbfb 0%, var(--bg) 100%);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
}

.brand {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero {
  padding: 2rem 0 3rem;
}

.hero-panel {
  background: var(--hero), var(--paper);
  border: 1px solid rgba(47, 111, 120, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  padding: 4rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(47, 111, 120, 0.12);
  color: var(--accent-dark);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-copy p:first-of-type {
  font-size: 1.14rem;
  color: var(--ink);
  max-width: 58ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f7fcfd;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent-dark);
}

.hero-card {
  align-self: center;
  background: rgba(251, 254, 254, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 0.6rem;
}

main section {
  padding: 4rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 1rem;
}

.section-box {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
}

.soft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 0;
  border: 0;
}

.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.topic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.topic strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.faith-panel {
  background: linear-gradient(135deg, rgba(33, 79, 86, 0.96), rgba(57, 95, 101, 0.96));
  color: #eef8f8;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.faith-panel p {
  color: rgba(238, 248, 248, 0.88);
  max-width: 68ch;
}

.quote {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(238, 248, 248, 0.35);
  font-size: 1.1rem;
  color: #f5fdfd;
}

.closing {
  text-align: center;
  padding-bottom: 5rem;
}

.closing-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow);
}

.closing-panel p {
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero .hero-panel {
  padding: 2.25rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  max-width: 22ch;
}

.prose {
  max-width: 72ch;
}

.prose p {
  font-size: 1.1rem;
}

.story-block {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.perspective-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem;
}

.perspective-card h3 {
  font-size: 1.1rem;
}

.perspective-card p:last-child,
.section-box p:last-child,
.story-block p:last-child,
.faith-panel p:last-child,
.hero-card ul:last-child {
  margin-bottom: 0;
}

.quiz-panel {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.quiz-note {
  max-width: 68ch;
}

.quiz-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quiz-question {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.quiz-question.is-correct {
  border-color: var(--success);
}

.quiz-question.is-incorrect {
  border-color: var(--warning);
}

.quiz-question legend {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.quiz-options {
  display: grid;
  gap: 0.55rem;
}

.quiz-options label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.quiz-result {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f9fdfd;
}

.quiz-result strong {
  color: var(--ink);
}

.quiz-feedback {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.worksheet-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.worksheet-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
}

.worksheet-lines {
  margin-top: 0.9rem;
}

.worksheet-line {
  display: block;
  height: 1.4rem;
  border-bottom: 1px solid #bfd1d5;
  margin-bottom: 0.7rem;
}

.print-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

@media print {
  body {
    background: #ffffff;
  }

  .topbar,
  .print-actions,
  .button-row,
  footer {
    display: none;
  }

  .hero-panel,
  .story-block,
  .worksheet-item,
  .quiz-panel,
  .closing-panel,
  .faith-panel,
  .section-box {
    box-shadow: none;
    background: #ffffff;
  }

  main section,
  .page-hero {
    padding: 1rem 0;
  }
}

footer {
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 860px) {
  .hero-grid,
  .section-grid,
  .topics,
  .perspective-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .faith-panel,
  .section-box,
  .page-hero .hero-panel,
  .story-block {
    padding: 1.5rem;
  }

  .section-intro {
    position: static;
  }

  h1 {
    max-width: 100%;
  }
}
