/* Storikin grown-up pages (unsubscribe, consent revoke, hand-off, delete). The storikin.com palette: morning sky by
   day, night sky in dark mode, lamplight for the accents. No inline styles (the CSP allows none). */
@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(/_pages/fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(/_pages/fonts/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 900; font-display: swap; src: url(/_pages/fonts/nunito-latin-900-normal.woff2) format("woff2"); }

:root {
  --sky: #eaf2ff;
  --card: #ffffff;
  --ink: #17213d;
  --muted: #4b5876;
  --lamp: #f6b52e;
  --lamp-soft: #ffe7a3;
  --lamp-ink: #5a3a00;
  --line: #d4e2f7;
  --field: #f6f9ff;
  --shadow: rgba(23, 33, 61, 0.12);
  --focus: #2f6fe0;
  --alert: #a3341f;
  --alert-soft: #fdebe6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0f1731;
    --card: #17213d;
    --ink: #f3efe6;
    --muted: #b4bed6;
    --lamp: #ffc94a;
    --lamp-soft: #ffe7a3;
    --lamp-ink: #3b2600;
    --line: #26355e;
    --field: #111a36;
    --shadow: rgba(0, 0, 0, 0.45);
    --focus: #8fb4ff;
    --alert: #ffb4a3;
    --alert-soft: #3a1f1a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 Nunito, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 900; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }

.card {
  margin-top: clamp(1.5rem, 8vh, 4rem);
  padding: clamp(1.4rem, 5vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px var(--shadow);
}
.moon { display: block; width: 4.5rem; height: 4.5rem; margin: 0 0 1rem; }
h1 { margin: 0 0 0.75rem; font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.state[hidden] { display: none; }
.state:focus { outline: none; }

.actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.75rem 1.4rem;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 900; font-size: 1.05rem; text-decoration: none; text-align: center;
  cursor: pointer;
  background: var(--lamp); color: var(--lamp-ink);
  box-shadow: 0 4px 0 rgba(122, 74, 0, 0.25);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(122, 74, 0, 0.25); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn.serious { background: var(--ink); color: var(--card); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

label { display: block; font-weight: 700; margin: 0 0 0.4rem; }
input {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--field); border: 2px solid var(--line); border-radius: 1rem;
}
input.code { font-weight: 900; font-size: 1.6rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }

.note { margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: 1rem; background: var(--lamp-soft); color: #4a3200; font-size: 0.95rem; }
.alert { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 1rem; background: var(--alert-soft); color: var(--alert); font-weight: 700; font-size: 0.95rem; }
.alert:empty { display: none; }
.dots { display: inline-flex; gap: 0.35rem; }
.dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--lamp); animation: bob 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-0.35rem); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: 1; } .btn { transition: none; } }

footer { margin-top: auto; padding-top: 2rem; color: var(--muted); font-size: 0.9rem; font-weight: 700; text-align: center; }
footer a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { margin-top: 1.5rem; }
h1[tabindex="-1"]:focus { outline: none; }
form input + p { margin-top: 1rem; }
