:root {
  --ink: #303636;
  --warm: #e5e3dc;
  --paper: #f5f3ed;
  --peach: #d4967d;
  --cms-header-pink: #d4967d;
  --cms-heading-pink: #d4967d;
  --cms-body-text-color: #303636;
  --accent: #c9755b;
  --forest: #26352f;
  --forest-deep: #1d2924;
  --white: #ffffff;
  --muted: #777c75;
  --line: rgba(48, 54, 54, .18);
  --serif: "Bitter", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --display: "Shrikhand", Georgia, serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--warm);
  color: var(--ink);
  font: 400 16px/1.65 var(--serif);
}

body.nav-open {
  overflow: hidden;
}

main {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  color: inherit;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

p {
  margin: 0 0 1.25em;
  font: 400 clamp(15px, 1.1vw, 17px)/1.65 var(--serif);
  overflow-wrap: break-word;
  word-break: normal;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

.page-fade {
  animation: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 52px);
  background: var(--cms-header-pink, var(--peach, #d4967d)) !important;
  color: var(--ink, #303636) !important;
}

body[data-route] .site-header {
  background: var(--cms-header-pink, var(--peach, #d4967d)) !important;
  color: var(--ink, #303636) !important;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink, #303636) !important;
  font: 400 clamp(18px, 2.2vw, 22px)/1.2 var(--display);
  letter-spacing: 0;
  min-height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 6px;
  color: var(--ink, #303636) !important;
  font: 500 clamp(14px, 1.1vw, 16px)/1.4 var(--serif);
  letter-spacing: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(14px, 2vw, 24px);
}

.social-links a {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink, #303636) !important;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: rgba(48, 54, 54, 0.08);
  transform: translateY(-1px);
}

.social-links svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink, #303636) !important;
  stroke-width: 1.6;
}

.social-links svg path,
.social-links .social-dot {
  fill: var(--ink, #303636) !important;
  stroke: none;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 3.5vw, 36px);
  border: 0;
  border-radius: 9999px;
  background: var(--cms-header-pink, var(--peach, #d4967d));
  color: #fff;
  font: 600 clamp(14px, 1.2vw, 16px)/1 var(--serif);
  letter-spacing: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: #c98268;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(48, 54, 54, 0.12);
}

.button:active {
  transform: translateY(0);
}

/* ==========================================================================
   Home Hero Section
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: clamp(480px, 75vh, 740px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #303636;
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cms-hero-image, url("https://images.squarespace-cdn.com/content/v1/6abaae7844626360a63d6f9d/1790629802685-Z59JDUC9LV7BDA5CMUSW/unsplash-image-WpFZu1CGBNc.jpg?format=1500w")) center center / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 27, 24, 0.75), rgba(20, 27, 24, 0.35));
  content: "";
}

.hero-copy,
.wov-block-hero .hero-content {
  position: relative;
  z-index: 2;
  width: min(92%, 1180px);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 40px);
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-copy .eyebrow,
.wov-block-hero .hero-content .eyebrow,
[data-cms-key$=":eyebrow"] {
  text-align: center !important;
  margin: 0 auto clamp(14px, 2vw, 22px) auto !important;
  width: 100%;
}

/* Title 1: "Reject Culture" */
.hero-copy h1:first-of-type,
.hero-copy .hero-title1,
.wov-block-hero .hero-content h1:first-of-type,
.wov-block-hero .hero-content .hero-title1,
[data-cms-key$=":title1"],
[data-cms-key="home:hero-title-one"] {
  width: 100%;
  max-width: 100%;
  margin: 0 auto !important;
  color: #fff !important;
  text-align: center !important;
  font-family: var(--display) !important;
  font-weight: 400 !important;
  font-size: clamp(2.1rem, 4.8vw + 0.25rem, 4.75rem) !important;
  line-height: 1.16 !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* Title 2: "Follow Christ" - slightly larger than Reject Culture */
.hero-copy h1:nth-of-type(2),
.hero-copy .hero-title2,
.wov-block-hero .hero-content h1:nth-of-type(2),
.wov-block-hero .hero-content .hero-title2,
[data-cms-key$=":title2"],
[data-cms-key="home:hero-title-two"] {
  width: 100%;
  max-width: 100%;
  margin: 0.16em auto 0 auto !important;
  color: #fff !important;
  text-align: center !important;
  font-family: var(--display) !important;
  font-weight: 400 !important;
  font-size: clamp(2.65rem, 6.2vw + 0.25rem, 6rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.hero-copy > p:not(.eyebrow),
.hero-copy .hero-desc,
.wov-block-hero .hero-content > p:not(.eyebrow),
.wov-block-hero .hero-content .hero-desc,
[data-cms-key$=":description"],
[data-cms-key="home:hero-description"] {
  width: 100%;
  max-width: min(100%, 680px);
  margin: clamp(18px, 2.5vw, 30px) auto 0 auto !important;
  color: #fff !important;
  text-align: center !important;
  font: 400 clamp(15px, 1.4vw, 18px)/1.6 var(--serif);
}

.hero .button,
.hero-copy .button,
.hero-copy .hero-btn,
.wov-block-hero .button,
.wov-block-hero .hero-content .button,
.wov-block-hero .hero-btn,
[data-cms-key$=":button"],
[data-cms-key="home:hero-button-text"] {
  display: inline-flex !important;
  margin: clamp(24px, 3.2vw, 36px) auto 0 auto !important;
  align-self: center !important;
  min-width: 150px;
}

/* ==========================================================================
   Marquee Component
   ========================================================================== */
.journey {
  position: relative;
  width: 100%;
  min-height: clamp(380px, 50vw, 580px);
  overflow: hidden;
  padding: 0;
  background: var(--warm);
}

.wov-block-marquee-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: clamp(90px, 14vw, 184px) !important;
  min-height: 90px !important;
  overflow: hidden !important;
  background: var(--warm) !important;
  margin: 0 !important;
}

.wov-block-marquee-wrap .journey-marquee,
.journey-marquee {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  margin: 0 !important;
  color: var(--ink);
  font: 400 clamp(42px, 8vw, 131.6px)/1 var(--display) !important;
  white-space: nowrap !important;
  animation: journey-marquee-scroll 18s linear infinite !important;
}

.journey-marquee span {
  flex: 0 0 auto;
  display: block;
  padding-right: clamp(32px, 5vw, 65.8px);
}

@keyframes journey-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery {
  display: grid;
  width: min(92%, 1280px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  margin: 0 auto;
  align-items: stretch;
}

.gallery img {
  display: block;
  width: 100%;
  height: clamp(160px, 20vw, 240px);
  object-fit: cover;
  border-radius: 4px;
}

/* ==========================================================================
   Start a Project Section
   ========================================================================== */
.project {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  background: var(--cms-header-pink, var(--peach, #d4967d));
  color: #fff;
}

.project > h1 {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(20px, 4vw, 36px);
  color: #fff;
  font: 400 clamp(2.5rem, 6.5vw, 6rem)/1.1 var(--display);
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.project-copy {
  width: 100%;
  max-width: 520px;
}

.project-copy > p:not(.eyebrow) {
  max-width: 100%;
  margin: 0 0 20px;
  color: #fff;
  font: 400 clamp(16px, 1.8vw, 20px)/1.55 var(--serif);
}

.project .form,
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px) clamp(12px, 2vw, 18px);
  width: 100%;
  align-content: start;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #fff;
  font: 500 13px/1.4 var(--serif);
}

.field label span {
  font-size: 12px;
  opacity: 0.85;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 0;
  background: transparent;
  color: #ffffff !important;
  font: 400 16px/1.5 var(--serif);
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form .button {
  justify-self: start;
  min-width: 140px;
  min-height: 48px;
  background: #ffffff;
  color: var(--peach, #d4967d);
}

.form .button:hover {
  background: var(--ink);
  color: #ffffff;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #ffffff;
  font: 500 13px/1.5 var(--serif);
}

.form-status:empty {
  display: none;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  position: relative;
  width: 100%;
  padding: clamp(52px, 6vw, 75px) clamp(20px, 5vw, 64px) clamp(24px, 4vw, 40px);
  overflow: hidden;
  background: var(--cms-header-pink, var(--peach, #d4967d)) !important;
  color: #fff !important;
}

.site-footer > h2 {
  width: 100%;
  max-width: 800px;
  margin: 0 0 20px;
  color: #fff !important;
  font: 400 clamp(28px, 4.5vw, 40px)/1.2 var(--display);
}

.footer-partnership {
  width: 100%;
  max-width: 520px;
}

.footer-partnership h4 {
  margin: 0 0 16px;
  color: #fff !important;
  font: 400 clamp(18px, 2.5vw, 24px)/1.3 var(--display);
}

.footer-partnership p {
  margin: 0 0 12px;
  color: #fff !important;
  font: 400 15px/1.6 var(--serif);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff !important;
  stroke-width: 1.6;
}

.footer-social svg path,
.footer-social .social-dot {
  fill: #fff !important;
  stroke: none;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-page {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--warm);
}

.about-story {
  display: grid;
  width: min(92%, 1280px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(52px, 8vw, 110px) 0;
}

.about-copy {
  width: 100%;
  max-width: 600px;
}

.about-copy h1 {
  width: 100%;
  margin: 0 0 clamp(20px, 3.5vw, 36px);
  color: var(--ink);
  font: 400 clamp(2rem, 5vw, 3.25rem)/1.15 var(--display);
}

.about-copy h3 {
  width: 100%;
  margin: 0 0 20px;
  color: var(--ink);
  font: 400 clamp(1.4rem, 3.5vw, 2rem)/1.25 var(--display);
}

.about-copy p {
  width: 100%;
  margin: 0 0 16px;
  color: var(--ink);
  font: 400 clamp(15px, 1.2vw, 17px)/1.65 var(--serif);
}

.about-side {
  width: 100%;
}

.about-side > img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 4px;
}

.about-quote {
  width: 100% !important;
  margin: 32px 0 0 !important;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font: 700 clamp(15px, 1.5vw, 18px)/1.6 var(--serif) !important;
}

.about-side .virtues {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 36px;
  padding: 0;
  background: transparent;
}

.virtue {
  width: 100%;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(48, 54, 54, .2);
}

.virtue:last-child {
  border-bottom: 1px solid rgba(48, 54, 54, .2);
}

.virtue summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
  color: var(--ink);
  font: 400 clamp(18px, 2.5vw, 24px)/1.2 var(--display);
  cursor: pointer;
  touch-action: manipulation;
}

.virtue summary::-webkit-details-marker {
  display: none;
}

.virtue p {
  width: 100%;
  margin: 0 0 20px;
  color: var(--ink);
  font: 400 16px/1.65 var(--serif);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-layout {
  display: grid;
  width: min(92%, 1280px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 6vw, 76px);
  padding: clamp(52px, 8vw, 100px) 0;
  overflow: hidden;
}

.contact-copy {
  width: 100%;
  max-width: 520px;
}

.contact-copy h1 {
  width: 100%;
  margin: 0 0 24px;
  color: var(--ink);
  font: 400 clamp(2rem, 5vw, 3.25rem)/1.15 var(--display);
}

.contact-copy > p {
  width: 100%;
  margin: 0 0 16px;
  color: var(--ink);
  font: 400 16px/1.65 var(--serif);
}

.contact-layout .form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  width: 100%;
  margin-top: 32px;
}

.contact-layout .field label {
  color: var(--ink);
}

.contact-layout .field input,
.contact-layout .field textarea {
  color: var(--ink);
  border-bottom-color: rgba(48, 54, 54, 0.45);
}

.contact-layout .field input:focus,
.contact-layout .field textarea:focus {
  border-bottom-color: var(--ink);
}

.contact-layout .form .button {
  background: var(--ink);
  color: #fff;
}

.contact-layout .form .button:hover {
  background: var(--accent);
  color: #fff;
}

.contact-layout .form-status {
  color: var(--ink);
}

.contact-photo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 0.85;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 6px;
}

/* ==========================================================================
   Devotionals & Lessons
   ========================================================================== */
.course-banner {
  position: relative;
  width: 100%;
  height: clamp(140px, 24vw, 278px);
  background: #303636 var(--cms-course-image, url("https://images.squarespace-cdn.com/content/v1/6abaae7844626360a63d6f9d/1790620338988-PR9FRMO87HJ2YZFTA46A/unsplash-image-XqXJJhK-c08.jpg?format=1500w")) center 47% / cover no-repeat;
}

.course-list-region {
  min-height: 0;
  background: var(--warm);
}

.course-page {
  width: min(92%, 1280px);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) 0;
}

.course-intro h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font: 400 clamp(2rem, 5vw, 3.25rem)/1.2 var(--display);
}

.course-intro p {
  margin: 0 0 16px;
  color: var(--ink);
  font: 400 16px/1.65 var(--serif);
}

.course-head {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  margin: 12px 0 24px;
}

.progress-wrap {
  display: grid;
  width: 100%;
  max-width: 400px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  text-align: right;
}

.progress-track {
  height: 6px;
  grid-column: 1;
  margin: 0;
  background: rgba(48, 54, 54, .18);
  border-radius: 3px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
}

.progress-count {
  grid-column: 2;
  color: var(--ink);
  font: 600 15px/1 var(--serif);
}

.progress-label {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-unit {
  border: 0;
  border-top: 1px solid rgba(48, 54, 54, .2);
}

.course-unit > summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}

.course-unit > summary::-webkit-details-marker {
  display: none;
}

.course-unit > summary strong {
  color: var(--ink);
  font: 400 clamp(20px, 3vw, 26px)/1.2 var(--display);
}

.course-unit > summary span {
  color: var(--muted);
  font: 500 14px/1 var(--sans);
  margin-left: auto;
}

.course-unit > summary::after {
  content: "+";
  color: var(--peach, #d4967d);
  font: 400 24px/1 var(--serif);
  flex-shrink: 0;
}

.course-unit[open] > summary::after {
  content: "−";
}

.lesson-list {
  margin: 0;
  padding: 0 0 18px;
  list-style: none;
}

.lesson-row {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(48, 54, 54, .12);
}

.lesson-row a {
  color: var(--ink);
  font: 500 clamp(16px, 1.8vw, 18px)/1.4 var(--serif);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lesson-row a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.lesson-check {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lesson-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* FAQ */
.course-faq-region {
  min-height: 0;
  background: var(--warm);
}

.faq {
  display: grid;
  width: min(92%, 1280px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  column-gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(48px, 6vw, 85px) 0;
}

.faq h1 {
  width: 100%;
  margin: 0 0 24px;
  color: var(--ink);
  font: 400 clamp(2rem, 4vw, 3rem)/1.15 var(--display);
}

.disclosure {
  border: 0;
  border-top: 1px solid rgba(48, 54, 54, .2);
}

.disclosure:last-child {
  border-bottom: 1px solid rgba(48, 54, 54, .2);
}

.disclosure summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  color: var(--ink);
  font: 400 clamp(18px, 2.5vw, 22px)/1.2 var(--display);
  cursor: pointer;
  touch-action: manipulation;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure summary::after {
  content: "+";
  color: var(--ink);
  font: 400 24px/1 var(--serif);
}

.disclosure[open] summary::after {
  content: "−";
}

.disclosure p {
  max-width: 100%;
  margin: 0 0 20px;
  color: var(--ink);
  font: 400 16px/1.6 var(--serif);
}

/* Lesson Article Page */
.lesson-page {
  width: min(92%, 1280px);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 100px);
}

.lesson-crumb {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(48, 54, 54, .2);
  color: var(--ink);
  font: 400 14px/1.4 var(--serif);
}

.lesson-crumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lesson-crumb a:hover {
  text-decoration: underline;
}

.lesson-title {
  padding: 24px 0 clamp(20px, 3vw, 36px);
}

.lesson-title .eyebrow,
.lesson-content > .eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lesson-title h1 {
  max-width: 900px;
  color: var(--ink);
  font: 400 clamp(2rem, 5vw, 3.25rem)/1.15 var(--display);
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  column-gap: clamp(32px, 5vw, 76px);
  row-gap: 36px;
  align-items: start;
  margin-top: 24px;
}

.lesson-copy {
  width: 100%;
}

.lesson-content {
  padding: 20px 0;
  border-top: 1px solid rgba(48, 54, 54, .2);
}

.lesson-content > h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font: 400 clamp(1.4rem, 3vw, 2rem)/1.2 var(--display);
}

.lesson-content > p {
  max-width: 100%;
  color: var(--ink);
  font: 400 16px/1.65 var(--serif);
}

.lesson-section {
  border-top: 1px solid rgba(48, 54, 54, .2);
}

.lesson-section summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
  font: 400 clamp(18px, 2.5vw, 22px)/1.2 var(--display);
  cursor: pointer;
  touch-action: manipulation;
}

.lesson-section summary::-webkit-details-marker {
  display: none;
}

.lesson-section summary::after {
  content: "+";
  color: var(--peach, #d4967d);
  font: 400 24px/1 var(--serif);
  flex-shrink: 0;
}

.lesson-section[open] summary::after {
  content: "−";
}

.lesson-section p {
  margin: 0 0 18px;
  color: var(--ink);
  font: 400 16px/1.65 var(--serif);
}

.lesson-section blockquote {
  width: auto;
  max-width: 100%;
  margin: 0 0 18px 20px;
  padding-left: 16px;
  border-left: 3px solid rgba(212, 150, 125, .85);
  color: var(--ink);
  font: italic 400 16px/1.6 var(--serif);
}

.lesson-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto;
}

.lesson-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(48, 54, 54, .2);
}

.lesson-end label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font: 500 15px/1.4 var(--serif);
  min-height: 48px;
  cursor: pointer;
}

.lesson-end input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}

main .devotional-page h1,
main .devotional-page h2,
main .devotional-page h3,
main .devotional-page h4,
main .lesson-page h1,
main .lesson-page h2,
main .lesson-page h3,
main .lesson-page h4 {
  color: var(--cms-heading-pink, #d4967d);
}

/* ==========================================================================
   Standardized Media Queries
   ========================================================================== */

/* 1. Tablets & Small Laptops (768px – 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .site-header {
    min-height: 64px;
    padding: 0 4vw;
  }
  .wordmark {
    font-size: 19px;
  }
  .site-nav {
    gap: 18px;
  }
  .social-links {
    margin-left: 14px;
    gap: 8px;
  }
  .social-links a {
    width: 38px;
    height: 38px;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 4vw;
  }
  .about-story {
    gap: 36px;
    padding: 50px 0;
  }
  .contact-layout {
    gap: 40px;
    padding: 50px 0;
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery img {
    height: 190px;
  }
}

/* 2. Mobile Landscape & Below (<= 767px) */
@media (max-width: 767px) {
  .site-header {
    min-height: 60px;
    padding: 0 5vw;
  }
  .wordmark {
    font-size: 18px;
    line-height: 1.2;
  }
  .site-nav {
    display: none;
  }
  .social-links:not(.footer-social) {
    display: none;
  }
  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink, #303636) !important;
    cursor: pointer;
    z-index: 10001;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .menu-toggle[aria-expanded="true"] {
    color: #ffffff !important;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .site-nav.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 80px 24px 40px;
    background: rgba(38, 53, 47, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: auto;
  }
  .site-nav.is-open a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    min-height: 52px;
    padding: 14px 20px;
    font: 600 clamp(20px, 5.5vw, 26px)/1.3 var(--serif);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .site-nav.is-open a:hover,
  .site-nav.is-open a:focus,
  .site-nav.is-open a:active,
  .site-nav.is-open a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700;
  }
  .hero {
    min-height: clamp(420px, 60vh, 560px);
  }
  .hero-copy {
    padding: 40px 16px 50px;
  }
  .hero-copy h1:first-of-type,
  .hero-copy .hero-title1,
  .wov-block-hero .hero-content h1:first-of-type,
  .wov-block-hero .hero-content .hero-title1,
  [data-cms-key$=":title1"],
  [data-cms-key="home:hero-title-one"] {
    font-size: clamp(1.75rem, 6.8vw, 2.35rem) !important;
    line-height: 1.16 !important;
  }
  .hero-copy h1:nth-of-type(2),
  .hero-copy .hero-title2,
  .wov-block-hero .hero-content h1:nth-of-type(2),
  .wov-block-hero .hero-content .hero-title2,
  [data-cms-key$=":title2"],
  [data-cms-key="home:hero-title-two"] {
    font-size: clamp(2.15rem, 8.4vw, 2.95rem) !important;
    line-height: 1.12 !important;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gallery img {
    height: 160px;
  }
  .project {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 5vw 64px;
  }
  .project > h1 {
    font-size: clamp(2rem, 7.5vw, 3.25rem);
  }
  .project .form,
  .form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-story {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .lesson-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer {
    padding: 48px 5vw 36px;
  }
  .site-footer > h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
  .footer-social {
    margin-top: 20px;
  }
}

/* 3. Mobile Portrait / Small Screens (320px – 480px) */
@media (max-width: 480px) {
  .site-header {
    min-height: 58px;
    padding: 0 16px;
  }
  .wordmark {
    font-size: 17px;
  }
  .hero-copy h1:first-of-type,
  .hero-copy .hero-title1,
  .wov-block-hero .hero-content h1:first-of-type,
  .wov-block-hero .hero-content .hero-title1,
  [data-cms-key$=":title1"],
  [data-cms-key="home:hero-title-one"] {
    font-size: clamp(1.55rem, 6.6vw, 1.95rem) !important;
    line-height: 1.18 !important;
  }
  .hero-copy h1:nth-of-type(2),
  .hero-copy .hero-title2,
  .wov-block-hero .hero-content h1:nth-of-type(2),
  .wov-block-hero .hero-content .hero-title2,
  [data-cms-key$=":title2"],
  [data-cms-key="home:hero-title-two"] {
    font-size: clamp(1.95rem, 8.2vw, 2.45rem) !important;
    line-height: 1.14 !important;
  }
  .hero .button,
  .hero-copy .button,
  .hero-copy .hero-btn,
  .wov-block-hero .button,
  .wov-block-hero .hero-content .button,
  .wov-block-hero .hero-btn,
  [data-cms-key$=":button"],
  [data-cms-key="home:hero-button-text"] {
    width: auto !important;
    min-width: 140px !important;
    max-width: 260px !important;
    margin: 22px auto 0 auto !important;
    align-self: center !important;
  }
  .form .button {
    width: 100%;
    max-width: 100%;
  }
  .field input,
  .field textarea {
    font-size: 16px; /* prevent iOS auto-zoom */
    min-height: 48px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .gallery img {
    height: 140px;
  }
  .project,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}