@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fraunces-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #fffaf0;
  --muted: #b8adc5;
  --orange: #ff9a5a;
  --orange-bright: #ffc08a;
  --night: #110c18;
  --night-soft: #1a1224;
  --line: rgba(255, 250, 240, 0.14);
  --max: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(55rem 35rem at 72% 28%, rgba(255, 137, 74, 0.17), transparent 65%),
    radial-gradient(32rem 24rem at 8% 78%, rgba(116, 77, 169, 0.12), transparent 70%),
    var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--night);
  text-decoration: none;
  font-weight: 700;
}

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

.site-header,
.site-footer,
.hero,
.policy {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 660;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark-icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration-color: transparent;
  text-underline-offset: 0.3rem;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--orange);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.98fr);
  gap: clamp(3rem, 8vw, 8rem);
  min-height: calc(100vh - 13rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
  color: var(--orange-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.7rem, 8vw, 7.5rem);
  font-weight: 640;
  letter-spacing: -0.065em;
  line-height: 0.89;
}

h1 em {
  color: var(--orange);
  font-weight: 450;
}

.introduction {
  max-width: 39rem;
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem 1.8rem;
  margin-top: 2.4rem;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.6rem;
  padding: 0.55rem 1.2rem 0.6rem 1rem;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 0.85rem;
  background: #000;
  box-shadow: 0 0.75rem 2.2rem rgba(0,0,0,0.26);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.75);
}

.app-store-button span {
  display: grid;
  font-size: 1.2rem;
  line-height: 1.05;
}

.app-store-button small {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.text-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.25em;
}

.text-link:hover { color: var(--orange-bright); }

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
  isolation: isolate;
}

.phone-stage img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 27rem);
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 92%);
  filter: drop-shadow(0 2.3rem 2.4rem rgba(0, 0, 0, 0.48));
  transform: rotate(2.3deg);
}

.halo {
  position: absolute;
  inset: 17% 3% 10%;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(5rem);
  opacity: 0.21;
  transform: rotate(-8deg);
}

.policy {
  min-height: calc(100vh - 13rem);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.policy h1 { max-width: 9ch; }

.policy-card {
  max-width: 45rem;
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 1.1rem;
}

.policy-card p { margin: 1rem 0 0; }
.policy-card p:first-child { margin-top: 0; }
.policy-card .policy-lead {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.back-link { display: inline-block; margin-top: 2.3rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 4rem;
  }

  .hero-copy { max-width: 42rem; }
  .phone-stage { justify-content: center; }
  .phone-stage img { width: min(76vw, 23rem); }
  .prayer-note { right: 2%; }
}

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  .hero,
  .policy { width: min(calc(100% - 2rem), var(--max)); }

  .site-header { min-height: 5.3rem; }
  .wordmark { font-size: 1.18rem; }
  .wordmark-icon { width: 2.25rem; height: 2.25rem; }
  h1 { font-size: clamp(3.3rem, 17vw, 5rem); }
  .introduction { font-size: 1.04rem; }
  .actions { align-items: flex-start; flex-direction: column; }
  .prayer-note { right: -0.25rem; bottom: 10%; }
  .site-footer { flex-direction: column; }
}

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