:root {
  --ink: #181512;
  --muted: #6f6760;
  --paper: #f8f3ec;
  --paper-soft: #fffaf3;
  --night: #0c0d10;
  --night-soft: #1d1b1b;
  --line: rgba(24, 21, 18, 0.14);
  --line-light: rgba(255, 250, 243, 0.2);
  --accent: #f7a84b;
  --accent-dark: #bd6e1d;
  --max: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--paper-soft);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 13, 16, 0.54);
  color: var(--paper-soft);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header.solid {
  background: rgba(248, 243, 236, 0.92);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  opacity: 1;
}

.hero {
  min-height: 94svh;
  color: var(--paper-soft);
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.94) 0%, rgba(11, 10, 10, 0.78) 42%, rgba(11, 10, 10, 0.38) 100%),
    url("devotional-background.jpg") center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem 0 6rem;
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  animation: rise-in 620ms ease both;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-lockup img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  margin: 1.6rem 0 0;
  max-width: 610px;
  color: rgba(255, 250, 243, 0.82);
  font-size: clamp(1.12rem, 2.4vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.button,
button.button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  background: var(--accent);
  color: #1d1004;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 12px 28px rgba(247, 168, 75, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #ffbc68;
  box-shadow: 0 18px 34px rgba(247, 168, 75, 0.24);
}

.button.secondary {
  background: rgba(255, 250, 243, 0.12);
  color: var(--paper-soft);
  border: 1px solid var(--line-light);
  box-shadow: none;
}

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

.button.disabled {
  cursor: default;
}

.button.disabled:hover {
  transform: none;
}

.content-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 5.2rem 0;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  max-width: 780px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy {
  margin: 1rem 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.12rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 3rem;
}

.feature {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--line);
}

.feature:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 1.5rem;
}

.feature + .feature {
  padding-left: 1.5rem;
}

.feature h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.dark-band {
  background: var(--night);
  color: var(--paper-soft);
  overflow: hidden;
}

.dark-band .section-copy,
.dark-band .feature p {
  color: rgba(255, 250, 243, 0.7);
}

.verse-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 4rem;
  align-items: center;
}

.verse-art {
  position: relative;
  min-height: 560px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.1), rgba(12, 13, 16, 0.82)),
    url("devotional-background.jpg") center / cover no-repeat;
}

.verse-panel {
  padding: 3rem;
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.04);
}

.verse-panel .reference {
  margin: 0 0 1.4rem;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.verse-panel blockquote {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.08;
}

.plain-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.plain-list li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.plain-list strong {
  color: var(--ink);
}

.footer {
  background: #11100f;
  color: rgba(255, 250, 243, 0.76);
  padding: 3rem 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--paper-soft);
  text-decoration: none;
  margin-right: 1rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

.doc-main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8.5rem 0 5rem;
}

.doc-main h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
}

.doc-main .lede {
  margin: 1.2rem 0 2.8rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.doc-section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.doc-section p,
.doc-section li {
  color: var(--muted);
}

.doc-section a {
  color: var(--accent-dark);
  font-weight: 800;
}

.doc-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.support-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  color: var(--ink);
  font: inherit;
  padding: 0.85rem 0.95rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(247, 168, 75, 0.28);
  border-color: var(--accent-dark);
}

.hide-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.response-box {
  margin-top: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.success {
  color: #2f6d3b;
}

.error {
  color: #9f3326;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 800px) {
  .site-header {
    position: absolute;
  }

  .nav {
    min-height: 66px;
  }

  .brand span {
    max-width: 9rem;
    line-height: 1.1;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .nav-links a:first-child {
    display: none;
  }

  .hero {
    min-height: 92svh;
    padding: 7.3rem 0 4rem;
    background:
      linear-gradient(180deg, rgba(7, 8, 10, 0.78) 0%, rgba(7, 8, 10, 0.62) 38%, rgba(7, 8, 10, 0.88) 100%),
      url("devotional-background.jpg") center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature,
  .feature:last-child,
  .feature + .feature {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0;
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .verse-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .verse-art {
    min-height: 360px;
  }

  .verse-panel {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 0.55rem;
  }

  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero-lockup {
    align-items: flex-start;
  }

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

  .content-section {
    padding: 4rem 0;
  }
}
