/* Fonts are served from this site (no Google request; Aria/John 12-02). Fraunces and Inter, SIL OFL 1.1: fonts/OFL-*.txt. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/fraunces-v38-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/inter-v20-latin.woff2") format("woff2"); }

:root {
  --ink: #fffaf3;
  --ink-soft: rgba(255, 250, 243, 0.86);
  --shadow: rgba(30, 18, 12, 0.55);
  --btn-bg: rgba(255, 250, 243, 0.14);
  --btn-line: rgba(255, 250, 243, 0.55);
  --btn-solid: #fffaf3;
  --btn-solid-ink: #2b1d18;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #3b2a26;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene, .sheen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Slightly oversized so the bent edges never show the page behind. */
.scene { inset: -3%; width: 106%; height: 106%; }

.frost {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9), rgba(240, 232, 222, 0.85));
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

.sheen {
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  text-shadow: 0 2px 18px var(--shadow), 0 1px 3px var(--shadow);
}

.caption {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw + 0.6rem, 4.4rem);
  line-height: 1.15;
  max-width: 18ch;
  margin: 0;
  letter-spacing: -0.01em;
}

.headline {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw + 0.8rem, 5.2rem);
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 0 0.4em;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(1rem, 1.1vw + 0.75rem, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 1.8em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  font: inherit;
  font-size: clamp(0.95rem, 0.4vw + 0.85rem, 1.1rem);
  font-weight: 500;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-shadow: none;
  min-height: 44px;
}

.btn.solid { background: var(--btn-solid); color: var(--btn-solid-ink); border-color: var(--btn-solid); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (min-width: 1800px) {
  .lede { max-width: 42ch; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  text-align: center;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--ink-soft);
  text-shadow: 0 1px 6px var(--shadow);
}

.notify { margin-top: 2.2em; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.notify-form input[type=email] {
  font: inherit; font-size: 1rem; min-height: 44px; padding: 0.6em 1em; width: min(300px, 80vw);
  border-radius: 999px; border: 1px solid var(--btn-line); background: rgba(255,250,243,.18); color: var(--ink);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.notify-form input::placeholder { color: var(--ink-soft); }
.notify-msg { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.sr, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-form[hidden], .notify [hidden] { display: none; }
.sublink { margin: 1em 0 0; font-size: clamp(1.05rem, 2.1vw + 0.3rem, 2.2rem); } /* half the caption on desktop/tablet; phone size unchanged (John 17:2x) */
.sublink a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid rgba(255,250,243,.4); padding-bottom: 2px; }
.sublink a:hover { color: var(--ink); }
.sublink b { color: var(--ink); font-weight: 600; }

/* Legibility (John 17:0x, phone): a soft dark pool behind the words, stronger on small screens. */
.content::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); height: min(520px, 80vh);
  transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(30, 18, 12, 0.38), rgba(30, 18, 12, 0));
}
@media (max-width: 700px) {
  .content::before { background: radial-gradient(closest-side, rgba(30, 18, 12, 0.55), rgba(30, 18, 12, 0)); }
  .caption { text-shadow: 0 2px 14px rgba(20, 12, 8, 0.75), 0 1px 3px rgba(20, 12, 8, 0.8); }
  .sublink a { color: var(--ink); }
}
