/* registry_site — keepsake date capture page.
 * Spec §3.6 fallback tokens (no SCG brand tokens exist in-repo): quiet paper,
 * one green accent, system stack, max-width 28rem. Deliberately unremarkable.
 * Token discipline: ALL color lives in :root — no hex literals below it. */

:root {
  --paper: #FAF7F1;
  --surface: #FFFFFF;
  --ink: #232019;
  --ink-soft: #5C564A;
  --line: #E6DFD2;
  --accent: #3A6B4A;
  --accent-deep: #2E563B;
  --accent-soft: #E9F0E8;
  --on-accent: #FFFFFF;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --shadow-1: 0 1px 2px rgba(35, 32, 25, 0.06);
  --shadow-2: 0 4px 14px rgba(35, 32, 25, 0.08);
  --shadow-3: 0 12px 32px rgba(35, 32, 25, 0.10);
  --ring: 0 0 0 3px rgba(58, 107, 74, 0.30);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  flex: 1;
}

.wordmark {
  margin: 0 0 2.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 6vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.sub {
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

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

.field { margin: 0 0 1.25rem; }

.field label {
  display: block;
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-small label { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); }

.hint {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

input[type="email"],
input[type="date"],
input[type="text"],
select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: var(--shadow-1);
  accent-color: var(--accent);
}

select { appearance: none; -webkit-appearance: none; }

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) calc(50% - 2px),
    calc(100% - 0.9rem) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

::selection { background: var(--accent-soft); }

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--ink); }

button {
  display: block;
  width: 100%;
  margin: 1.75rem 0 0;
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: var(--r-m);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: background 120ms ease;
}

button:hover { background: var(--accent-deep); }
button:disabled { opacity: 0.6; cursor: default; }

.reassure {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.formerr {
  margin: 1rem 0 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font-size: 0.9375rem;
}

.success {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-weight: 550;
}

/* honeypot (§3.4): visually removed, still submittable by scripts */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

#ts-slot { margin-top: 1rem; }
#ts-slot:empty { margin-top: 0; }

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

.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
}

.foot p {
  max-width: 28rem;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.foot .escape { margin-bottom: 0.5rem; }

.foot a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot a:hover { color: var(--ink); }

/* ── privacy page ─────────────────────────────────────────────────────── */

.privacy h1 { font-size: 1.5rem; }
.privacy ul { padding-left: 1.25rem; }
.privacy li { margin-bottom: 0.625rem; }
