:root {
  color-scheme: light;
  --ink: #15191e;
  --muted: #5e6872;
  --paper: #fffaf0;
  --paper-strong: #f5ead4;
  --line: #d9cdb8;
  --teal: #147a76;
  --teal-dark: #0f5654;
  --gold: #f1b832;
  --gold-soft: #ffe59c;
  --coral: #cf5f49;
  --blue: #245c86;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(21, 25, 30, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Segoe UI", Helvetica, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(21, 25, 30, 0.12);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--ink);
  color: var(--gold-soft);
  clip-path: polygon(50% 0, 100% 36%, 82% 100%, 18% 100%, 0 36%);
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-teal {
  border-color: var(--teal-dark);
  background: var(--teal);
  color: var(--white);
}

.hero {
  min-height: calc(82vh - 68px);
  padding: 38px 20px 48px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  gap: 30px;
}

.hero-grid > *,
.devotional-layout > *,
.program-step > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 9vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 24px;
  color: #37404a;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
  max-width: 560px;
}

.proof-item {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.proof-item strong {
  display: block;
  font-size: 18px;
}

.proof-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.light-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1c2227;
  box-shadow: var(--shadow);
}

.light-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.light-stage::after {
  content: "Juan 8:12";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 250, 240, 0.72);
  font-weight: 900;
}

.light-pieces {
  position: absolute;
  inset: 24px;
}

.light-piece {
  position: absolute;
  width: 28%;
  height: 18%;
  border: 0;
  background: rgba(241, 184, 50, 0.46);
  clip-path: polygon(12% 0, 100% 22%, 82% 100%, 0 74%);
  cursor: pointer;
  opacity: 0.76;
  transition: transform 260ms ease, opacity 260ms ease, background-color 260ms ease;
}

.light-piece:hover,
.light-piece:focus-visible,
.light-piece.is-active {
  transform: translateY(-4px) scale(1.04);
  opacity: 1;
  background: var(--gold);
}

.light-piece.is-complete {
  background: var(--teal);
  opacity: 0.92;
}

.light-piece:nth-child(1) { left: 2%; top: 54%; transform: rotate(-10deg); }
.light-piece:nth-child(2) { left: 11%; top: 44%; transform: rotate(8deg); }
.light-piece:nth-child(3) { left: 20%; top: 35%; transform: rotate(-4deg); }
.light-piece:nth-child(4) { left: 30%; top: 28%; transform: rotate(10deg); }
.light-piece:nth-child(5) { left: 39%; top: 22%; transform: rotate(-8deg); }
.light-piece:nth-child(6) { left: 49%; top: 18%; transform: rotate(5deg); }
.light-piece:nth-child(7) { left: 59%; top: 19%; transform: rotate(-4deg); }
.light-piece:nth-child(8) { left: 67%; top: 25%; transform: rotate(11deg); }
.light-piece:nth-child(9) { left: 61%; top: 38%; transform: rotate(-10deg); }
.light-piece:nth-child(10) { left: 52%; top: 47%; transform: rotate(7deg); }
.light-piece:nth-child(11) { left: 43%; top: 56%; transform: rotate(-5deg); }
.light-piece:nth-child(12) { left: 52%; top: 65%; transform: rotate(9deg); }
.light-piece:nth-child(13) { left: 63%; top: 71%; transform: rotate(-7deg); }
.light-piece:nth-child(14) { left: 74%; top: 76%; transform: rotate(8deg); }

.band {
  border-bottom: 1px solid var(--line);
  padding: 42px 20px;
}

.band-dark {
  background: var(--ink);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.05;
}

.section-head p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.band-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.devotional-layout {
  display: grid;
  gap: 20px;
}

.controls {
  display: grid;
  align-content: start;
  gap: 18px;
}

.control-group {
  display: grid;
  gap: 10px;
}

.control-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented,
.day-rail {
  display: grid;
  gap: 8px;
}

.segmented {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segmented-button,
.day-chip,
.response-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.segmented-button[aria-pressed="true"],
.day-chip.is-active,
.response-button:hover,
.response-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.day-rail {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.progress-shell {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.progress-bar {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--teal);
  transition: width 260ms ease;
}

.progress-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.devotional-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(21, 25, 30, 0.08);
}

.panel-head,
.panel-section,
.panel-meta {
  padding: 20px;
}

.panel-head {
  border-bottom: 1px solid var(--line);
}

.panel-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-head h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.05;
}

.hook {
  margin: 0;
  color: #3c4650;
  font-size: 18px;
  line-height: 1.5;
}

.panel-section {
  border-bottom: 1px solid var(--line);
}

.panel-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
}

.scripture {
  border-left: 5px solid var(--gold);
  padding-left: 14px;
  color: #22272d;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.reference {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.devotional-text,
.prayer-text,
.prompt-text,
.gospel-point {
  color: #303943;
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.gospel-point {
  font-weight: 800;
}

.response-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.minor-notice,
.followup-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper-strong);
}

.minor-notice {
  margin-top: 14px;
  color: #3b3120;
  font-weight: 800;
}

.followup-panel {
  margin-top: 16px;
}

.followup-panel h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

.followup-panel p {
  color: #303943;
  line-height: 1.55;
}

.panel-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.program-grid {
  display: grid;
  gap: 12px;
}

.program-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 0;
}

.program-step strong {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: var(--gold-soft);
}

.program-step h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.program-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.footer {
  padding: 26px 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 780px) {
  .nav-links {
    display: flex;
  }

  .hero {
    display: grid;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 62px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
  }

  .light-stage {
    min-height: 520px;
  }

  .devotional-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
  }

  .controls {
    position: sticky;
    top: 92px;
  }

  .response-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 62px;
    padding: 0 14px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 30px 16px 36px;
  }

  .hero-grid,
  .band .container,
  .footer .container {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .hero h1,
  .hero-copy,
  .hero-actions,
  .hero-proof,
  .light-stage {
    width: min(300px, calc(100vw - 96px));
    max-width: min(300px, calc(100vw - 96px));
  }

  .section-head,
  .controls,
  .devotional-panel,
  .program-grid {
    width: min(300px, calc(100vw - 96px));
    max-width: min(300px, calc(100vw - 96px));
  }

  .hero h1 {
    width: min(330px, calc(100vw - 72px));
    max-width: min(330px, calc(100vw - 72px));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .light-stage {
    min-height: 300px;
  }

  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-rail {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
    gap: 6px;
  }

  .panel-head,
  .panel-section,
  .panel-meta {
    padding: 16px;
  }
}

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

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