/* Riso Dawn Printed Poster Stylesheet for Men's Bible (https://mensdevotional.app)
   Grounded in ~/Projects/art/directions/mensbible-riso-dawn.json and src/theme/colors.ts */

:root {
  --ivory: #FFF2EB;
  --parchment: #F9E3D6;
  --blush: #F8D5C2;
  --ink: #28172F;
  --ink-soft: #5D4E63;
  --ink-faint: #84748A;
  --persimmon: #EC6A45;
  --rose: #D9573A;
  --gold-ink: #A33B1A;
  --butter: #F7C843;
  --fern: #3E7A63;
  --olive: #1E5E4A;
  --night: #1A0F1F;
  --starlight: #FFF1D0;
  --white: #FFFFFF;
  --hairline: rgba(40, 23, 47, 0.14);
  --radius: 12px;
  --font-display: 'Anybody', system-ui, -apple-system, sans-serif;
  --font-body: 'Karla', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER — Single-row desktop, crisp 56px mobile bar with drawer
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 242, 235, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}

body.share-letter .site-header {
  position: relative;
}

.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 2px;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav a:hover { color: var(--gold-ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--ivory) !important;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--persimmon);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.1s ease;
}

.nav-cta:hover { transform: translate(-1px, -1px); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 9px;
  border: 2px solid var(--ink);
  background: var(--ivory);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================
   TYPOGRAPHY — Poster Display + Crisp Karla Body & Small Heads
   ============================================================ */
h1, h2 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  margin-top: 0;
}

h1 {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h2 {
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  margin: 0 0 14px;
}

.prose h2 { margin-top: 40px; }

/* Small headings use Karla 700 instead of lumpy Anybody 900 */
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 8px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: var(--ivory);
  color: var(--ink);
  padding: 4px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  margin-bottom: 14px;
}

/* ============================================================
   POSTER DAWN HERO (Homepage) + STANDARD HEROES
   ============================================================ */
.hero {
  background: var(--persimmon);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 48px 0 44px;
}

.hero.compact {
  padding: 36px 0 34px;
}

.hero.night {
  background:
    linear-gradient(180deg, rgba(26, 15, 31, 0.72) 0%, rgba(26, 15, 31, 0.84) 100%),
    url('/art/scene-night.webp') center bottom / cover no-repeat;
  color: var(--starlight);
}

.hero.night .eyebrow {
  background: var(--butter);
  color: var(--ink);
}

.hero.night .lede,
.hero.night .breadcrumbs,
.hero.night .breadcrumbs a,
.hero.night a {
  color: var(--starlight);
}

/* Full-bleed Riso Dawn Poster Hero — sky holds type, ridge & sun sit along bottom */
.hero-poster {
  position: relative;
  background:
    linear-gradient(180deg, rgba(236, 106, 69, 0.16) 0%, rgba(236, 106, 69, 0.08) 64%, rgba(40, 23, 47, 0.22) 100%),
    url('/art/scene-dawn.webp') center 52% / cover no-repeat;
  background-color: var(--persimmon);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 52px 0 58px;
  overflow: hidden;
}

.hero-poster-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.poster-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 74;
  font-weight: 900;
  font-size: clamp(48px, 8.6vw, 108px);
  line-height: 0.93;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--ink);
}

.poster-title .butter-ink {
  color: var(--butter);
  text-shadow: 3px 3px 0 var(--olive);
  display: inline-block;
}

.hero-poster .lede {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.48;
  max-width: 44ch;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  width: 100%;
  max-width: 288px;
  border-radius: 30px;
  filter: drop-shadow(8px 10px 0 rgba(40, 23, 47, 0.92));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hero-plate {
  border-radius: 14px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  background: var(--parchment);
  max-width: 360px;
  margin-left: auto;
}

.hero-plate img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-meta {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 0;
  color: var(--ink);
}

/* ============================================================
   BADGES + DESKTOP QR INSTALL WIDGET (60px Play badge)
   ============================================================ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 18px 0 8px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin: 16px 0 8px;
}

.cta-row .badges { margin: 0; }

.badges a {
  display: inline-block;
  line-height: 0;
}

.badges img {
  height: 56px;
  width: auto;
  border-radius: 9px;
}

.hero-poster .badges img,
.soft-wall .badges img,
.night-band .badges img {
  height: 60px;
}

.qr-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ivory);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 5px 12px 5px 6px;
  box-shadow: 3px 3px 0 var(--ink);
}

.qr-install img {
  width: 52px;
  height: 52px;
  border-radius: 5px;
  display: block;
}

.qr-caption {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 11ch;
}

.soft-wall .qr-install,
.night-band .qr-install {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--butter);
  box-shadow: 3px 3px 0 var(--butter);
}

/* ============================================================
   SECTIONS — Alternating Poster Grounds (Ivory / Fern / Night / Parchment)
   ============================================================ */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--parchment);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* Fern Green Band (#13) */
.section-fern {
  background: var(--olive);
  color: var(--ivory);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 58px 0;
}

.section-fern h2 { color: var(--butter); }
.section-fern p { color: rgba(255, 242, 235, 0.9); }
.section-fern .section-intro { max-width: 58ch; margin: 0 0 24px; font-size: 18px; }

/* Full-Bleed Night Band (#8, #13) — starry sky + porch silhouette */
.night-band {
  position: relative;
  background:
    linear-gradient(95deg, rgba(26, 15, 31, 0.84) 0%, rgba(26, 15, 31, 0.62) 55%, rgba(26, 15, 31, 0.34) 100%),
    url('/art/scene-night.webp') center 58% / cover no-repeat;
  background-color: var(--night);
  color: var(--starlight);
  border-bottom: 2px solid var(--ink);
  padding: 68px 0;
}

.night-band h2 {
  color: var(--butter);
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 14px;
}

.night-band .eyebrow {
  background: var(--butter);
  color: var(--ink);
  border-color: var(--ink);
}

.night-band p { color: rgba(255, 241, 208, 0.92); }
.night-band a:not(.btn) { color: var(--butter); }

.night-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.night-quote-card {
  background: rgba(26, 15, 31, 0.82);
  border: 2px solid rgba(255, 241, 208, 0.28);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}

.night-quote-card .kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--butter);
  margin: 0 0 8px;
}

.night-quote-card h3 {
  color: var(--starlight);
  font-size: 22px;
  margin-bottom: 12px;
}

.night-quote-card .audio-bar {
  background: rgba(255, 241, 208, 0.09);
  border-color: rgba(255, 241, 208, 0.26);
}

.night-quote-card .audio-bar .btn {
  background: var(--butter);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--persimmon);
}

.night-quote-card .audio-bar .btn:hover { background: #ffd45a; color: var(--ink); }

.night-quote-card .audio-meta { color: var(--starlight); }
.night-quote-card .audio-progress { background: rgba(255, 241, 208, 0.2); }
.night-quote-card .audio-fill { background: var(--butter); }
.night-quote-card .audio-wall { border-top-color: rgba(255, 241, 208, 0.2); color: var(--starlight); }

/* Prayer-as-pitch Pull Quote (Homepage band 2) */
.pitch-quote {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 78;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 24ch;
}

.pitch-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 26px;
}

/* ============================================================
   HORIZONTAL RAIL (#8) — Breaks Grid-Grid Repetition
   ============================================================ */
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 18px;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: rgba(255, 242, 235, 0.16); border-radius: 999px; }
.rail::-webkit-scrollbar-thumb { background: var(--butter); border-radius: 999px; }

.rail-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--ivory);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rail-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

.rail-card .card-img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
}

.rail-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   NUMBERED POSTER LIST (Journeys on Homepage — breaks box grids)
   ============================================================ */
.poster-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  margin-top: 22px;
}

.poster-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s ease;
}

.poster-row:hover { color: var(--gold-ink); transform: translateX(3px); }

.poster-thumb {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.poster-num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 76;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--olive);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.poster-row h3 { margin: 0 0 4px; font-size: 19px; color: var(--ink); }
.poster-row p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   EXPANDABLE FACTS DRAWER (Homepage #8) + FULL FACTS BLOCK
   ============================================================ */
.facts-drawer {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  overflow: hidden;
}

.facts-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 76;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  background: var(--parchment);
}

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

.facts-drawer summary::after {
  content: '+';
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ivory);
  flex-shrink: 0;
}

.facts-drawer[open] summary {
  border-bottom: 2px solid var(--ink);
}

.facts-drawer[open] summary::after { content: '–'; }

.facts-drawer .facts-inner { padding: 12px 24px 22px; }

.facts {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 30px 0;
}

.facts h2 { margin-top: 0; font-size: 22px; }
.facts dl, .facts-drawer dl { margin: 0; }
.fact-row {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.fact-row:first-child { border-top: 0; padding-top: 4px; }
.fact-row dt { font-weight: 700; color: var(--ink); }
.fact-row dd { margin: 0; color: var(--ink-soft); }

/* ============================================================
   EDITORIAL ARTICLE ELEMENTS (Guides & FAQ — #9)
   ============================================================ */
.article-plate {
  margin: 0 0 28px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  background: var(--parchment);
}

.article-plate img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 62%;
}

.article-plate figcaption {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  border-top: 2px solid var(--ink);
  background: var(--ivory);
}

/* Editorial Pull-Quote for Short Answer (replaces heavy white box) */
.verdict-card {
  background: transparent;
  border: 0;
  border-left: 5px solid var(--persimmon);
  border-radius: 0;
  box-shadow: none;
  padding: 6px 0 6px 22px;
  margin: 26px 0 32px;
}

.verdict-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--olive);
  margin: 0 0 8px;
}

.verdict-card p:not(.verdict-kicker) {
  font-size: 20px;
  line-height: 1.52;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
}

/* Editorial Prose Column (64ch reading width) */
.prose p { margin: 0 0 18px; max-width: 64ch; }
.prose ul { margin: 0 0 20px; padding-left: 22px; max-width: 64ch; }
.prose li { margin-bottom: 8px; }

/* FAQ items with crisp hairline rules */
.faq-list {
  margin: 24px 0 32px;
  border-top: 2px solid var(--ink);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.faq-item h2,
.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
}

.faq-item p { margin: 0; color: var(--ink-soft); max-width: 64ch; }

/* Tables — clean desktop, stacked labelled rows on phones (#9) */
.table-wrap {
  margin: 26px 0 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
  background: var(--parchment);
  border-bottom: 2px solid var(--ink);
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  background: var(--ivory);
  font-weight: 700;
  color: var(--ink);
}

tr:last-child td { border-bottom: 0; }

/* ============================================================
   GRIDS, CARDS & PRAYERS HUB (2 Featured + 3x3 = Zero Orphan Row)
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.prayers-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-link {
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.card-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
}

.card-img {
  border-radius: 8px;
  border: 2px solid var(--ink);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.card-img-wide {
  border-radius: 8px;
  border: 2px solid var(--ink);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 65%;
  width: 100%;
}

.card-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--olive);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.card-opening {
  font-style: italic;
  color: var(--ink) !important;
  font-size: 15.5px !important;
  line-height: 1.5;
  border-left: 3px solid var(--persimmon);
  padding-left: 11px;
  margin-top: 2px !important;
}

/* ============================================================
   READING CARDS & LETTER-STYLE SHARED PRAYER PAGE (#2, #3, #4)
   ============================================================ */
.reading-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 28px;
  margin: 22px 0;
}

.reading-card .kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  margin: 0 0 6px;
}

.reading-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.verse-quote {
  margin: 16px 0 20px;
  padding: 15px 18px;
  background: var(--ivory);
  border-left: 4px solid var(--persimmon);
  border-radius: 0 8px 8px 0;
}

.verse-quote p { margin: 0 0 6px; font-style: italic; color: var(--ink); font-size: 17.5px; }
.verse-quote cite { font-style: normal; font-weight: 700; font-size: 14px; color: var(--gold-ink); }

.reading-body p {
  margin: 0 0 15px;
  color: var(--ink);
}

/* Full-bleed Letter Hero for /p/... shared links */
.letter-hero {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: flex-start;
  padding: 36px 0 72px;
  background-color: var(--persimmon);
  background-image:
    linear-gradient(180deg, rgba(236, 106, 69, 0.20) 0%, rgba(236, 106, 69, 0.06) 55%, rgba(40, 23, 47, 0.35) 100%),
    url('/art/scene-dawn.webp');
  background-size: cover;
  background-position: center 48%;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}

.letter-hero[data-scene="day"] {
  background-image:
    linear-gradient(180deg, rgba(255, 242, 235, 0.32) 0%, rgba(255, 242, 235, 0.10) 60%, rgba(40, 23, 47, 0.25) 100%),
    url('/art/scene-day.webp');
}

.letter-hero[data-scene="dusk"] {
  background-image:
    linear-gradient(180deg, rgba(40, 23, 47, 0.48) 0%, rgba(40, 23, 47, 0.22) 60%, rgba(40, 23, 47, 0.55) 100%),
    url('/art/scene-dusk.webp');
  color: var(--starlight);
}

.letter-hero[data-scene="night"] {
  background-image:
    linear-gradient(180deg, rgba(26, 15, 31, 0.42) 0%, rgba(26, 15, 31, 0.16) 58%, rgba(26, 15, 31, 0.58) 100%),
    url('/art/scene-night.webp');
  color: var(--starlight);
}

.letter-sender {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ivory);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.letter-hero[data-scene="night"] .letter-sender,
.letter-hero[data-scene="dusk"] .letter-sender {
  background: var(--butter);
  color: var(--ink);
}

/* Sentence-case shared-prayer title (#14) */
.letter-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 78;
  font-weight: 800;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.08;
  text-transform: none;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
}

.letter-sheet-wrap {
  position: relative;
  z-index: 5;
  margin-top: -46px;
  padding-bottom: 44px;
}

.letter-sheet {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 32px 30px 28px;
}

/* Warm sunrise bloom behind the card on Amen (#4) */
.letter-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 115%, rgba(247, 200, 67, 0.42) 0%, rgba(236, 106, 69, 0.18) 45%, transparent 74%);
  opacity: 0;
  transform: translateY(34%);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.letter-sheet.amen-risen::before {
  opacity: 1;
  transform: translateY(0);
}

.letter-sheet > * { position: relative; z-index: 1; }

.letter-body {
  font-size: 20.5px;
  line-height: 1.72;
  color: var(--ink);
}

.letter-body p { margin: 0 0 18px; }
.letter-body p:last-child { margin-bottom: 0; }

/* Full-width 56px Amen button (#4) */
.btn-amen-hero {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  background: var(--olive);
  color: var(--ivory);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  margin-top: 22px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.12s ease;
}

.btn-amen-hero:hover { background: #174b3a; transform: translate(-1px, -1px); }

.btn-amen-hero.prayed {
  background: var(--butter);
  color: var(--ink);
}

/* Reciprocal Spouse Loop revealed after Amen (#4) */
.spouse-loop {
  display: none;
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--parchment);
  border: 2px solid var(--ink);
  border-radius: 12px;
  animation: fadeSlideUp 0.4s ease both;
}

.spouse-loop.show { display: block; }
.spouse-loop p { margin: 0 0 12px; color: var(--ink); font-size: 16px; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS & AUDIO PLAYERS (Round 56px Full Player + 30s Preview)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--ivory);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--persimmon);
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:hover { background: #3b2345; color: var(--ivory); transform: translate(-1px, -1px); }

.btn-butter {
  background: var(--butter);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-butter:hover { background: #ffd252; color: var(--ink); }

.btn-secondary {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-secondary:hover { background: var(--blush); color: var(--ink); }

.btn-fern {
  background: var(--olive);
  color: var(--ivory);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-fern:hover { background: #164838; color: var(--ivory); }

.btn-fern.prayed {
  background: var(--butter);
  color: var(--ink);
}

/* Library 30s audio bar */
.audio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--parchment);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
  margin: 18px 0;
}

/* Full shared-prayer player with round 56px play button (#3) */
.audio-bar.audio-full {
  background: var(--ivory);
  padding: 14px 16px;
  gap: 16px;
}

.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 3px 3px 0 var(--persimmon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease, background 0.15s ease;
}

.play-circle:hover { background: #3b2345; transform: translate(-1px, -1px); }
.play-circle svg { width: 22px; height: 22px; fill: currentColor; }

.audio-meta {
  flex: 1;
  min-width: 170px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.audio-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.audio-time {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-soft);
}

.audio-progress {
  height: 7px;
  background: rgba(40, 23, 47, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  cursor: pointer;
}

.audio-fill {
  height: 100%;
  width: 0%;
  background: var(--persimmon);
  transition: width 0.15s linear;
}

.audio-wall {
  display: none;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 600;
}

.audio-wall.show { display: block; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.letter-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
}

/* Soft wall CTA */
.soft-wall {
  background: var(--ink);
  color: var(--ivory);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--persimmon);
  padding: 30px;
  margin: 36px 0;
}

.soft-wall h2, .soft-wall h3 { color: var(--butter); margin-top: 0; }
.soft-wall p { color: var(--ivory); margin: 0 0 16px; }
.soft-wall a:not(.btn) { color: var(--butter); }

/* Breadcrumbs & Navigation links */
.breadcrumbs {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}

.breadcrumbs a { color: var(--ink); }

.link-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 18px;
}

.link-list li a {
  display: block;
  padding: 7px 0;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

.link-list li a:hover { color: var(--ink); border-bottom-color: var(--persimmon); }

/* Language pills live in the footer (#6) */
.lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.lang-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
}

.lang-pill.active,
.lang-pill:hover {
  background: var(--ink);
  color: var(--ivory);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 2px solid var(--ink);
  background: var(--parchment);
  padding: 40px 0 46px;
  margin-top: 52px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

footer h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  color: var(--ink);
}

footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--gold-ink); text-decoration: underline; }

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.footer-langs-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE — Crisp 56px Mobile Header, Stacked Tables, Clean Art
   ============================================================ */
@media (max-width: 820px) {
  .wrap, .wrap-narrow { padding: 0 18px; }

  .site-header .inner {
    height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand img { width: 30px; height: 30px; border-radius: 7px; }
  .brand-name { font-size: 15.5px; }
  .brand-sub { display: none; }

  .nav-cta {
    padding: 6px 11px;
    font-size: 13px;
    border-radius: 8px;
    box-shadow: 2px 2px 0 var(--persimmon);
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 2px solid var(--ink);
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    box-shadow: 0 10px 24px rgba(40, 23, 47, 0.14);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 10px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav a:last-child { border-bottom: 0; }

  .hero-poster { padding: 34px 0 38px; background-position: center bottom; }
  .hero-poster-grid,
  .hero-grid,
  .night-grid,
  .grid-3,
  .grid-2,
  .prayers-featured,
  .poster-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-phone { max-width: 248px; margin-top: 8px; }
  .hero-plate { margin-left: 0; max-width: 100%; }
  .qr-install { display: none; }
  .fact-row { grid-template-columns: 1fr; gap: 4px; }

  .letter-hero { min-height: 230px; padding: 26px 0 60px; }
  .letter-sheet { padding: 24px 20px 22px; }
  .letter-body { font-size: 19.5px; }
}

/* Stack comparison tables into clean labelled rows on phones (#9) */
@media (max-width: 680px) {
  .table-wrap { border: 0; background: transparent; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  caption {
    display: block;
    border: 2px solid var(--ink);
    border-radius: 10px 10px 0 0;
  }
  tr {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  td {
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0;
  }
  td:last-child { border-bottom: 0; }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--olive);
    margin-bottom: 2px;
  }
}
