body.modern-site.home-document {
  background: var(--theme-page-background, #f7f6f0) !important;
}

body.modern-site .modern-main.is-home.home-page {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

body.modern-site .home-page p {
  margin: 0;
}

body.modern-site .home-page h2,
body.modern-site .home-page h3 {
  margin: 0;
}

body.modern-site .home-page h2 {
  color: var(--theme-ink, #153c3d);
  font: 400 clamp(2.35rem, 4.5vw, 4.2rem)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

body.modern-site .home-page h2 em {
  color: var(--theme-accent, #a77548);
  font-weight: 400;
}

.home-section {
  width: min(100% - 3rem, 1220px);
  margin-inline: auto;
}

.home-eyebrow {
  color: var(--theme-accent, #9b7048);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(620px, 62vw, 740px);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 7vw, 7rem) 7rem;
  border-radius: 0 0 28px 28px;
  background: #183b38;
  color: #fffdf7;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.home-hero::before {
  background: url("images/home-hero-bible.png") center / cover no-repeat;
}

.home-hero::after {
  background: linear-gradient(90deg, rgb(8 27 27 / 91%) 0%, rgb(11 32 32 / 79%) 37%, rgb(13 35 34 / 35%) 68%, rgb(13 35 34 / 8%) 100%);
}

.home-hero__content {
  max-width: 720px;
  animation: home-rise 750ms 80ms both;
}

.home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #e3c49b;
}

.home-eyebrow__line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
}

.home-eyebrow__divider {
  opacity: 0.5;
}

.home-hero h1 {
  max-width: 760px;
  margin: 1.45rem 0 1.3rem;
  color: #fffdf7;
  font: 400 clamp(3.8rem, 7.1vw, 7.6rem)/0.99 Georgia, "Times New Roman", serif;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.home-hero h1 em {
  color: #e7bc88;
  font-weight: 400;
}

body.modern-site .home-page .home-hero__lead {
  max-width: 580px;
  color: #f0eee5;
  font-size: clamp(1.04rem, 1.45vw, 1.25rem);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

body.modern-site .home-page .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 52px;
  padding: 0.84rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.modern-site .home-page .home-button:hover {
  transform: translateY(-3px);
}

body.modern-site .home-page .home-button--light {
  background: #f7f1e7;
  color: #173e3f;
}

body.modern-site .home-page .home-button--light:hover {
  background: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
}

body.modern-site .home-page .home-button--outline {
  border-color: rgb(255 255 255 / 60%);
  color: #fffdf7;
}

body.modern-site .home-page .home-button--outline:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.home-hero__footer {
  position: absolute;
  right: clamp(1.5rem, 7vw, 7rem);
  bottom: 5rem;
  left: clamp(1.5rem, 7vw, 7rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(255 253 247 / 80%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero__down {
  margin-left: 0.6rem;
  font-size: 1.2rem;
}

.home-wayfinder {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100% - 3rem, 1260px);
  margin: -3rem auto 0;
  overflow: hidden;
  border: 1px solid var(--theme-line, #e4e5db);
  border-radius: 14px;
  background: var(--theme-surface, #fffefa);
  box-shadow: 0 20px 45px rgb(25 56 48 / 13%);
}

body.modern-site .home-page .home-wayfinder a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
  min-height: 112px;
  padding: 1.5rem;
  color: var(--theme-ink, #173e3f);
  text-decoration: none;
  transition: background-color 180ms ease;
}

body.modern-site .home-page .home-wayfinder a + a {
  border-left: 1px solid var(--theme-line, #e7e9df);
}

body.modern-site .home-page .home-wayfinder a:hover {
  background: var(--theme-raised, #f3f6ef);
}

.home-wayfinder__number {
  flex: 0 0 2rem;
  align-self: flex-start;
  color: var(--theme-accent, #b08659);
  font: 400 1.55rem/1 Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.home-wayfinder strong,
.home-wayfinder small {
  display: block;
}

.home-wayfinder strong {
  font-size: 0.95rem;
  font-weight: 750;
}

.home-wayfinder small {
  margin-top: 0.16rem;
  color: var(--theme-muted, #657576);
  font-size: 0.76rem;
  line-height: 1.4;
}

.home-wayfinder__arrow {
  margin-left: auto;
  color: var(--theme-accent, #b08659);
  font-size: 1.2rem;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding-block: clamp(5rem, 9vw, 8rem) clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--theme-line, #d9ded4);
}

.home-intro h2 {
  max-width: 690px;
  margin-top: 1.1rem !important;
}

.home-intro__copy {
  padding-bottom: 0.3rem;
}

body.modern-site .home-page .home-intro__copy p {
  max-width: 480px;
  color: var(--theme-muted, #56696a);
  font-size: clamp(1.07rem, 1.4vw, 1.25rem);
  line-height: 1.75;
}

body.modern-site .home-page .home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #a77c51;
  color: var(--theme-ink, #16474a);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

body.modern-site .home-page .home-text-link:hover {
  color: var(--theme-accent, #a77548);
}

.home-resources {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.home-section-heading h2 {
  margin-top: 1rem !important;
}

body.modern-site .home-page .home-section-heading > p {
  max-width: 230px;
  padding-bottom: 0.3rem;
  color: var(--theme-muted, #697879);
  font-size: 0.88rem;
  line-height: 1.6;
}

.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

body.modern-site .home-page .home-resource-card {
  display: flex;
  flex-direction: column;
  min-height: 342px;
  padding: 1.5rem;
  border: 1px solid rgb(25 61 58 / 6%);
  border-radius: 12px;
  color: var(--theme-ink, #173e3f);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.modern-site .home-page .home-resource-card--study,
body.modern-site .home-page .home-resource-card--library {
  grid-column: span 2;
  min-height: 330px;
}

body.modern-site .home-page .home-resource-card--audio,
body.modern-site .home-page .home-resource-card--video {
  grid-column: span 2;
  min-height: 240px;
}

body.modern-site .home-page .home-resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgb(27 58 50 / 13%);
}

.home-resource-card--study {
  background: #1d4747;
}

body.modern-site .home-page .home-resource-card--study {
  color: #fff9ed;
}

.home-resource-card--library {
  background: var(--theme-warm, #e8e7d8);
}

.home-resource-card--audio {
  background: var(--theme-raised, #e5eeea);
}

.home-resource-card--video {
  background: var(--theme-warm, #eee2d4);
}

.home-resource-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-resource-card__arrow {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.home-resource-card svg {
  width: 70px;
  height: 70px;
  margin: auto 0 1.3rem;
  opacity: 0.82;
}

.home-resource-card__body {
  display: block;
}

.home-resource-card__body strong,
.home-resource-card__body span {
  display: block;
}

.home-resource-card__body strong {
  margin-bottom: 0.45rem;
  font: 400 1.55rem/1.18 Georgia, "Times New Roman", serif;
}

.home-resource-card__body span {
  max-width: 250px;
  font-size: 0.84rem;
  line-height: 1.55;
  opacity: 0.86;
}

.home-scripture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  margin-top: clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  border: 1px solid var(--theme-line, #d9ded4);
  border-radius: 24px;
  background: var(--theme-surface, #fffefa);
  box-shadow: 0 24px 60px rgb(21 60 51 / 9%);
  transition: box-shadow 250ms ease;
}

.home-scripture:hover {
  box-shadow: 0 28px 70px rgb(21 60 51 / 16%);
}

.home-scripture__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: radial-gradient(ellipse at 90% 10%, #42645b, transparent 65%), #173c3c;
  color: #f9f2e4;
}

.home-scripture__intro .home-eyebrow {
  color: #e7c28d;
}

.home-scripture__art {
  align-self: center;
  width: min(100%, 280px);
  height: 190px;
  margin-block: 1.4rem;
}

.home-scripture__halo {
  transform-origin: 160px 126px;
  animation: scripture-orbit 100s linear infinite;
}

body.modern-site .home-page .home-scripture h2 {
  color: #fff9ee;
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

body.modern-site .home-page .home-scripture h2 em {
  color: #e7c28d;
}

body.modern-site .home-page .home-scripture__byline {
  margin-top: 1rem;
  color: #f0dfc3;
  font-size: 0.8rem;
  letter-spacing: 0.025em;
}

body.modern-site .home-page .home-scripture__description {
  margin-top: 1.5rem;
  color: #d5e2db;
  font-size: 0.94rem;
  line-height: 1.7;
}

body.modern-site .home-page .home-scripture__source {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  margin-top: 1.5rem;
  border-bottom: 1px solid #ab956f;
  color: #f4d6a5;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

body.modern-site .home-page .home-scripture__source:hover {
  color: #fff9ee;
  border-color: currentColor;
}

.home-scripture__body {
  min-width: 0;
  align-self: center;
  padding: clamp(1.2rem, 3.5vw, 3rem);
}

.home-scripture__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.home-scripture__count {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--theme-line, #e0dfd4);
  border-radius: 100px;
  color: var(--theme-muted, #586d65);
  font-size: 0.7rem;
  white-space: nowrap;
}

.home-scripture-rule {
  border-top: 1px solid var(--theme-line, #dce2d8);
}

.home-scripture-rule:last-child {
  border-bottom: 1px solid var(--theme-line, #dce2d8);
}

.home-scripture-rule summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
  padding: 1rem 0.25rem;
  border-radius: 4px;
  color: var(--theme-ink, #153c3d);
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.home-scripture-rule summary::-webkit-details-marker {
  display: none;
}

.home-scripture-rule summary:hover {
  background: var(--theme-raised, #f1f4eb);
}

.home-scripture-rule summary:focus-visible,
.home-scripture__source:focus-visible {
  outline: 2px solid var(--theme-accent, #a77548);
  outline-offset: 4px;
}

.home-scripture-rule__number {
  color: var(--theme-accent, #a77548);
  font: 400 1.1rem/1 Georgia, "Times New Roman", serif;
}

.home-scripture-rule__arrow {
  color: var(--theme-accent, #a77548);
  font-size: 1.15rem;
  transition: transform 200ms ease;
}

.home-scripture-rule[open] .home-scripture-rule__arrow {
  transform: rotate(90deg);
}

body.modern-site .home-page .home-scripture-rule p {
  padding: 0 0.25rem 1.35rem calc(32px + 0.85rem + 0.25rem);
  color: var(--theme-muted, #536b64);
  font-size: 0.94rem;
  line-height: 1.8;
  animation: home-rise 250ms ease both;
}

@keyframes scripture-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 800px) {
  .home-scripture {
    grid-template-columns: 1fr;
  }

  .home-scripture__art {
    height: 165px;
    margin-block: 0.75rem;
  }
}

@media (max-width: 380px) {
  .home-scripture-rule summary {
    gap: 0.5rem;
    grid-template-columns: 25px minmax(0, 1fr) 18px;
  }

  body.modern-site .home-page .home-scripture-rule p {
    padding-left: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scripture,
  .home-scripture-rule summary,
  .home-scripture-rule__arrow {
    transition: none;
  }

  .home-scripture__halo,
  body.modern-site .home-page .home-scripture-rule p {
    animation: none;
  }
}

.home-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 590px;
  margin-top: clamp(5.5rem, 10vw, 9rem);
  overflow: hidden;
  border-radius: 20px;
  background: var(--theme-raised, #e8ece5);
}

.home-story__images {
  position: relative;
  min-height: 550px;
  background: radial-gradient(circle at 30% 22%, #728a7c, #244a49 70%);
}

body.modern-site .home-page .home-story__couple,
body.modern-site .home-page .home-story__jack {
  position: absolute;
  display: block;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgb(10 31 29 / 26%);
}

body.modern-site .home-page .home-story__couple {
  top: 5%;
  left: 9%;
  width: 60%;
  height: 84%;
  object-position: center;
}

body.modern-site .home-page .home-story__jack {
  right: 6%;
  bottom: 8%;
  width: 42%;
  aspect-ratio: 4 / 3;
  border: 7px solid var(--theme-line, #f5f2e9);
}

.home-story__caption {
  position: absolute;
  bottom: 3%;
  left: 8%;
  color: #f3f2e9;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-story__copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 6rem);
}

.home-story__copy h2 {
  margin-top: 1.2rem !important;
}

body.modern-site .home-page .home-story__copy > p:not(.home-eyebrow) {
  max-width: 450px;
  margin-top: 1.6rem;
  color: var(--theme-muted, #56696a);
  font-size: 1rem;
  line-height: 1.8;
}

body.modern-site .home-page .home-button--dark {
  margin-top: 2rem;
  background: #1d4747;
  color: #fffdf7;
}

body.modern-site .home-page .home-button--dark:hover {
  background: #123738;
  color: #fffdf7;
  box-shadow: 0 12px 28px rgb(25 64 60 / 20%);
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(5.5rem, 9vw, 8rem);
  margin-bottom: clamp(4rem, 7vw, 6rem);
  padding: clamp(2rem, 5vw, 4.6rem);
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at 100% 0%, #3b6360, transparent 45%), #173d3e;
  color: #f8f4e9;
}

.home-search .home-eyebrow {
  color: #dfb987;
}

body.modern-site .home-page .home-search h2 {
  margin-top: 1rem;
  color: #fffdf7;
}

body.modern-site .home-page .home-search h2 em {
  color: #dfb987;
}

body.modern-site .home-page .home-search p:not(.home-eyebrow) {
  margin-top: 1.2rem;
  color: #d8e4df;
}

.home-search form {
  min-width: 0;
}

.home-search label {
  display: block;
  margin-bottom: 0.8rem;
  color: #f8f4e9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.home-search__controls {
  display: flex;
  gap: 0.55rem;
}

.home-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--theme-line, #cfddd5);
  border-radius: 4px;
  background: var(--theme-surface, #fffefa);
  color: var(--theme-ink, #173e3f);
}

.home-search input::placeholder {
  color: var(--theme-muted, #6f7d79);
}

.home-search button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 4px;
  background: #ddb683;
  color: #183b3b;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.home-search button:hover {
  background: #f2d0a4;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .home-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.modern-site .home-page .home-resource-card {
    min-height: 295px;
  }

  body.modern-site .home-page .home-resource-card--study,
  body.modern-site .home-page .home-resource-card--library,
  body.modern-site .home-page .home-resource-card--audio,
  body.modern-site .home-page .home-resource-card--video {
    grid-column: span 1;
  }
}

@media (max-width: 800px) {
  .home-wayfinder {
    grid-template-columns: 1fr;
  }

  body.modern-site .home-page .home-wayfinder a {
    min-height: 82px;
  }

  body.modern-site .home-page .home-wayfinder a + a {
    border-top: 1px solid var(--theme-line, #e7e9df);
    border-left: 0;
  }

  .home-intro,
  .home-story,
  .home-search {
    grid-template-columns: 1fr;
  }

  .home-intro {
    gap: 1.8rem;
  }

  .home-story__images {
    min-height: 510px;
  }

  .home-story__copy {
    padding: clamp(2rem, 6vw, 4rem);
  }
}

@media (max-width: 600px) {
  .home-hero {
    min-height: 650px;
    padding: 4.5rem 1.5rem 6rem;
    border-radius: 0 0 20px 20px;
  }

  .home-hero::before {
    background-position: 62% center;
  }

  .home-hero::after {
    background: linear-gradient(90deg, rgb(8 27 27 / 93%), rgb(11 32 32 / 72%));
  }

  .home-hero h1 {
    font-size: clamp(3.45rem, 14vw, 5rem);
  }

  .home-hero__eyebrow {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .home-hero__footer {
    display: none;
  }

  .home-wayfinder,
  .home-section {
    width: min(100% - 2rem, 1220px);
  }

  .home-section-heading {
    display: block;
  }

  body.modern-site .home-page .home-section-heading > p {
    margin-top: 1rem;
  }

  .home-resource-grid {
    grid-template-columns: 1fr;
  }

  body.modern-site .home-page .home-resource-card {
    min-height: 285px;
  }

  .home-story__images {
    min-height: 430px;
  }

  .home-search__controls {
    flex-direction: column;
  }

  .home-search button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__content {
    animation: none;
  }

  body.modern-site .home-page .home-button,
  body.modern-site .home-page .home-resource-card,
  body.modern-site .home-page .home-wayfinder a,
  .home-search button {
    transition: none;
  }
}
