:root {
  --bone: #F5EFE4;
  --ink: #1A1814;
  --clay: #B8624A;
  --muted: #6b645a;
  --line: #e4dccd;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.gate { width: 100%; max-width: 440px; }

.gate__card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(26, 24, 20, 0.07);
}

.gate__logo {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 auto 32px;
}

.gate__eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.gate__headline,
.gate__denied h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 7vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gate__note {
  margin: 0 auto 28px;
  max-width: 320px;
  font-size: 14px;
  color: var(--muted);
}

.gate__actions { display: grid; gap: 10px; }

.btn-yes,
.link-no {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}

.btn-yes {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
}
.btn-yes:hover { background: #2e2a24; }
.btn-yes:active { transform: scale(.985); }

.link-no {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.link-no:hover { border-color: var(--ink); color: var(--ink); }

.btn-yes:focus-visible,
.link-no:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* No → swap in the "leaving so soon?" panel */
.gate__denied { display: none; }
.is-denied .gate__ask { display: none; }
.is-denied .gate__denied { display: block; animation: fade .3s ease both; }

.reveal { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 420px) {
  .gate__card { padding: 36px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .is-denied .gate__denied { animation: none; }
  .btn-yes, .link-no { transition: none; }
}
