:root {
  color-scheme: dark;
  --background: #07131f;
  --background-deep: #03090f;
  --surface: #0c1d2d;
  --surface-light: #10263a;
  --text: #f7f4ec;
  --muted: #bac4cc;
  --gold: #d6b565;
  --gold-light: #f0d796;
  --border: rgba(214, 181, 101, 0.42);
  --focus: #ffffff;
  --content-width: 860px;
  --text-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 61, 86, 0.54), transparent 44rem),
    linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body.video-is-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #07131f;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.home-main,
.content-main,
.simple-main {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
}

.home-main {
  display: grid;
  min-height: 0;
  place-items: start center;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(3rem, 6vw, 5rem);
}

.audience-section {
  width: 100%;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-size: clamp(3.6rem, 11vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.home-introduction {
  max-width: 690px;
  margin: 0 auto clamp(2rem, 5vw, 3.25rem);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.5;
  text-wrap: balance;
}

.audience-list {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
  margin: 0 auto;
}

.audience-button {
  display: grid;
  width: 100%;
  min-height: 90px;
  padding: 1.15rem 4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: rgba(12, 29, 45, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-size: clamp(1.45rem, 3.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.18;
  place-items: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.audience-button:not(:disabled):hover {
  border-color: var(--gold-light);
  color: #ffffff;
  background: var(--surface-light);
  transform: translateY(-2px);
}

.button-action,
.button-status {
  margin-top: 0.4rem;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button-explanation {
  max-width: 520px;
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.audience-button-soon {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(247, 244, 236, 0.65);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  cursor: not-allowed;
}

.audience-button-soon .button-status {
  color: rgba(240, 215, 150, 0.68);
}

.gospel-prompt {
  max-width: 720px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.gospel-prompt h2 {
  margin: 0 0 0.65rem;
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.gospel-prompt p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.55;
}

.gospel-prompt .primary-link {
  margin-top: 1.25rem;
}

.site-footer {
  display: grid;
  gap: 1.4rem;
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  place-items: center;
}

.footer-links,
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links {
  gap: 0.6rem 1.6rem;
}

.footer-links a {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration-color: var(--gold);
}

.social-links {
  gap: 0.7rem;
}

.social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  place-items: center;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.social-links a:hover {
  border-color: var(--gold);
  background: rgba(214, 181, 101, 0.1);
  transform: translateY(-2px);
}

.social-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
}

.social-icon-youtube {
  width: 25px;
  height: 17px;
  border-radius: 5px;
  background: var(--text);
}

.social-icon-youtube::before {
  position: absolute;
  top: 4px;
  left: 10px;
  width: 0;
  height: 0;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  border-left: 7px solid var(--background);
  content: "";
}

.social-icon-facebook::before {
  position: absolute;
  inset: -7px 0 0;
  color: var(--text);
  content: "f";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.social-icon-instagram::before {
  position: absolute;
  inset: 1px;
  border: 2px solid var(--text);
  border-radius: 6px;
  content: "";
}

.social-icon-instagram::after {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--text);
  border-radius: 50%;
  box-shadow: 6px -6px 0 -2px var(--text);
  content: "";
}

.video-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: #000000;
}

.video-dialog::backdrop {
  background: #000000;
}

.video-dialog-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  width: 100%;
  height: 100%;
  padding: clamp(0.8rem, 2.2vw, 1.5rem);
}

.video-dialog-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.video-dialog-header h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.video-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.video-control-button,
.close-video-button,
.youtube-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: #ffffff;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.video-control-button,
.close-video-button {
  min-width: 88px;
  padding: 0.72rem 1rem;
}

.video-control-button:disabled {
  opacity: 0.48;
  cursor: wait;
}

.video-control-button:not(:disabled):hover,
.close-video-button:hover,
.youtube-link:hover {
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.1);
}

.video-frame {
  display: grid;
  min-height: 0;
  overflow: hidden;
  place-items: center;
}

.video-frame iframe,
.youtube-player {
  display: block;
  width: min(100%, calc((100vh - 13.5rem) * 16 / 9));
  width: min(100%, calc((100dvh - 13.5rem) * 16 / 9));
  height: auto;
  max-height: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame iframe {
  pointer-events: none;
}

.video-timeline-row {
  display: grid;
  grid-template-columns: auto 3.5rem minmax(0, 1fr) 3.5rem auto;
  width: min(100%, 1100px);
  margin: 0 auto;
  align-items: center;
  gap: 0.75rem;
}

.video-time {
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.video-timeline {
  width: 100%;
  height: 2rem;
  margin: 0;
  accent-color: var(--gold-light);
  cursor: pointer;
}

.video-timeline:disabled {
  cursor: wait;
  opacity: 0.55;
}

.volume-control {
  position: relative;
}

.volume-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(8rem, 11rem) 3rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  background: #111820;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.volume-panel[hidden] {
  display: none;
}

.volume-level {
  width: 100%;
  margin: 0;
  accent-color: var(--gold-light);
  cursor: pointer;
}

.volume-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.video-bottom-actions {
  display: flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.youtube-link {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.content-main {
  width: min(100% - 2rem, 1040px);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 9vw, 7rem);
}

.text-article {
  max-width: 920px;
  margin: 0 auto;
  color: #e8e6df;
  font-size: clamp(1.12rem, 2.3vw, 1.28rem);
}

.doctrine-intro {
  text-align: center;
}

.text-article h1,
.simple-card h1 {
  font-size: clamp(3.4rem, 10vw, 6.5rem);
}

.text-article p {
  margin-bottom: 1.25rem;
}

.title-rule {
  width: 84px;
  height: 1px;
  margin: 2.1rem auto 2.2rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.lead {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  color: #ffffff;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.48;
}

.identity-list {
  display: grid;
  width: fit-content;
  gap: 0.7rem;
  margin: 2.5rem auto 3rem;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  text-align: left;
}

.identity-list strong {
  position: relative;
  padding-left: 1.35rem;
}

.identity-list strong::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  transform: translateY(-50%);
}

.declarations {
  margin: 0 auto 2.5rem;
}

.declaration {
  margin-bottom: 0.55rem !important;
  color: #ffffff;
  font-size: clamp(1.28rem, 2.8vw, 1.55rem);
  font-weight: 700;
}

.central-truth {
  margin: 2.6rem 0 3.4rem !important;
  color: var(--gold-light);
  font-size: clamp(2.15rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.scripture-card {
  margin: 0 auto;
  padding: clamp(1.6rem, 5vw, 3rem);
  border: 1px solid rgba(214, 181, 101, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.scripture-card .importance {
  margin-bottom: 0.7rem;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
}

.scripture {
  margin: 2.6rem 0;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
}

.scripture h2 {
  margin-bottom: 0.9rem;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scripture blockquote {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-style: italic;
  line-height: 1.55;
}

.scripture-card .scripture {
  padding: 0.2rem 0 0.2rem clamp(1.3rem, 4vw, 2.25rem);
  background: transparent;
}

.scripture-card .scripture:last-child {
  margin-bottom: 0;
}

.scripture-short blockquote {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.closing-invitation {
  max-width: 780px;
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  text-align: center;
}

.closing-invitation > p:not(.scripture-notice) {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.repeated-question {
  margin: 1.5rem 0 2.5rem !important;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
}

.closing-invitation .scripture-short {
  margin: 2.6rem auto;
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border-top: 0;
  border-left: 3px solid var(--gold);
  text-align: left;
}

.primary-link {
  display: inline-flex;
  min-height: 54px;
  margin-top: 1.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  align-items: center;
  color: #10161b;
  background: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.primary-link:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.scripture-notice {
  max-width: 720px;
  margin-top: 4rem !important;
  margin-right: auto;
  margin-left: auto;
  color: #8e9aa4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.simple-main {
  display: grid;
  min-height: calc(100vh - 154px);
  padding: clamp(4rem, 10vw, 8rem) 0;
  place-items: center;
}

.simple-card {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.simple-card .lead {
  margin-bottom: 1.8rem;
  color: var(--muted);
}

.gospels-card {
  max-width: 760px;
}

.gospel-list {
  display: grid;
  gap: 0.8rem;
  max-width: 620px;
  margin: 2rem auto 0.75rem;
}

.gospel-link {
  display: grid;
  min-height: 70px;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  place-items: center;
  color: #ffffff;
  background: rgba(12, 29, 45, 0.88);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.gospel-link:hover {
  border-color: var(--gold-light);
  background: var(--surface-light);
  transform: translateY(-2px);
}

.email-link {
  display: block;
  margin: 0 auto 1.25rem;
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  overflow-wrap: anywhere;
  text-underline-offset: 0.25em;
}

@media (max-width: 560px) {
  .home-main,
  .content-main,
  .simple-main,
  .site-footer {
    width: min(100% - 1.4rem, var(--content-width));
  }

  .home-main {
    padding-top: 1.25rem;
  }

  .audience-button {
    min-height: 84px;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .video-dialog-content {
    grid-template-rows: auto auto auto auto;
    height: auto;
    min-height: 100%;
    padding-top: max(0.8rem, env(safe-area-inset-top));
    padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
    align-content: start;
    gap: 0.75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .video-dialog-header {
    min-height: 2.75rem;
    padding-right: 8.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .video-controls {
    width: 100%;
  }

  .video-control-button,
  .close-video-button {
    min-width: auto;
    padding: 0.62rem 0.75rem;
    font-size: 0.84rem;
  }

  .video-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-frame iframe,
  .youtube-player {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .video-frame iframe {
    pointer-events: auto;
  }

  .close-video-button {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 10;
    min-height: 44px;
    border-color: var(--gold-light);
    background: #111820;
  }

  .video-timeline-row {
    grid-template-areas:
      "play current volume"
      "timeline timeline duration";
    grid-template-columns: auto 1fr auto;
    gap: 0.35rem 0.65rem;
  }

  #toggle-playback {
    grid-area: play;
  }

  #video-current-time {
    grid-area: current;
    text-align: left;
  }

  .video-timeline {
    grid-area: timeline;
  }

  #video-duration {
    grid-area: duration;
  }

  .volume-control {
    grid-area: volume;
  }

  .volume-panel {
    grid-template-columns: auto minmax(6.5rem, 9rem) 3rem;
  }

  .video-bottom-actions {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .scripture {
    border-left-width: 2px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .video-frame iframe {
    pointer-events: auto;
  }

  .video-dialog-header {
    padding-right: 8.5rem;
  }

  .close-video-button {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 10;
    min-height: 44px;
    border-color: var(--gold-light);
    background: #111820;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
