:root {
  --paper: #f7f2e8;
  --paper-deep: #efe7d7;
  --ink: #1f2a2a;
  --body: #4a4a42;
  --burgundy: #7a2332;
  --burgundy-dark: #5f1825;
  --gold: #b69143;
  --white: #ffffff;
  --focus: #17324d;
  --shadow: 0 24px 70px rgba(42, 31, 27, 0.16);
  --video-aspect: 16 / 9;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--body);
  background:
    radial-gradient(circle at 50% -10%, rgba(182, 145, 67, 0.15), transparent 34rem),
    linear-gradient(180deg, var(--paper) 0%, #fbf8f1 54%, var(--paper-deep) 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
video:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.page-shell {
  min-height: calc(100svh - 112px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) 20px 36px;
}

.message-card {
  width: min(100%, 980px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--burgundy);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5.3vw, 58px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.intro {
  max-width: 700px;
  margin: 18px auto 28px;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5;
  text-wrap: balance;
}

.video-shell {
  position: relative;
  width: min(100%, 900px);
  aspect-ratio: var(--video-aspect);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 42, 0.14);
  border-radius: 16px;
  background: #171717;
  box-shadow: var(--shadow);
}

.video-shell[data-format="portrait"] {
  /* Size portrait VSLs by viewport HEIGHT so a 9:16 video feels immersive
     instead of becoming a small phone-shaped box inside a desktop layout. */
  width: min(94vw, calc(86svh * 9 / 16), 560px);
  max-width: 100%;
  --video-aspect: 9 / 16;
  border-radius: 18px;
}

.vsl-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #171717;
  /* Bunny remains the playback engine, but visitors never interact with its
     native timeline. All allowed controls are rendered by this page. */
  pointer-events: none;
  user-select: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 24px;
  border: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.08) 0%, rgba(9, 7, 5, 0.02) 52%, rgba(9, 7, 5, 0.46) 100%),
    url("assets/prohibited-bible-thumbnail.jpg") center / cover no-repeat;
  cursor: pointer;
  transition: opacity 180ms ease, visibility 180ms ease, filter 180ms ease;
}

.play-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(182, 145, 67, 0.58);
  border-radius: inherit;
  pointer-events: none;
}

.play-overlay:hover {
  filter: brightness(1.05);
}

/* The thumbnail contains the single centered play symbol.
   The entire thumbnail is the clickable play target. */

.video-shell.is-playing .play-overlay,
.play-overlay[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-label {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border: 1px solid rgba(182, 145, 67, 0.72);
  border-radius: 999px;
  color: #fff8ea;
  background: rgba(20, 13, 10, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.video-instructions,
.progress-message {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.video-instructions {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--body);
  font-size: 17px;
}

.progress-message {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--burgundy);
  font-size: 17px;
  font-weight: 700;
}

.cta-region {
  margin-top: 28px;
  animation: reveal 420ms ease both;
}

.cta-region[hidden] {
  display: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 580px);
  min-height: 62px;
  padding: 15px 28px;
  border: 2px solid var(--burgundy);
  border-radius: 10px;
  color: var(--white);
  background: var(--burgundy);
  box-shadow: 0 13px 30px rgba(122, 35, 50, 0.25);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.cta-button:hover {
  background: var(--burgundy-dark);
  box-shadow: 0 16px 34px rgba(122, 35, 50, 0.31);
  transform: translateY(-1px);
}

.cta-button:active {
  transform: translateY(0);
}


.noscript-message {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 15px 18px;
  border: 1px solid rgba(122, 35, 50, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.site-footer {
  padding: 24px 20px 32px;
  border-top: 1px solid rgba(31, 42, 42, 0.12);
  color: #5d5a50;
  background: rgba(247, 242, 232, 0.72);
  text-align: center;
  font-size: 15px;
}

.site-footer p {
  margin: 0 auto 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.site-footer a {
  padding: 5px;
  text-underline-offset: 3px;
}

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

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .page-shell {
    min-height: auto;
    padding: 28px 14px 32px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.11em;
  }

  h1 {
    font-size: clamp(32px, 9.3vw, 43px);
    line-height: 1.1;
  }

  .intro {
    margin-top: 14px;
    margin-bottom: 22px;
    font-size: 19px;
  }

  .video-shell {
    border-radius: 11px;
  }


  .video-instructions,
  .progress-message {
    font-size: 16px;
  }

  .cta-button {
    min-height: 64px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Portrait VSL: keep the surrounding page quiet and let the video dominate. */
.video-shell[data-format="portrait"] ~ .video-instructions,
.video-shell[data-format="portrait"] ~ .progress-message {
  max-width: 560px;
}

@media (min-width: 641px) {
  .video-shell[data-format="portrait"] {
    width: min(92vw, calc(84svh * 9 / 16), 560px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 16px;
  }

  .message-card:has(.video-shell[data-format="portrait"]) .eyebrow {
    margin-bottom: 6px;
  }

  .message-card:has(.video-shell[data-format="portrait"]) h1 {
    max-width: 520px;
    font-size: clamp(27px, 7.6vw, 35px);
    line-height: 1.08;
  }

  .message-card:has(.video-shell[data-format="portrait"]) .intro {
    margin-top: 8px;
    margin-bottom: 14px;
    font-size: 17px;
  }

  .video-shell[data-format="portrait"] {
    /* On a typical phone this lands around 80 to 86% of the viewport height. */
    width: min(100%, calc(86svh * 9 / 16));
    border-radius: 14px;
  }

  .message-card:has(.video-shell[data-format="portrait"]) .video-instructions {
    margin-top: 12px;
  }

  .message-card:has(.video-shell[data-format="portrait"]) .progress-message {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Cinema focus mode ------------------------------------------------------- */
.cinema-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(3, 3, 4, 0.94);
  transition: opacity 360ms ease, visibility 360ms ease;
}

body.cinema-mode {
  overflow: hidden;
}

body.cinema-mode .cinema-backdrop {
  visibility: visible;
  opacity: 1;
}

body.cinema-mode .video-shell.cinema-active {
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  width: min(94vw, calc(92svh * 9 / 16), 620px);
  max-width: 94vw;
  max-height: 92svh;
  margin: 0;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 248, 234, 0.24);
  border-radius: 14px;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.76);
  transition: width 320ms ease, box-shadow 320ms ease;
}

.video-tap-area {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-tap-area[hidden] {
  display: none;
}

.video-utility-controls {
  position: absolute;
  z-index: 8;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.video-utility-controls[hidden] {
  display: none;
}

.icon-control {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.icon-control:hover {
  background: rgba(0, 0, 0, 0.66);
}

.icon-control .icon {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-control .icon-volume path:first-child {
  stroke: none;
}

.icon-control.is-muted .icon-volume {
  opacity: 0.55;
}

.tap-feedback {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  color: #fff;
  background: rgba(0, 0, 0, 0.56);
  pointer-events: none;
}

.tap-feedback.show {
  animation: tap-feedback 500ms ease both;
}

.tap-feedback-icon.is-play {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #fff;
}

.tap-feedback-icon.is-pause {
  position: relative;
  width: 24px;
  height: 31px;
  border-left: 8px solid #fff;
  border-right: 8px solid #fff;
}

@keyframes tap-feedback {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.78); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

@media (max-width: 640px) {
  body.cinema-mode .video-shell.cinema-active {
    width: min(96vw, calc(93svh * 9 / 16));
    max-width: 96vw;
    max-height: 93svh;
    border-radius: 10px;
  }

  .video-utility-controls {
    right: 9px;
    bottom: 9px;
  }

  .icon-control {
    width: 46px;
    height: 46px;
  }
}
