:root {
  --paper: #f6f4f0;
  --ink: #16130f;
  --ink-soft: #6f685e;
  --line: #e2ddd4;
  --red: #ec3013;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

em {
  font: italic 400 1.06em "Instrument Serif", serif;
}

/* ── top bar ─────────────────────────────────────────── */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 5vw, 56px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.bar-link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.bar-link:hover { border-color: var(--ink); }

/* ── hero ────────────────────────────────────────────── */

.hero {
  padding: clamp(88px, 16vh, 180px) clamp(20px, 5vw, 56px) clamp(72px, 12vh, 140px);
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(42px, 8.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero em { color: var(--red); }

.lede {
  margin-top: 32px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero .reveal:last-child { margin-top: 40px; }

/* ── buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px "Inter", system-ui, sans-serif;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 15px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--red); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ── points ──────────────────────────────────────────── */

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) clamp(20px, 5vw, 56px) clamp(64px, 10vh, 120px);
}

.num {
  font: 500 12px/1 ui-monospace, "SF Mono", monospace;
  color: var(--red);
  letter-spacing: 0.08em;
}

.point h2 {
  margin: 14px 0 8px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.point p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ── statement band ──────────────────────────────────── */

.band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 56px);
  text-align: center;
}

.band p {
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.band em { color: var(--red); }

/* ── access form ─────────────────────────────────────── */

.access {
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 56px);
}

.access-inner {
  max-width: 560px;
  margin: 0 auto;
}

.access h2 {
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.03em;
}

.access-sub {
  margin: 12px 0 40px;
  color: var(--ink-soft);
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px 24px;
  margin-bottom: 36px;
}

.fields label { display: block; }

.fields span {
  display: block;
  font: 500 12px/1 ui-monospace, "SF Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.fields input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font: 400 16px "Inter", system-ui, sans-serif;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s;
}
.fields input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-error {
  color: var(--red);
  font-size: 14px;
  margin-bottom: 16px;
}

.done {
  font-size: 18px;
  margin-top: 8px;
}

/* ── footer ──────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 56px) 40px;
  font-size: 13px;
  color: var(--ink-soft);
}

.foot-motto { font: italic 400 15px "Instrument Serif", serif; }

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.foot a:hover { color: var(--ink); border-color: var(--ink); }

/* ── reveal ──────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── verification page (/r/{code}) ───────────────────── */
/* r.js toggles #r-details and #r-empty via inline style.display, so their
   default visibility has to stay inline-compatible: display:none here would
   be overridden the moment r.js sets a value, but never before it runs. */

.verify {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) clamp(20px, 5vw, 56px) clamp(64px, 12vh, 120px);
}

.verify-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.verify-code {
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.verify-status {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.verify-card {
  border: 1px solid var(--line);
  padding: 24px 26px;
}

.verify-details {
  display: none; /* r.js switches this to grid once a report resolves */
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  font-size: 15px;
}
.verify-details dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: baseline;
}
.verify-details dd {
  margin: 0;
  word-break: break-all; /* the SHA-256 has no break opportunities */
}

.verify-empty {
  font-size: 15px;
  color: var(--ink-soft);
}
.verify-empty code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--ink);
}

/* ── long-form document pages (/retention.html) ──────── */
/* Referenced by name inside the consent and release documents candidates
   sign, so this URL has to keep resolving to a real schedule. */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) clamp(20px, 5vw, 56px) clamp(64px, 12vh, 120px);
}
.doc-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.doc-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.doc-lede { font-size: 17px; color: var(--ink-soft); margin-bottom: 12px; }
.doc-h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 48px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc-p { color: var(--ink-soft); margin-bottom: 14px; }
.doc-rows { margin: 0; }
.doc-rows dt {
  font-weight: 600;
  font-size: 15px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doc-rows dd {
  margin: 6px 0 18px;
  font-size: 15px;
  color: var(--ink-soft);
}
.doc-term {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 6px;
}
