:root {
  --ink: #182033;
  --muted: #667085;
  --paper: #fbfaf6;
  --line: #e3ded4;
  --sage: #1c2862;
  --cedar: #30438f;
  --gold: #edc75e;
  --blue: #5168d9;
  --soft: #f5f2eb;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(30, 40, 98, .14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(81,104,217,.10), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 38%, #f6f3ec 100%);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(28, 40, 98, .94);
  border-bottom: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 22px rgba(81,104,217,.42);
}
.brand strong { color: white; }
.brand small {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-family: Arial, sans-serif;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.nav a {
  text-decoration: none;
  color: rgba(255,255,255,.76);
  white-space: nowrap;
}
.nav a:hover { color: white; }
.nav-cta {
  padding: 9px 13px;
  background: linear-gradient(180deg, #ffe27a, var(--gold));
  color: #1f1600 !important;
  border: 1px solid #fff0a5;
  border-radius: 6px;
  box-shadow: 0 0 22px rgba(245,198,75,.28);
}

.home-hero,
.story-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: center;
  padding: 54px 5vw 46px;
  color: white;
  background:
    radial-gradient(circle at 75% 20%, rgba(92,70,210,.22), transparent 30%),
    radial-gradient(circle at 18% 10%, rgba(237,199,94,.10), transparent 22%),
    linear-gradient(135deg, #071123 0%, #0e1d3d 48%, #1b1a63 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,17,35,.98) 0%, rgba(7,17,35,.90) 40%, rgba(7,17,35,.50) 100%),
    url("/assets/images/home-screen-1.png?v=20260601-mobile-art") right 18% center/auto 118% no-repeat;
  opacity: .42;
  filter: saturate(.85);
  pointer-events: none;
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(237,199,94,.16), rgba(92,70,210,.10) 38%, transparent 68%);
  pointer-events: none;
}
.home-hero > *,
.story-hero > * {
  position: relative;
  z-index: 1;
}
.story-hero {
  background:
    radial-gradient(circle at 86% 14%, rgba(237,199,94,.13), transparent 26%),
    linear-gradient(135deg, #1a225d 0%, #2b3f9d 58%, #372a70 100%);
  min-height: 360px;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
.home-copy,
.story-hero-text,
.collection-hero {
  max-width: 850px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font: 700 12px/1.2 Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(38px, 6vw, 74px); max-width: 980px; font-weight: 780; }
h2 { font-size: clamp(25px, 3.4vw, 38px); font-weight: 760; }
h3 { font-size: 22px; font-weight: 760; }
.lede {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 22px;
  color: rgba(255,255,255,.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--sage);
  border-radius: 6px;
  font: 700 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}
.button.primary {
  background: linear-gradient(180deg, #ffe985, var(--gold));
  color: #1d1500;
  border-color: #fff1a7;
  box-shadow: 0 0 28px rgba(245,198,75,.24);
}
.button.secondary { background: rgba(255,255,255,.92); color: var(--sage); }
.button.wide { width: 100%; }

.home-feature {
  align-self: center;
  display: grid;
  gap: 16px;
  max-width: 470px;
  justify-self: end;
  padding: 18px;
  background: rgba(11, 21, 50, .68);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.38), 0 0 40px rgba(92,70,210,.18);
  backdrop-filter: blur(8px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.screen-stack {
  position: relative;
  min-height: 510px;
  isolation: isolate;
}
.home-screen {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}
.screen-main {
  position: absolute;
  top: 0;
  right: 56px;
  width: min(78%, 330px);
  height: 500px;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
}
.screen-small {
  position: absolute;
  width: 42%;
  height: 290px;
  object-fit: cover;
  opacity: .72;
  filter: saturate(.88) brightness(.88);
  z-index: 1;
}
.screen-left {
  left: 0;
  top: 84px;
  object-position: top center;
}
.screen-right {
  right: 0;
  bottom: 14px;
  object-position: top center;
}
.app-preview-copy {
  padding: 18px 20px;
  background: rgba(20, 34, 76, .74);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
}
.app-preview-copy h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}
.app-preview-copy p {
  color: rgba(255,255,255,.82);
  margin: 0 0 16px;
  font-family: Arial, sans-serif;
}
.app-preview-copy .eyebrow {
  color: var(--gold);
  margin-bottom: 10px;
}
.metric {
  display: block;
  color: var(--gold);
  font: 800 42px/1 Arial, sans-serif;
  text-shadow: 0 2px 0 #9b5d00, 0 0 20px rgba(245,198,75,.30);
}

.intent-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.intent-band a {
  min-height: 112px;
  padding: 24px 5vw 24px 24px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.intent-band span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.section-heading,
.related-section,
.story-list-section,
.conversion-band,
.feature-columns,
.story-shell {
  padding: 58px 5vw;
}
.section-heading p { max-width: 760px; color: var(--muted); font-size: 18px; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0 5vw 64px;
}
.story-grid.three { padding: 0; }
.story-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(10, 9, 82, .08);
}
.story-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--soft);
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-card-body { padding: 20px; }
.story-card h3 a { text-decoration: none; }
.story-card p { color: var(--muted); }

.conversion-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(circle at 85% 22%, rgba(245,198,75,.18), transparent 28%),
    linear-gradient(135deg, var(--sage), var(--cedar));
  color: white;
}
.conversion-band p { max-width: 780px; color: rgba(255,255,255,.84); }
.conversion-band .eyebrow { color: #ffe3ac; }
.conversion-band .button { border-color: white; background: white; color: var(--ink); }

.collection-hero {
  padding: 70px 5vw 40px;
}
.collection-hero .lede {
  color: var(--muted);
  font-size: 20px;
}
.collection-hero .eyebrow,
.section-heading .eyebrow {
  color: var(--cedar);
}

.story-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}
.story-main {
  max-width: 900px;
  font-size: 18px;
  line-height: 1.72;
}
.story-main h2 { margin-top: 32px; }
.mobile-story-intro {
  display: none;
}
.mobile-title-art {
  display: none;
}
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}
.info-strip span {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.info-strip strong {
  display: block;
  color: var(--cedar);
  font-size: 12px;
  text-transform: uppercase;
}
.source-note {
  padding: 16px;
  background: #f8f3ea;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--muted);
}
.artwork-note {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
  margin: 34px 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(10, 9, 82, .08);
}
.artwork-note h2 {
  font-size: 26px;
  margin-bottom: 16px;
}
.artwork-note .eyebrow {
  text-transform: none;
}
.artwork-note dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 16px;
}
.artwork-note dl div {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.artwork-note dt {
  color: var(--cedar);
  font: 700 12px/1 Arial, sans-serif;
  text-transform: uppercase;
}
.artwork-note dd {
  margin: 6px 0 0;
  color: var(--ink);
  font: 15px/1.45 Arial, sans-serif;
}
.artwork-note p {
  color: var(--muted);
}
.artwork-note a {
  color: var(--cedar);
}
.artwork-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f1;
}
.artwork-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.artwork-figure figcaption {
  padding: 12px 14px;
  color: var(--muted);
  background: #fbfaf6;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.artwork-copy {
  min-width: 0;
}
.lesson-box,
.app-panel,
.verse-panel {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(10, 9, 82, .08);
}
.lesson-box h2,
.app-panel h2,
.verse-panel h2 { font-size: 24px; }
.question-list { padding-left: 24px; }
.story-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 94px;
}
.story-aside p,
.story-aside li {
  color: var(--muted);
  font-family: Arial, sans-serif;
}
.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-columns > div {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}
.feature-columns p { color: var(--muted); }
.image-fallback {
  min-height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: Arial, sans-serif;
}
.image-fallback.large { min-height: 420px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 5vw;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(245,198,75,.12), transparent 26%),
    linear-gradient(135deg, #04024e, #11066c);
  color: white;
}
.site-footer p {
  max-width: 620px;
  color: rgba(255,255,255,.72);
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a { color: rgba(255,255,255,.82); }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { flex-wrap: wrap; }
  .home-hero,
  .story-hero,
  .story-shell,
  .artwork-note,
  .feature-columns {
    grid-template-columns: 1fr;
  }
  .intent-band,
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-aside { position: static; }
  .artwork-figure img { aspect-ratio: 16/10; }
  .home-feature {
    justify-self: stretch;
    max-width: none;
  }
  .screen-stack {
    min-height: 420px;
  }
  .screen-main {
    right: 50%;
    transform: translateX(50%);
    height: 410px;
    width: min(76%, 310px);
  }
  .screen-small {
    height: 230px;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    padding: 12px 5vw;
    gap: 10px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    font-size: 13px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  h1 { font-size: 42px; }
  .lede { font-size: 19px; }
  .story-hero {
    display: none;
  }
  .story-shell {
    padding: 20px 5vw 24px;
    gap: 16px;
  }
  .mobile-story-intro {
    display: block;
    margin-bottom: 14px;
  }
  .mobile-story-intro h1 {
    font-size: 36px;
    line-height: 1.06;
  }
  .mobile-title-art {
    display: block;
    margin: 12px 0 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8f6f1;
  }
  .mobile-title-art img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
  }
  .mobile-title-art figcaption {
    padding: 9px 11px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    background: #fbfaf6;
    border-top: 1px solid var(--line);
  }
  .mobile-story-intro p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.34;
  }
  .mobile-story-intro .hero-actions {
    margin-top: 14px;
  }
  .mobile-story-intro .button {
    width: 100%;
  }
  .story-main {
    font-size: 17px;
    line-height: 1.5;
  }
  .story-main h2 {
    margin-top: 20px;
    font-size: 25px;
  }
  .info-strip {
    gap: 8px;
    margin-bottom: 18px;
  }
  .info-strip span {
    padding: 12px;
  }
  .home-page {
    display: flex;
    flex-direction: column;
  }
  .home-page > .section-heading {
    order: 1;
  }
  .home-page > .story-grid {
    order: 2;
  }
  .home-page > .home-hero {
    order: 3;
  }
  .home-page > .intent-band {
    order: 4;
  }
  .home-page > .conversion-band {
    order: 5;
  }
  .section-heading {
    padding: 28px 5vw 14px;
  }
  .section-heading p {
    margin: 10px 0 0;
    font-size: 18px;
    line-height: 1.36;
  }
  .story-grid {
    gap: 16px;
    padding: 0 5vw 34px;
  }
  .story-card-body {
    padding: 16px;
  }
  .home-hero {
    display: grid;
    gap: 18px;
    padding: 28px 5vw 32px;
    min-height: auto;
  }
  .story-hero { padding-bottom: 38px; }
  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(7,17,35,.95), rgba(7,17,35,.78)),
      url("/assets/images/home-screen-1.png?v=20260601-mobile-art") center top/115% auto no-repeat;
    opacity: .32;
  }
  .home-feature {
    padding: 12px;
    border-radius: 16px;
  }
  .screen-stack {
    display: none;
  }
  .app-preview-copy {
    padding: 16px;
  }
  .app-preview-copy h2 {
    font-size: 24px;
    line-height: 1.12;
    margin-bottom: 8px;
  }
  .app-preview-copy p {
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .home-copy .lede {
    line-height: 1.34;
    margin-top: 14px;
  }
  .home-copy .hero-actions {
    margin-top: 20px;
  }
  .intent-band {
    display: grid;
    border-top: 1px solid var(--line);
  }
  .intent-band a {
    min-height: auto;
    padding: 16px 5vw;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .intent-band span {
    margin-top: 4px;
    line-height: 1.35;
  }
  .artwork-note {
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
  }
  .artwork-note .artwork-figure {
    display: none;
  }
  .artwork-note h2 { font-size: 24px; }
  .artwork-note dl {
    gap: 8px;
    margin-bottom: 12px;
  }
  .lesson-box,
  .app-panel,
  .verse-panel {
    padding: 16px;
  }
  .story-aside {
    gap: 12px;
  }
  .related-section {
    padding: 22px 5vw 34px;
  }
  .intent-band,
  .story-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }
  .story-grid { padding-left: 5vw; padding-right: 5vw; }
  .site-footer,
  .conversion-band { flex-direction: column; align-items: flex-start; }
}
