:root {
  /* Colours */
  --quiet-ivory: #F7F3EA;
  --deep-ink: #28312F;
  --olive-branch: #68745C;
  --candle-gold: #C3A45B;
  --advent-violet: #695C73;
  --soft-stone: #E4DED2;
  --white: #FFFFFF;

  /* Text */
  --body-text: #3F4946;
  --muted-text: #59635F;
  --font-small: 12px;
  --font-body: 16px;
  --font-page-title: 40px;

  /* Widths */
  --page-width: 1120px;
  --reading-width: 760px;
  --adventure-text-width: 960px;
  --journey-width: 1500px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;

  /* Other */
  --header-height: 76px;
  --pill-radius: 999px;
  --card-radius: 22px;
}


/* =========================================================
   RESET AND BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  display: flex;
  flex-direction: column;

  background: var(--quiet-ivory);
  color: var(--body-text);

  font-family: "Inter", Arial, sans-serif;
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

p {
  margin-bottom: var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1000;

  padding: var(--space-2) var(--space-3);

  background: var(--deep-ink);
  color: var(--white);

  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
  left: var(--space-3);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: relative;
  z-index: 10;

  border-bottom: 1px solid var(--soft-stone);

  background: rgba(247, 243, 234, 0.97);
}

.header-inner {
  width: min(calc(100% - 32px), var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-name {
  flex: 0 0 auto;

  color: var(--deep-ink);

  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header nav a {
  color: var(--deep-ink);

  font-size: var(--font-body);
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--candle-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
  color: var(--deep-ink);
}

h1 {
  margin-bottom: var(--space-4);

  font-size: var(--font-page-title);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

h2 {
  margin-bottom: var(--space-3);

  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

h3 {
  margin-bottom: var(--space-2);

  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 var(--space-3);

  color: var(--olive-branch);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted-text);

  font-size: 18px;
  line-height: 1.6;
}

.light-text {
  color: rgba(255, 255, 255, 0.86);
}


/* =========================================================
   HOMEPAGE HERO
========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: calc(100vh - var(--header-height));
  padding: var(--space-9) var(--space-3);

  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  content: "";

  position: absolute;
  z-index: 0;

  border-radius: var(--pill-radius);

  background: var(--candle-gold);
  opacity: 0.13;

  pointer-events: none;
  transform: translate(-16px, -10px);
}

.hero::before {
  top: 60px;
  right: max(72px, 8vw);

  width: 16px;
  height: 138px;
}

.hero::after {
  top: 98px;
  right: max(39px, calc(8vw - 33px));

  width: 82px;
  height: 16px;
}

.hero-content {
  position: relative;
  z-index: 1;

  width: min(100%, 920px);
  margin: 0 auto;

  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-5);

  font-size: clamp(58px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-introduction {
  max-width: 680px;
  margin: 0 auto var(--space-4);

  color: var(--muted-text);

  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-introduction + .hero-introduction {
  margin-top: -6px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button-group {
  margin-top: var(--space-5);

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button {
  min-height: 48px;
  padding: 12px 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid transparent;
  border-radius: var(--pill-radius);

  font-size: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid var(--candle-gold);
  outline-offset: 4px;
}

.button-primary {
  background: var(--olive-branch);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--deep-ink);
}

.button-secondary {
  border-color: var(--deep-ink);

  background: var(--soft-stone);
  color: var(--deep-ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--deep-ink);
  color: var(--quiet-ivory);
}


/* =========================================================
   GENERAL LAYOUT UTILITIES
========================================================= */

.page-width {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
}

.reading-width {
  width: min(calc(100% - 32px), var(--reading-width));
  margin: 0 auto;
}

.section {
  padding: var(--space-8) var(--space-3);
}

.section-stone {
  background: var(--soft-stone);
}

.section-violet {
  background: var(--advent-violet);
  color: var(--white);
}

.section-violet h1,
.section-violet h2,
.section-violet h3 {
  color: var(--white);
}

.section-heading {
  max-width: 700px;
  margin-bottom: var(--space-6);
}


/* =========================================================
   CARDS
========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  min-height: 250px;
  padding: var(--space-4);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid rgba(40, 49, 47, 0.11);
  border-radius: var(--card-radius);

  background: rgba(255, 255, 255, 0.55);
}

.card-number {
  width: 38px;
  height: 38px;
  margin-bottom: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--candle-gold);
  color: var(--deep-ink);

  font-weight: 700;
}

.card a {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


/* =========================================================
   QUOTATIONS
========================================================= */

blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-4) 28px;

  border-left: 5px solid var(--candle-gold);
  border-radius: 0 16px 16px 0;

  background: rgba(195, 164, 91, 0.12);

  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
}


/* =========================================================
   PRAYER SECTIONS
========================================================= */

.prayer-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 40px;
}

.gold-line {
  width: 70px;
  height: 4px;
  margin-bottom: 20px;

  background: var(--candle-gold);
}

.prayer-card {
  padding: 28px;

  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--card-radius);

  background: rgba(255, 255, 255, 0.09);
}


/* =========================================================
   FORMS
========================================================= */

form {
  margin-top: var(--space-5);
}

label {
  margin-bottom: var(--space-1);

  display: block;

  color: var(--deep-ink);

  font-size: var(--font-body);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  margin-bottom: var(--space-4);
  padding: 13px 14px;

  border: 1px solid #B9B5AB;
  border-radius: 10px;

  background: var(--white);
  color: var(--deep-ink);

  font-size: var(--font-body);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--olive-branch);
  outline: 3px solid rgba(195, 164, 91, 0.35);
  outline-offset: 2px;
}


/* =========================================================
   STANDARD READING PAGES
========================================================= */

.standard-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: min(calc(100% - 32px), var(--reading-width));
  min-height: 65vh;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.standard-page::before,
.standard-page::after {
  content: "";

  position: absolute;
  z-index: 0;

  border-radius: var(--pill-radius);

  background: var(--candle-gold);
  opacity: 0.13;

  pointer-events: none;
}

.standard-page::before {
  top: 30px;
  right: 64px;

  width: 14px;
  height: 118px;
}

.standard-page::after {
  top: 63px;
  right: 30px;

  width: 82px;
  height: 14px;
}

.standard-page > * {
  position: relative;
  z-index: 1;
}

.standard-page h1 {
  font-size: var(--font-page-title);
}


/* =========================================================
   BEGIN AND ADVENTURE PAGES
========================================================= */

.begin-page {
  width: 100%;
  max-width: none;
  padding: var(--space-6) 0 var(--space-8);
}

.begin-page .page-content {
  width: calc(100% - 96px);
  max-width: var(--journey-width);
  margin: 0 auto;

  text-align: center;
}

.begin-page h1 {
  max-width: 800px;
  margin: 0 auto var(--space-2);

  font-size: var(--font-page-title);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.begin-page .lead {
  max-width: 760px;
  margin: 0 auto var(--space-6);

  font-size: var(--font-body);
  line-height: 1.6;
}

.begin-options {
  width: 100%;

  display: grid;
  gap: var(--space-3);
}

.begin-page .begin-option {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: var(--space-3);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: var(--pill-radius);

  background: var(--olive-branch);
  color: var(--quiet-ivory);

  font-size: var(--font-body);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;

  cursor: pointer;

  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.begin-page .begin-option:hover,
.begin-page .begin-option:focus-visible {
  background: var(--deep-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 49, 47, 0.14);
}

.begin-page .begin-option:focus-visible {
  outline: 3px solid var(--candle-gold);
  outline-offset: 4px;
}

/* Main Begin page: four choices per row */
.standard-page.begin-page:not(.adventure-page) .begin-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Layer 2 pages: three choices per row */
.adventure-page .page-content {
  max-width: var(--journey-width);
}

.adventure-page h1 {
  max-width: 1250px;
  margin-bottom: var(--space-5);
}

.adventure-introduction {
  width: min(100%, var(--adventure-text-width));
  margin: 0 auto var(--space-5);

  text-align: left;
}

.adventure-introduction p {
  margin-bottom: var(--space-3);

  font-size: var(--font-body);
  line-height: 1.65;
}

.adventure-question {
  margin: var(--space-4) 0 var(--space-5);
  padding: 3px 0 3px var(--space-3);

  border-left: 4px solid var(--candle-gold);

  color: var(--deep-ink);

  font-size: var(--font-body);
  font-weight: 700;
  line-height: 1.55;
}

.exploration-heading {
  margin: 0 auto var(--space-4);

  color: var(--deep-ink);

  font-size: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
}

.standard-page.begin-page.adventure-page .begin-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standard-page.begin-page.adventure-page .begin-option {
  min-height: 84px;
}


/* =========================================================
   ALTERNATIVE ROUTES
========================================================= */

.curiosity-option {
  width: min(760px, 100%);
  margin: var(--space-6) auto 0;
  padding-top: var(--space-5);

  border-top: 1px solid var(--soft-stone);

  text-align: center;
}

.curiosity-option p {
  margin: 0 0 var(--space-4);

  color: var(--deep-ink);

  font-size: var(--font-body);
  font-weight: 500;
}

.standard-page.begin-page:not(.adventure-page) .curiosity-option .begin-option {
  min-height: 72px;
}

.adventure-page .curiosity-option .button-secondary {
  min-width: 280px;
}


/* =========================================================
   QUESTIONS PAGE
========================================================= */

.questions-page {
  width: 100%;
  max-width: none;
}

.questions-page .page-content {
  width: min(calc(100% - 32px), var(--reading-width));
  margin: 0 auto;
}

.questions-page h1 {
  margin-bottom: var(--space-4);

  font-size: var(--font-page-title);
  font-weight: 700;
  line-height: 1.15;
}

.questions-page .lead {
  margin-bottom: var(--space-4);

  color: var(--body-text);

  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

.questions-page .question-category + .question-category {
  margin-top: var(--space-6);
}

.questions-page .question-category h2 {
  margin: 0 0 var(--space-4);

  font-size: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.65;
}

.questions-page .question-list {
  border-top: 1px solid var(--soft-stone);
}

.questions-page .question-item {
  border-bottom: 1px solid var(--soft-stone);
}

.questions-page .question-item summary {
  padding: var(--space-4) 36px var(--space-4) 0;

  color: var(--deep-ink);

  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;

  cursor: pointer;
}

.questions-page .question-answer {
  padding: 0 0 var(--space-4);
}

.questions-page .question-answer p {
  margin-bottom: var(--space-4);

  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

.questions-page .question-answer p:last-child {
  margin-bottom: 0;
}

.questions-page .question-item[open] + .question-item {
  margin-top: var(--space-4);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 36px var(--space-3);

  background: var(--deep-ink);
  color: var(--quiet-ivory);
}

.footer-inner {
  width: min(100%, var(--page-width));
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.footer-inner strong {
  font-size: 14px;
}

.footer-inner p {
  margin: 4px 0 0;

  color: rgba(247, 243, 234, 0.72);

  font-size: var(--font-small);
}

.footer-inner a {
  color: inherit;
  text-decoration-color: var(--candle-gold);
  text-underline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {
  .begin-page .page-content {
    width: calc(100% - 48px);
  }

  .standard-page.begin-page:not(.adventure-page) .begin-options,
  .standard-page.begin-page.adventure-page .begin-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standard-page::before,
  .standard-page::after {
    display: none;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    min-height: var(--header-height);
    padding: var(--space-2) 0;

    flex-wrap: nowrap;
    gap: var(--space-2) var(--space-3);
  }

  .site-name {
    font-size: var(--font-body);
  }

  .site-header nav {
    gap: var(--space-3);
  }

  .site-header nav a {
    font-size: 14px;
  }

  .hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .hero::before {
    top: 34px;
    right: 48px;

    width: 13px;
    height: 108px;
  }

  .hero::after {
    top: 64px;
    right: 20px;

    width: 69px;
    height: 13px;
  }

  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .card-grid,
  .prayer-layout {
    grid-template-columns: 1fr;
  }

  .standard-page {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .begin-page {
    padding-top: var(--space-5);
    padding-bottom: var(--space-7);
  }

  .begin-page h1 {
    font-size: 34px;
  }

  .adventure-page h1 {
    margin-bottom: var(--space-4);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }
}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 620px) {
  .header-inner {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .site-header nav {
    margin-left: auto;

    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
  }

  .begin-page .page-content {
    width: calc(100% - 32px);
  }

  .standard-page.begin-page:not(.adventure-page) .begin-options,
  .standard-page.begin-page.adventure-page .begin-options {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .begin-page .begin-option,
  .adventure-page .begin-option {
    min-height: 0;
    padding: 18px var(--space-3);
  }

  .curiosity-option {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
  }

  .adventure-page .curiosity-option .button-secondary {
    width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 76px);
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
FEEDBACK PAGE
========================================================= */

.feedback-page {
width: 100%;
max-width: none;
}

.feedback-page .page-content {
width: min(calc(100% - 32px), var(--reading-width));
margin: 0 auto;
}
