:root {
  color-scheme: dark;
  --black: #0d0a08;
  --panel: #181310;
  --panel-2: #211811;
  --line: #3a2c21;
  --parchment: #eae0ce;
  --muted: #b9aa96;
  --rose: #ce9a87;
  --red: #722520;
  --measure: 44rem;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--black); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--parchment);
  background:
    radial-gradient(circle at 50% -20%, rgb(114 37 32 / 16%), transparent 40rem),
    var(--black);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.6;
}

a { color: inherit; text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

.shell {
  width: min(calc(100% - 2rem), 52rem);
  min-height: calc(100vh - 5rem);
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 4rem) 0;
  display: grid;
  align-items: center;
}

.panel {
  width: 100%;
  padding: clamp(1.45rem, 5vw, 3.75rem);
  border: 1px solid var(--line);
  background: rgb(24 19 16 / 96%);
  box-shadow: 0 1.75rem 5rem rgb(0 0 0 / 36%);
}

.landing, .quiet { text-align: center; }
.quiet { min-height: 20rem; }

.mark, .eyebrow, .act, .progress-head, label, .form-note, .optional,
.character-count, .locks, .text-button, .vz-button, .footer {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mark {
  margin: 0 0 3.5rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow, .act {
  margin: 0 0 0.9rem;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 { max-width: var(--measure); margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 8vw, 4.8rem); font-weight: 500; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.75rem, 5.4vw, 3rem); font-weight: 500; letter-spacing: -0.025em; }

.lead {
  max-width: 32rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
}

.check-row { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.check-row input { width: 1.1rem; height: 1.1rem; margin: 0.14rem 0 0; flex: 0 0 auto; accent-color: var(--red); }
.check-row--compact { margin-top: 0.9rem; }

.vz-button {
  min-height: 3.1rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--red);
  border-radius: 0;
  color: #fff8ee;
  background: var(--red);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.vz-button:hover { filter: brightness(1.08); }
.vz-button:focus-visible, .answer:focus-visible, input:focus-visible, textarea:focus-visible, .text-button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.vz-button:disabled { opacity: 0.42; cursor: not-allowed; }
.vz-button--small { min-height: 2.6rem; }
.landing-start { margin-top: 3rem; }

.progress-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; }
.progress-track { height: 1px; margin: 0.65rem 0 clamp(2.5rem, 7vw, 4.5rem); background: var(--line); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--rose); transition: width 180ms ease; }

.act { margin-bottom: 0.6rem; }
.optional { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.86rem; }

.answers { display: grid; gap: 0.72rem; margin-top: clamp(1.8rem, 5vw, 3rem); }
.answer {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--parchment);
  background: var(--panel-2);
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}
.answer:hover, .answer[aria-pressed="true"] { border-color: var(--rose); background: #271b14; }
.answer-prefix { display: inline-block; width: 1.45rem; color: var(--rose); font-family: ui-sans-serif, sans-serif; font-size: 0.76rem; }

.text-answer { margin-top: 2rem; }
textarea, input[type="email"], input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--parchment);
  background: #100d0b;
}
textarea { min-height: 9rem; padding: 1rem; resize: vertical; }
input[type="email"], input[type="text"] { min-height: 3rem; padding: 0.65rem 0.8rem; }
.character-count { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.75rem; text-align: right; }

.nav-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 2rem; }
.text-button { min-height: 2.75rem; padding: 0.5rem 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

.result-line { margin: 1rem 0 0; color: var(--rose); font-size: clamp(1.12rem, 3vw, 1.35rem); }
.complication { margin: 1.5rem 0 0; padding-left: 1rem; border-left: 2px solid var(--rose); color: var(--muted); }
.result-body { margin: 2.5rem 0 0; font-size: 1.14rem; }
.visible-half { margin: 2rem 0 0; color: var(--muted); font-style: italic; }
.unfinished { margin: 1.2rem 0 0; font-size: 1.22rem; }

.locks { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 2rem 0 0; }
.lock-item { display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.55rem 0.7rem; border: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; letter-spacing: 0.07em; }
.lock-mark { position: relative; width: 0.75rem; height: 0.62rem; border: 1px solid currentColor; }
.lock-mark::before { content: ""; position: absolute; left: 0.13rem; bottom: 100%; width: 0.37rem; height: 0.3rem; border: 1px solid currentColor; border-bottom: 0; border-radius: 0.3rem 0.3rem 0 0; }

.email-gate { margin-top: 2.6rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.gate-line { margin: 0 0 1.4rem; font-size: 1.25rem; }
form > label[for] { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; }
form .vz-button { width: 100%; margin-top: 1.2rem; }
.form-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.78rem; }
.form-status { min-height: 1.7rem; margin: 0.8rem 0 0; color: var(--rose); }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.support p { max-width: var(--measure); }
.resource { margin: 2rem 0; padding: 1.3rem; border: 1px solid var(--line); background: var(--panel-2); }
.resource a { color: var(--parchment); font-size: 1.45rem; }
.support-form { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.footer { width: min(calc(100% - 2rem), 52rem); margin: 0 auto; padding: 0 0 1.25rem; color: var(--muted); font-size: 0.75rem; text-align: center; }
.footer p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 34rem) {
  .shell { width: min(calc(100% - 1rem), 52rem); padding: 0.5rem 0; }
  .panel { padding: 1.25rem; }
  .mark { margin-bottom: 2.5rem; }
  .progress-track { margin-bottom: 2.5rem; }
  .answer { padding: 0.8rem; }
  .nav-row { margin-top: 1.25rem; }
}

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

/* Panel titles demoted from h1 to h2 for the document outline (one h1 per
   page — SEO hygiene, 2026-08-25). This class keeps the exact h1 voice, so
   nothing changes visually. */
h2.panel-h1 { font-size: clamp(2.35rem, 8vw, 4.8rem); letter-spacing: -0.04em; }
