: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);
}
