/* One screen. Warm, quiet, and deliberately plain.
   Restraint is doing real work here — decoration would read as a
   performance, and a performance is harder to say no to. */

:root {
  --bg: #faf1e4;
  --ink: #2c1e14;
  --ink-soft: #7d6650;
  --accent: #c0551f;
  --accent-ink: #fff8f0;
  --line: #e6d6c0;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --serif: "New York", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;                /* dvh: immune to the Safari URL bar */
  background: var(--bg);             /* set explicitly — never inherit the host's */
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}

/* A soft warmth at the top, like late afternoon. One gradient, no images. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 55vh;
  background: radial-gradient(120% 100% at 50% 0%, #f7dfbe 0%, rgba(247, 223, 190, 0) 72%);
  pointer-events: none;
}

.page {
  position: relative;
  min-height: 100dvh;
  max-width: 30rem;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12vh) 28px calc(var(--safe-bottom) + 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page.is-hidden { display: none; }

.name {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-soft);
  font-style: italic;
}

.ask {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.ask.soft { color: var(--ink); margin-bottom: 14px; }

.body {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.detail {
  margin: 26px 0 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--accent);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ── the two answers ─────────────────────────────────────────────
   Same size, same weight, stacked. An easy "no" that looks just as
   considered as the "yes" is the whole point. */

.actions {
  margin: 34px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  appearance: none;
  font: inherit;
  font-size: 17px;
  width: 100%;
  min-height: 54px;                  /* generous thumb target */
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.btn:active { transform: scale(0.975); opacity: 0.85; }

.btn-yes {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-weight: 550;
}

.btn-no {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.out {
  margin: 28px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ── entrance ────────────────────────────────────────────────────
   A slow settle, not an animation reel. --i staggers each line. */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: settle 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.13s + 0.15s);
}

@keyframes settle {
  to { opacity: 1; transform: none; }
}

/* needs the explicit 0 — `settle` only declares a `to` state */
.fade-in { opacity: 0; animation: settle 0.6s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .btn:active { transform: none; }
}
