:root {
  --bg: #faf8f5;
  --text: #1c1b1a;
  --muted: #6b6762;
  --card: #ffffff;
  --border: #e6e2dc;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #f2efeb;
    --muted: #a39e98;
    --card: #211f1d;
    --border: #34312e;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main { width: 100%; max-width: 32rem; }
h1 { font-size: 2.25rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.lede { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
.soon { color: var(--muted); font-size: 0.95rem; margin-top: 1.5rem; }
.code-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.code-box p:first-child { color: var(--muted); font-size: 0.95rem; }
.code {
  font: 600 1.5rem/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  margin: 0;
}
a { color: inherit; }
.button {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
}

/* Long documents (privacy.html, terms.html): top-aligned, left-aligned text. */
body.doc-page { align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
main.doc { max-width: 40rem; }
.doc .brand { font-weight: 700; margin-bottom: 1.5rem; }
.doc .brand a { text-decoration: none; }
.doc h1 { font-size: 1.9rem; }
.doc h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.25rem; }

/* Account deletion form (delete-account.html). */
.delete-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 0 0 1rem;
}
.delete-form label { display: block; margin-bottom: 1rem; font-weight: 600; }
.delete-form input[type=email], .delete-form input[type=password] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.delete-form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.delete-form .check input { margin-top: 0.35rem; flex-shrink: 0; }
.delete-form .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.delete-form .button:disabled { opacity: 0.6; cursor: default; }
.button.danger { background: #c62828; color: #fff; }
.error { color: #c62828; }
@media (prefers-color-scheme: dark) { .error { color: #ef7b7b; } }
.done { font-weight: 600; }
.note { color: var(--muted); font-size: 0.95rem; }
