.page-background {
  background-position: 68% center;
}

.hero-shade {
  background:
    radial-gradient(circle at 28% 42%, rgba(2, 11, 22, .36), transparent 34rem),
    linear-gradient(90deg, rgba(2, 11, 22, .42) 0%, rgba(2, 11, 22, .12) 44%, rgba(2, 11, 22, .02) 72%),
    linear-gradient(0deg, rgba(2, 11, 22, .24) 0%, transparent 32%);
}

.hero-copy {
  max-width: 72rem;
}

.hero-mission {
  width: min(31rem, 100%);
  margin-top: 1.6rem;
  border: 1px solid rgba(255, 215, 132, .34);
  border-radius: 1rem;
  background: rgba(4, 18, 37, .68);
  padding: 1rem 1.15rem;
  text-align: left;
  backdrop-filter: blur(10px);
}

.hero-mission blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  line-height: 1.35;
}

.reader-mission-reference {
  margin: .35rem 0 0;
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 800;
}

.reader-goal {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: .65rem;
  margin: .55rem 0 0;
}

.reader-goal strong {
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.reader-goal span {
  color: var(--mist);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.reader-heading {
  max-width: 60rem;
}

.reader-heading h2 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
}

.inline-reader {
  margin-top: 2rem;
  border: 1px solid rgba(255, 215, 132, .34);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(11, 43, 80, .9), rgba(4, 18, 37, .94));
  padding: clamp(1.4rem, 4vw, 2.6rem);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px);
}

.reader-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  align-items: stretch;
}

.reader-navigation label {
  grid-column: 1 / -1;
  display: grid;
  gap: .65rem;
  color: var(--gold-200);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.reader-navigation select,
.reader-navigation button,
.reader-tools button {
  border: 1px solid var(--line-soft);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
}

.reader-navigation select {
  width: 100%;
  min-height: 5.75rem;
  border: 2px solid rgba(255, 215, 132, .72);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .1);
  padding: 0 1.25rem;
  color: var(--white);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.reader-navigation select:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
}

.reader-navigation option {
  color: #07182d;
}

.reader-navigation button {
  min-height: 3.8rem;
  padding: .7rem 1rem;
  font-size: 1rem;
  font-weight: 800;
}

.reader-navigation button:disabled,
.reader-tools button:disabled {
  color: var(--muted);
  opacity: .58;
}

.reader-text {
  margin-top: 1.35rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: rgba(2, 11, 22, .38);
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.reader-text h3 {
  margin: 0 0 .6rem;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.reader-text p {
  margin: .5rem 0 0;
  color: var(--mist);
}

.reader-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.reader-tools button {
  min-height: 2.7rem;
  padding: .55rem .75rem;
}

@media (max-width: 700px) {
  .page-background {
    background-position: 72% center;
  }

  .hero-mission {
    width: 100%;
  }

  .reader-heading h2 {
    font-size: 2.5rem;
  }

  .reader-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .reader-navigation select {
    min-height: 4.75rem;
    font-size: 1.08rem;
  }
}


/* Reader R2 — governed reading experience */

.reader-text {
  min-height: 28rem;
}

.reader-passage {
  --reader-font-scale: 1;
  max-height: min(62vh, 48rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: clamp(.2rem, 1vw, .8rem);
}

.reader-passage h4 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 0 1rem;
  padding: .35rem 0 .75rem;
  background: #07182d;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(1.55rem * var(--reader-font-scale));
  line-height: 1.25;
}

.reader-verses {
  max-width: 48rem;
  margin-inline: auto;
}

.reader-verses p {
  margin: 0 0 .9em;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(1.18rem * var(--reader-font-scale));
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: .012em;
  text-wrap: pretty;
}

.reader-verses sup {
  margin-inline-end: .28em;
  color: var(--gold-300);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .62em;
  font-weight: 800;
  line-height: 0;
}

.reader-tools button:not(:disabled) {
  cursor: pointer;
  border-color: rgba(255, 215, 132, .42);
}

.reader-tools button:not(:disabled):hover {
  background: rgba(255, 255, 255, .12);
}

.reader-tools button:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .inline-reader {
    padding: 1rem;
  }

  .reader-passage {
    max-height: 64vh;
  }

  .reader-verses p {
    line-height: 1.72;
  }

  .reader-tools {
    position: sticky;
    bottom: .5rem;
    z-index: 2;
    padding: .55rem;
    border: 1px solid var(--line-soft);
    border-radius: .9rem;
    background: rgba(4, 18, 37, .94);
    backdrop-filter: blur(10px);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-header,
  .hero,
  .reader-heading,
  .reader-navigation,
  .reader-tools,
  .purpose-wrap,
  .page-background,
  .reader-message {
    display: none !important;
  }

  .bible-section,
  .inline-reader,
  .reader-text,
  .reader-passage {
    margin: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #000;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .reader-passage h4,
  .reader-verses p,
  .reader-verses sup {
    color: #000;
    background: #fff;
  }

  .reader-passage h4 {
    position: static;
  }
}

/* Reader desktop navigation layout */
@media (min-width: 760px) {
  .reader-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: end;
  }

  .reader-navigation label {
    min-width: 0;
  }

  .reader-navigation select {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .reader-navigation {
    grid-template-columns:
      minmax(8rem, 0.9fr)
      minmax(13rem, 1.35fr)
      minmax(9rem, 0.85fr)
      minmax(6rem, 0.45fr);
  }
}

/* Reader navigation final layout override */
@media (min-width: 700px) {
  .inline-reader .reader-navigation {
    display: grid !important;
    grid-template-columns:
      minmax(8rem, 0.9fr)
      minmax(13rem, 1.35fr)
      minmax(9rem, 0.85fr)
      minmax(6rem, 0.45fr) !important;
    gap: 1rem 1.25rem !important;
    align-items: end !important;
  }

  .inline-reader .reader-navigation label {
    display: grid !important;
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .inline-reader .reader-navigation select {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* Reader R3 — bounded responsive layout */
@media (max-width: 700px) {
  .inline-reader {
    padding: clamp(.9rem, 3.5vw, 1.4rem);
  }

  .reader-navigation {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .reader-navigation label {
    grid-column: 1;
  }

  .reader-navigation select {
    min-height: 4rem;
    padding-inline: .9rem;
    font-size: clamp(1rem, 4.2vw, 1.2rem);
  }

  .reader-text {
    min-height: 0;
    padding: clamp(1rem, 3.5vw, 1.4rem);
  }

  .reader-passage {
    max-height: min(62vh, 36rem);
    padding-right: .25rem;
  }

  .reader-verses p {
    font-size: calc(1.08rem * var(--reader-font-scale));
    line-height: 1.72;
  }

  .reader-tools {
    gap: .5rem;
  }

  .reader-tools button {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .reader-heading h2 {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  .reader-navigation select {
    min-height: 3.65rem;
  }

  .reader-tools button {
    flex: 1 1 calc(50% - .5rem);
  }
}


/* Reader R4 — keep mobile controls out of the reading surface */
@media (max-width: 700px) {
  .reader-tools {
    position: static;
    margin-top: 1rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }
}


/* Reader R5 — public capability surfaces */
.reader-mode {
  display: grid;
  grid-template-columns: auto minmax(0, 16rem);
  gap: .65rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.reader-mode label {
  color: var(--gold-200);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.reader-mode select {
  min-height: 3rem;
  border: 1px solid var(--line-soft);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  padding: 0 .8rem;
  font-size: 1rem;
  font-weight: 700;
}

.reader-mode select:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
}

.reader-mode option {
  color: #07182d;
}

.reader-mode-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mist);
  font-size: .9rem;
}

@media (max-width: 700px) {
  .reader-mode {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
  }

  .reader-mode select {
    width: 100%;
  }
}
