/* parlosa.com: the app's tokens (parlosa src/ui/theme.ts). Warm paper, or a warm near-black when the phone is dark. */
:root {
  --canvas: #f4f1ec;
  --surface: #fdfcfa;
  --raised: #e8e4de;
  --line: #e6e1da;
  --ink: #151311;
  --body: #55514c;
  --muted: #6b6762;
  --primary: #c2481f;
  --on-primary: #fff;
  --positive: #1d8a50;
  --warning: #9a6a0c;
  --negative: #c4304c;
  --es: #c78a12;
  --fr: #2a83c4;
  --inverse: #151311;
  --on-inverse: #f4f1ec;
  --text: 'Inter', system-ui, sans-serif;
  --word: 'Fraunces', Georgia, serif;
  --margin: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
/* Dark: when the visitor picks it, or when they follow the system and it is dark */
:root[data-theme='dark'] {
  --canvas: #0e0d0c;
  --surface: #1a1917;
  --raised: #282624;
  --line: #302d2a;
  --ink: #fff;
  --body: #b4b4b4;
  --muted: #949494;
  --primary: #f2b33d;
  --on-primary: #0e0d0c;
  --positive: #3fc07a;
  --warning: #e5a93b;
  --negative: #e5566f;
  --es: #f2b33d;
  --fr: #5ab8f0;
  --inverse: #fdfcfa;
  --on-inverse: #0e0d0c;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #0e0d0c;
    --surface: #1a1917;
    --raised: #282624;
    --line: #302d2a;
    --ink: #fff;
    --body: #b4b4b4;
    --muted: #949494;
    --primary: #f2b33d;
    --on-primary: #0e0d0c;
    --positive: #3fc07a;
    --warning: #e5a93b;
    --negative: #e5566f;
    --es: #f2b33d;
    --fr: #5ab8f0;
    --inverse: #fdfcfa;
    --on-inverse: #0e0d0c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 500 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: var(--on-primary); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* The one button: a pill, as in the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font: 700 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 140ms var(--ease), opacity 140ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn[aria-disabled='true'] { background: var(--raised); color: var(--ink); cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--word); letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 9px; }

/* ── Policy and support pages ── */
.doc { max-width: 720px; margin: 0 auto; padding: 40px var(--margin) 64px; }
.doc h1 { font-weight: 700; font-size: clamp(36px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.035em; margin: 48px 0 12px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc .lead { color: var(--body); margin-bottom: 32px; }
.doc section { background: var(--surface); border-radius: 20px; padding: 22px 26px; margin-bottom: 10px; }
.doc h2 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.doc section p { color: var(--body); }
.doc a { color: var(--primary); }
.doc footer { color: var(--muted); font-size: 14px; margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; }
.doc section h2 { margin: 0 0 6px; }
.doc section p + p, .doc section ul { margin-top: 10px; }
.doc section ul { color: var(--body); padding-left: 1.2em; }
.doc .updated { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* The theme switch: system, light, dark */
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--raised); }
.theme button { display: grid; place-items: center; width: 32px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: background 140ms, color 140ms; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed='true'] { background: var(--surface); color: var(--ink); }
.theme svg { width: 16px; height: 16px; }
