:root {
  --ink: #171a17;
  --muted: #697069;
  --paper: #fbf8f1;
  --soft: #eee7dc;
  --mist: #f7f1e7;
  --green: #264c3f;
  --sage: #7b927f;
  --gold: #b8893f;
  --rose: #b46a61;
  --blue: #55708a;
  --white: #ffffff;
  --line: rgba(23, 26, 23, 0.12);
  --shadow: 0 24px 70px rgba(23, 26, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 137, 63, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--paper), #f7f0e5 48%, var(--paper));
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 5vw, 70px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(20, 25, 22, 0.5), rgba(20, 25, 22, 0));
}

.site-header.compact {
  position: sticky;
  color: var(--ink);
  background: rgba(251, 248, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.dynamic-header {
  top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, #f2d79c, var(--gold));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

nav a {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  text-decoration: none;
}

.compact nav a {
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 84px) 96px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 24, 21, 0.86), rgba(18, 24, 21, 0.52) 42%, rgba(18, 24, 21, 0.08)),
    linear-gradient(0deg, rgba(18, 24, 21, 0.5), transparent 44%);
}

.hero-content {
  position: relative;
  max-width: 840px;
  color: var(--white);
}

.hero-note {
  position: absolute;
  right: clamp(18px, 6vw, 84px);
  bottom: 34px;
  width: min(360px, calc(100% - 36px));
  padding: 20px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-note span {
  color: #f2d79c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note p {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8.5vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.22rem;
}

.hero-actions,
.article-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.search-form {
  display: flex;
  width: min(680px, 100%);
  gap: 10px;
  margin-top: 28px;
}

.search-form input,
.newsletter-panel input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
}

.search-form.light input {
  background: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, #f6dca2, var(--gold));
  box-shadow: 0 14px 34px rgba(184, 137, 63, 0.28);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.compact ~ main .button.secondary,
.article .button.secondary {
  color: var(--green);
  border-color: rgba(49, 95, 80, 0.35);
}

.intro-band,
.learning-band,
.cta-band,
.section,
footer {
  padding: clamp(64px, 8vw, 112px) clamp(18px, 6vw, 84px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: end;
  background: linear-gradient(135deg, var(--mist), var(--paper));
  border-bottom: 1px solid var(--line);
}

.intro-band p,
.learning-copy p,
.split p,
.cta-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.scripture-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.scripture-strip p {
  margin: 0;
  padding: 20px clamp(18px, 3vw, 34px);
  color: var(--green);
  background: rgba(255, 255, 255, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.card-grid,
.check-grid,
.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card,
.check-grid > div,
.lesson-panel,
.video-panel,
.poetry-card,
.poetry-preview-card {
  border: 1px solid rgba(24, 32, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.content-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 137, 63, 0.42);
}

.poetry-preview-card,
.poetry-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 248, 238, 0.92)),
      url("../assets/hero-prayer-study.png") center / cover;
}

.poetry-link-card {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.poetry-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 137, 63, 0.42);
  box-shadow: 0 28px 80px rgba(23, 26, 23, 0.16);
}

.poetry-preview-card {
  max-width: 420px;
  justify-self: end;
}

.poetry-preview-card h3,
.poetry-card h3 {
  font-size: 1.4rem;
}

.poetry-preview-card p:not(.tag),
.poetry-card p:not(.tag) {
  margin: 0;
  font-size: 0.98rem;
}

.poetry-preview-card span,
.poetry-card span {
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.content-card p:not(.tag),
.check-grid p {
  color: var(--muted);
}

.content-card a {
  margin-top: auto;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.learning-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(38, 76, 63, 0.96), rgba(23, 26, 23, 0.96)),
    linear-gradient(90deg, var(--green), var(--blue));
}

.learning-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.lesson-list {
  display: grid;
  gap: 10px;
}

.lesson-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 900;
}

.lesson-list span {
  color: var(--gold);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.video-panel {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 28px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(85, 112, 138, 0.92), rgba(180, 106, 97, 0.92)),
    url("../assets/hero-prayer-study.png") center / cover;
}

.play-symbol {
  width: 82px;
  height: 82px;
  clip-path: polygon(20% 10%, 20% 90%, 88% 50%);
  background: var(--white);
}

.video-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.newsletter-panel {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.newsletter-panel label,
.admin-form label {
  color: var(--green);
  font-weight: 900;
}

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

.check-grid > div {
  padding: 22px;
  box-shadow: none;
}

.cta-band {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(38, 76, 63, 0.94), rgba(126, 63, 74, 0.9)),
    url("../assets/hero-prayer-study.png") center / cover;
}

.cta-band p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  background: var(--ink);
}

.article-shell,
.course-shell {
  padding: clamp(52px, 7vw, 96px) 18px;
}

.article,
.course-hero,
.course-layout {
  width: min(920px, 100%);
  margin: 0 auto;
}

.article {
  font-size: 1.08rem;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.article h1,
.course-hero h1 {
  color: var(--green);
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

.article-meta {
  display: inline-flex;
  margin: 18px 0;
  padding: 8px 12px;
  border: 1px solid rgba(184, 137, 63, 0.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(246, 220, 162, 0.26);
  font-size: 0.9rem;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  font-size: 1.26rem;
}

.article h2 {
  margin-top: 42px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

blockquote {
  margin: 34px 0;
  padding: 24px;
  border-left: 6px solid var(--gold);
  color: var(--green);
  background: linear-gradient(135deg, rgba(246, 220, 162, 0.28), rgba(123, 146, 127, 0.12));
  font-size: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.course-hero {
  margin-bottom: 34px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 231, 220, 0.62)),
    url("../assets/hero-prayer-study.png") right center / cover;
}

.course-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.16rem;
}

.course-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.course-feed {
  display: grid;
  width: min(920px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.poetry-grid {
  display: grid;
  width: min(1100px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.poem-shell {
  min-height: 100vh;
  padding: clamp(48px, 7vw, 96px) 18px;
  background:
    linear-gradient(120deg, rgba(251, 248, 241, 0.88), rgba(244, 234, 221, 0.82)),
    url("../assets/hero-prayer-study.png") center / cover fixed;
}

.poem-hero {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.poem-kicker {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poem-frame {
  display: grid;
  min-height: 78vh;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.poem-copy {
  width: min(620px, 100%);
  margin-left: auto;
  padding-left: clamp(12px, 3vw, 40px);
}

.poem-copy h1 {
  margin-bottom: 22px;
  color: var(--green);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.poem-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

.poem-body p {
  margin: 0 0 12px;
  color: #2a312d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  line-height: 1.9;
}

.poem-gap {
  height: 18px;
}

.course-lesson {
  min-height: auto;
}

.lesson-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.lesson-tab {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 95, 80, 0.24);
  border-radius: 8px;
  color: var(--green);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.lesson-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.lesson-panel {
  min-height: 360px;
  padding: clamp(24px, 5vw, 42px);
}

.practice-box {
  margin-top: 28px;
  padding: 20px;
  border-radius: 8px;
  background: var(--mist);
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form textarea {
  min-height: 140px;
  resize: vertical;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
  }

  .site-header.compact {
    position: static;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 88vh;
    padding-top: 180px;
    padding-bottom: 210px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 22, 21, 0.76), rgba(15, 22, 21, 0.42));
  }

  .hero-note {
    right: 18px;
    bottom: 24px;
  }

  .intro-band,
  .learning-band,
  .split,
  .course-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .check-grid,
  .dynamic-grid,
  .poetry-grid,
  .scripture-strip {
    grid-template-columns: 1fr;
  }

  .poem-frame {
    min-height: auto;
  }

  .poem-copy {
    margin-left: 0;
    padding-left: 0;
  }

  .search-form {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
  }
}
