/* ==========================================================================
   J21 — Design tokens
   ========================================================================== */

:root {
  --ink: #1B2430;
  --paper: #FAFAF8;
  --paper-raised: #FFFFFF;
  --sage: #5F6F52;
  --sage-dark: #445039;
  --gold: #B08D57;
  --stone: #8A8578;
  --line: #E4E1D8;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 720px;
  --radius: 4px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 920px;
}

.logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--sage);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: var(--stone);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--stone);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--sage-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--stone);
}

/* ==========================================================================
   Section shell
   ========================================================================== */

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.contact-section {
  padding-top: 0;
  border-bottom: none;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  padding: 36px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(27, 36, 48, 0.04);
}

.contact-copy p:last-child {
  color: var(--stone);
  margin-top: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
}

.contact-field span {
  font-size: 14px;
  color: var(--ink);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 111, 82, 0.12);
}

.contact-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--stone);
}

.contact-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
}

.contact-form .btn {
  width: fit-content;
  border: none;
  cursor: pointer;
}

/* Honeypot — invisible to real visitors, present for bots that fill in
   every field. Positioned off-screen rather than display:none, since some
   bots specifically skip hidden-type/display:none fields. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-status.success {
  background: rgba(95, 111, 82, 0.1);
  border: 1px solid var(--sage);
  color: var(--sage-dark);
}

.form-status.error {
  background: rgba(176, 141, 87, 0.1);
  border: 1px solid var(--gold);
  color: var(--ink);
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ==========================================================================
   Gospel section
   ========================================================================== */

.gospel-lede {
  font-size: 19px;
  color: var(--ink);
  max-width: 58ch;
  margin-bottom: 36px;
}

.gospel-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.gospel-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.gospel-step-word {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--sage-dark);
  padding-top: 2px;
}

.gospel-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.gospel-step p {
  color: var(--stone);
  font-size: 15px;
}

.gospel-cta {
  margin-top: 32px;
}

/* ==========================================================================
   Quiz
   ========================================================================== */

.quiz-question {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.quiz-question:last-child {
  border-bottom: 1px solid var(--line);
}

.quiz-question-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 14px;
}

.quiz-question-explanation {
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
  margin: -6px 0 14px;
}

.quiz-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-answer-explanation {
  font-style: italic;
  font-weight: bold;
  font-size: 14px;
  margin-top: 14px;
}

.quiz-option {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--stone);
}

.quiz-option.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  flex-wrap: wrap;
}

.quiz-submit-row .btn:disabled {
  background: var(--line);
  color: var(--stone);
  cursor: not-allowed;
}

.quiz-progress {
  font-size: 13px;
  color: var(--stone);
}

.quiz-results-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.quiz-results p {
  color: var(--stone);
  font-size: 15px;
}

.quiz-results-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ==========================================================================
   Quiz results modal
   ========================================================================== */

.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 48, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.quiz-modal {
  background: var(--paper-raised);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(27, 36, 48, 0.3);
}

.quiz-modal:focus {
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Verse of the day
   ========================================================================== */

.verse {
  background: var(--paper-raised);
}

.verse-card {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 28px;
}

.verse-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
}

.verse-ref {
  font-size: 14px;
  color: var(--stone);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Resources
   ========================================================================== */

.resource-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.resource-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.15s ease;
}

.resource-item:hover {
  padding-left: 6px;
}

.resource-item-title {
  font-size: 16px;
  font-weight: 500;
}

.resource-item-desc {
  font-size: 14px;
  color: var(--stone);
  margin-top: 4px;
}

.resource-item-arrow {
  color: var(--stone);
  font-size: 14px;
  white-space: nowrap;
}

/* ==========================================================================
   About / community strip
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-grid p {
  color: var(--stone);
  margin-bottom: 14px;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

.about-fact {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}

.about-fact + .about-fact {
  margin-top: 24px;
}

.about-fact-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 2px;
}

.about-fact-label {
  font-size: 14px;
  color: var(--stone);
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.closing {
  text-align: center;
  padding: 88px 0;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  max-width: 22ch;
  margin: 0 auto 16px;
}

.closing p {
  color: var(--stone);
  margin-bottom: 28px;
}

.closing .btn {
  padding: 13px 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.site-footer .wrap {
  max-width: 920px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--stone);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 56px 0;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .gospel-step {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .resource-item {
    flex-direction: column;
    gap: 4px;
  }

  .quiz-option {
    min-width: 100%;
  }

  .site-footer .wrap {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}