:root {
  --ink: #08312f;
  --muted: #596963;
  --ivory: #fbf5e9;
  --paper: #fffaf0;
  --green: #075845;
  --green-2: #0e6b57;
  --teal: #105f6b;
  --teal-dark: #0a4851;
  --gold: #d59d48;
  --gold-soft: #f1c477;
  --line: rgba(7, 88, 69, 0.17);
  --shadow: 0 22px 64px rgba(7, 62, 56, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

section[id] {
  scroll-margin-top: 86px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 clamp(22px, 4vw, 56px);
  border-bottom: 1px solid rgba(7, 88, 69, 0.18);
  background: rgba(251, 245, 233, 0.94);
  backdrop-filter: blur(18px);
}

.studio-wordmark {
  display: block;
  width: clamp(162px, 18vw, 204px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(5, 70, 66, 0.16);
}

.studio-wordmark img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.studio-wordmark:hover,
.studio-wordmark:focus-visible {
  color: var(--green);
  outline: 3px solid rgba(213, 157, 72, 0.34);
  outline-offset: 4px;
}

.hero-section {
  position: relative;
  min-height: min(500px, calc(100vh - 74px));
  overflow: hidden;
  border-bottom: 1px solid rgba(7, 88, 69, 0.13);
  background:
    radial-gradient(circle at 14% 22%, rgba(241, 196, 119, 0.2), transparent 27%),
    var(--ivory);
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ivory) 0%, rgba(251, 245, 233, 0.98) 34%, rgba(251, 245, 233, 0.72) 52%, rgba(251, 245, 233, 0.08) 73%),
    linear-gradient(0deg, rgba(251, 245, 233, 0.5), transparent 28%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(640px, 56%);
  padding: clamp(32px, 4.8vw, 62px) 0 clamp(24px, 4vw, 46px) clamp(24px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero-logo {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 62, 56, 0.22);
}

.hero-lede {
  max-width: 580px;
  margin: 20px 0 0;
  color: #324942;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 850;
}

.primary-action {
  border: 1px solid rgba(6, 84, 68, 0.28);
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: var(--paper);
  box-shadow: 0 18px 34px rgba(7, 88, 69, 0.24);
}

.secondary-action {
  border: 2px solid rgba(7, 88, 69, 0.74);
  background: rgba(255, 250, 240, 0.78);
  color: var(--green);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(213, 157, 72, 0.36);
  outline-offset: 2px;
}

.hero-floaters {
  position: absolute;
  z-index: 3;
  left: clamp(610px, 50vw, 760px);
  top: 13%;
  display: grid;
  gap: 16px;
  pointer-events: none;
}

.floating-tile {
  display: grid;
  place-items: center;
  width: 116px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(7, 88, 69, 0.2);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 12px 26px rgba(7, 62, 56, 0.18);
  pointer-events: auto;
}

.floating-tile img {
  max-height: 62px;
  object-fit: contain;
}

.tile-biblequest {
  width: 132px;
}

.tile-biblequest img {
  max-height: 54px;
}

.tile-pass {
  margin-left: 34px;
}

.tile-reads {
  margin-left: 12px;
}

.work-section {
  padding: 20px clamp(20px, 5vw, 72px) 26px;
  background: var(--paper);
}

.section-heading {
  display: block;
  margin-bottom: 16px;
}

.section-heading h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: stretch;
}

.feature-card,
.manna-carousel,
.work-carousel {
  overflow: hidden;
  border: 1px solid rgba(7, 88, 69, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(7, 62, 56, 0.1);
}

.feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.feature-media {
  background: var(--teal-dark);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 18px;
  align-items: center;
  padding: 24px 24px 22px;
}

.feature-body h3,
.carousel-heading h3,
.product-body strong {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-body p,
.product-body span,
.carousel-heading h3 + p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
}

.arrow-button {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: var(--paper);
  font-size: 22px;
  font-weight: 900;
}

.feature-card:hover,
.feature-card:focus-visible,
.product-card:hover,
.product-card:focus-visible,
.support-link:hover,
.policy-link:hover,
.support-link:focus-visible,
.policy-link:focus-visible {
  outline: 3px solid rgba(213, 157, 72, 0.34);
  outline-offset: 3px;
}

.manna-carousel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.work-carousel {
  min-width: 0;
}

.work-carousel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(7, 88, 69, 0.13);
}

.work-carousel-top h2 {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0;
}

.carousel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(7, 88, 69, 0.13);
}

.carousel-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.carousel-status {
  min-width: 180px;
  padding: 8px 11px;
  border: 1px solid rgba(213, 157, 72, 0.34);
  border-radius: 999px;
  background: rgba(241, 196, 119, 0.14);
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 22px 24px 18px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  display: grid;
  flex: 0 0 calc((100% - 32px) / 3);
  grid-template-rows: auto 1fr auto;
  min-height: 316px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(7, 88, 69, 0.13);
  border-radius: 8px;
  background: #fff8e9;
}

.product-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--gold));
  box-shadow: 0 16px 34px rgba(7, 62, 56, 0.13);
}

.product-media {
  position: relative;
  display: grid;
  height: 150px;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 45% 30%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 48%),
    linear-gradient(145deg, var(--teal-dark), var(--green));
}

.product-media img {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.biblequest-product .product-media {
  height: 150px;
  min-height: 0;
  background: var(--teal-dark);
}

.biblequest-product .product-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 28, 45, 0.62), rgba(8, 28, 45, 0.08) 58%, rgba(8, 28, 45, 0.42)),
    linear-gradient(0deg, rgba(8, 28, 45, 0.28), transparent 52%);
}

.biblequest-product .product-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) brightness(0.86);
}

.biblequest-product .product-logo {
  position: relative;
  z-index: 1;
  width: min(190px, 66%);
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.product-body {
  display: grid;
  align-content: start;
  padding: 18px 18px 10px;
}

.product-body strong {
  display: block;
  font-size: 24px;
}

.product-card .arrow-button {
  align-self: end;
  justify-self: end;
  width: 44px;
  margin: 0 18px 18px 0;
  font-size: 18px;
}

.carousel-controls {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 0 24px 22px;
}

.carousel-controls button {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(7, 88, 69, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
  color: var(--green);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  border-color: rgba(7, 88, 69, 0.5);
  outline: 3px solid rgba(213, 157, 72, 0.3);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 34px;
  height: 10px;
  aspect-ratio: auto;
  border-radius: 999px;
  background: rgba(7, 88, 69, 0.2);
}

.carousel-dots button.is-active {
  background: var(--green);
}

.support-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr) minmax(180px, 0.62fr);
  gap: 1px;
  align-items: stretch;
  border-top: 1px solid rgba(7, 88, 69, 0.18);
  border-bottom: 1px solid rgba(7, 88, 69, 0.18);
  background: rgba(7, 88, 69, 0.22);
}

.support-brand,
.support-link,
.policy-link {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(255, 250, 240, 0.92);
}

.support-brand {
  gap: 18px;
}

.support-seal {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(213, 157, 72, 0.76);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--teal), var(--green));
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 760;
}

.support-brand strong {
  display: block;
  font-size: 20px;
}

.support-brand span:not(.support-seal) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.support-link,
.policy-link {
  gap: 14px;
  justify-content: center;
  color: var(--green);
  font-weight: 760;
}

.support-link {
  flex-direction: column;
  align-items: flex-start;
}

.support-link .link-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-link .link-value {
  color: var(--green);
  overflow-wrap: anywhere;
}

.policy-link {
  justify-content: space-between;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 18px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(7, 88, 69, 0.12);
  background: #f8eddb;
  color: var(--muted);
  font-size: 13px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .hero-photo {
    width: 72%;
  }

  .hero-copy {
    width: min(600px, 62%);
  }

  .hero-floaters {
    left: auto;
    right: 42%;
  }

  .featured-grid,
  .section-heading,
  .support-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  section[id] {
    scroll-margin-top: 18px;
  }

  .site-header {
    position: static;
    min-height: auto;
    padding-block: 18px;
  }

  .site-nav {
    display: none;
  }

  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-photo,
  .hero-shade {
    position: static;
    width: 100%;
    height: auto;
  }

  .hero-photo {
    order: 2;
    aspect-ratio: 16 / 11;
    object-fit: cover;
  }

  .hero-shade {
    display: none;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 36px 22px 28px;
  }

  .hero-logo {
    width: calc(100vw - 44px);
    max-width: 100%;
  }

  .hero-lede {
    max-width: calc(100vw - 44px);
    font-size: 20px;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .primary-action,
  .secondary-action {
    min-width: 0;
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }

  .hero-floaters {
    position: static;
    order: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 22px 24px;
    background: var(--paper);
  }

  .floating-tile,
  .tile-biblequest {
    width: auto;
    min-height: 74px;
    margin: 0;
  }

  .work-section {
    padding: 28px 18px 22px;
  }

  .carousel-heading,
  .work-carousel-top {
    grid-template-columns: 1fr;
  }

  .carousel-status {
    max-width: 100%;
    width: fit-content;
  }

  .product-card {
    flex-basis: min(82vw, 330px);
  }

  .support-brand,
  .support-link,
  .policy-link {
    min-height: auto;
    padding: 20px 22px;
  }
}

@media (max-width: 520px) {
  .studio-wordmark {
    width: 164px;
  }

  .hero-logo,
  .hero-lede,
  .hero-actions,
  .work-carousel-top h2 {
    max-width: 346px;
  }

  .hero-floaters {
    grid-template-columns: 1fr;
  }

  .feature-body {
    grid-template-columns: 1fr;
  }

  .feature-body .arrow-button {
    justify-self: start;
  }

  .carousel-controls {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding-inline: 16px;
  }

  .work-carousel-top,
  .carousel-track {
    padding-inline: 16px;
  }

  .carousel-controls button {
    width: 44px;
  }

  .carousel-dots button {
    width: 22px;
  }

  .support-brand {
    align-items: flex-start;
  }
}

@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;
  }
}
