/* Palette matches the Kingdoms of Scripture title splash. */
:root {
  --sand: #d9c49a;
  --night: #1b2a4a;
  --gold: #e8b84b;
  --night-deep: #101a30;
  --ink: #f2ead8;
  --muted: #cdd7ea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--night-deep);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
.cta-play:focus-visible,
.cta-study:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus,
.skip:focus-visible {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--night);
  color: var(--ink);
  text-decoration: underline;
}

#landing {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px max(18px, 3vh);
  background:
    url(/title.jpg) center / cover no-repeat,
    radial-gradient(ellipse at center, #14213c 0%, #0a1020 78%);
  background-color: var(--night-deep);
}

@media (orientation: portrait) {
  #landing {
    background:
      url(/title-mobile.jpg) left top / cover no-repeat,
      radial-gradient(ellipse at center, #14213c 0%, #0a1020 78%);
    background-color: var(--night-deep);
  }
}

#landing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0) 46%, rgba(8, 12, 24, 0.22) 72%, rgba(8, 12, 24, 0.48) 100%);
}

.brand-lockup {
  position: absolute;
  left: 5vw;
  right: 5vw;
  top: max(24px, 4.5vh);
  z-index: 2;
  pointer-events: none;
  text-align: center;
}

.title {
  margin: 0;
  max-width: 22ch;
  margin-inline: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.98);
}

.subtitle {
  position: static;
  margin-top: 0.6em;
  font-style: normal;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.tagline {
  margin: 0.4em 0 0;
  font-style: italic;
  font-size: 16px;
  color: var(--sand);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

@media (max-width: 560px) and (orientation: portrait) {
  .brand-lockup { top: max(112px, 13dvh); }
}

.screen-inner {
  position: relative;
  z-index: 1;
  width: min(92%, 420px);
  margin-top: auto;
  padding: 8px 8px 4px;
  text-align: center;
}

.menu-verse {
  margin: 0 auto 0;
  padding: 8px 14px 2px;
  max-width: 28rem;
  border-radius: 14px 14px 0 0;
  background: rgba(9, 14, 28, 0.5);
  font-style: italic;
  font-size: 16px;
  color: #bfc9de;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.menu-ref {
  margin: 0 auto 10px;
  padding: 0 14px 8px;
  max-width: 28rem;
  border-radius: 0 0 14px 14px;
  background: rgba(9, 14, 28, 0.5);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.product-distinction,
.lede {
  margin: 0 auto 10px;
  padding: 8px 14px;
  max-width: 28rem;
  border-radius: 12px;
  background: rgba(9, 14, 28, 0.5);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.lede { font-size: 14px; line-height: 1.45; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 16px;
}

.cta-play,
.cta-study {
  display: inline-block;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 17px;
  text-decoration: none;
  border-radius: 7px;
  min-height: 44px;
}

.cta-play {
  color: var(--night);
  background: linear-gradient(180deg, #f5d98a, var(--gold));
  border: 1px solid #8a6a1a;
}

.cta-play:hover { filter: brightness(1.08); }

.cta-study {
  color: var(--ink);
  background: rgba(9, 15, 29, 0.72);
  border: 1px solid rgba(232, 184, 75, 0.78);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header .kicker {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
}

.page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}

.page .lede {
  max-width: none;
  background: transparent;
  padding: 0;
  text-shadow: none;
  font-size: 18px;
  color: var(--muted);
}

.study-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 8px;
  padding: 28px 16px 48px;
  background: var(--night-deep);
}

.study-panel-inner {
  max-width: 760px;
  margin: 0 auto;
}

.study-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 32px);
}

.study-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(232, 184, 75, 0.28);
}

.lesson-list li {
  border-bottom: 1px solid rgba(232, 184, 75, 0.28);
}

.lesson-list a {
  display: block;
  padding: 12px 4px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
}

.lesson-list a:hover,
.lesson-list a:focus-visible {
  background: rgba(232, 184, 75, 0.12);
}

.lesson-order {
  display: inline-block;
  min-width: 7.5rem;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.lesson-span {
  display: block;
  margin-top: 2px;
  color: var(--sand);
  font-size: 14px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 24px;
}

.footer-copy {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lesson-card dt {
  margin: 16px 0 4px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lesson-card dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
