/*
 * One stylesheet, no build step, no third-party anything — no web fonts, no CDN, no analytics.
 * That is not minimalism for its own sake: CONTROLS action 16 requires "no third-party script" on
 * the deletion page, and the simplest way to guarantee it across the site is to have none anywhere.
 */

:root {
  color-scheme: light dark;
  --text: #101114;
  --text-secondary: #60646c;
  --bg: #ffffff;
  --bg-element: #f0f0f3;
  --border: #e0e1e6;
  --accent: #208aef; /* app.json's splash colour, so the site and the app agree */
  --warn-bg: #fff4e5;
  --warn-border: #f0b429;
  --warn-text: #6b4a00;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f7f8f8;
    --text-secondary: #b0b4ba;
    --bg: #0b0c0e;
    --bg-element: #17191c;
    --border: #2e3135;
    --warn-bg: #2a2000;
    --warn-border: #8a6d1f;
    --warn-text: #f5d78e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main, header, footer { max-width: var(--max); margin-inline: auto; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.25rem; }
p  { margin: 0 0 1rem; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

.lede { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2rem; }
.muted { color: var(--text-secondary); }
.small { font-size: 0.875rem; }

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
nav.site .brand { font-weight: 700; margin-right: auto; color: var(--text); text-decoration: none; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}
footer a { color: var(--text-secondary); }

/* The unmistakable "this is not finished" banner. Every page that carries placeholder text has one,
   and it is loud on purpose: a privacy policy that looks finished but is not is worse than none. */
.draft {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.draft strong { display: block; margin-bottom: 0.25rem; }

/* A required-content item that still needs writing. Renders as an obvious gap, never as prose. */
.todo {
  border-left: 3px solid var(--warn-border);
  background: var(--bg-element);
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.todo code { color: var(--text); }

.card {
  background: var(--bg-element);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }

label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}
button {
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 0;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
}
button[disabled] { opacity: 0.45; cursor: not-allowed; }

ol.spaced li { margin-bottom: 0.75rem; }
