/* Shared styling for the public pages. Deliberately one small stylesheet with no external
   fonts or CDNs: these pages must render on any static host, offline, and behind the kind of
   corporate proxy that strips third-party requests. A privacy page that phones out to a CDN
   to render is a bad look on its own terms. */

:root {
  --ink:      #1c1a24;
  --muted:    #5d5868;
  --rule:     #e4e0ea;
  --bg:       #fdfcff;
  --accent:   #b0246c;
  --warn-bg:  #fff4e5;
  --warn-ink: #7a4a00;
  --draft-bg: #ffe3e3;
  --draft-ink:#8a1414;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:   #eae7f0;
    --muted: #a49dae;
    --rule:  #322e3c;
    --bg:    #16141c;
    --accent:#ff8ec0;
    --warn-bg:#3a2c12;
    --warn-ink:#f0cf9a;
  }
}

* { box-sizing: border-box; }

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

main, footer { max-width: 44rem; margin: 0 auto; }

h1 { font-size: 1.85rem; line-height: 1.25; margin: 2.5rem 0 0.75rem; }
h2 { font-size: 1.2rem;  margin: 2.25rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1rem;    margin: 1.5rem 0 0.35rem; color: var(--accent); }

p, ul, ol { margin: 0.75rem 0; }
li { margin: 0.35rem 0; }

a { color: var(--accent); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.lede   { font-size: 1.05rem; color: var(--muted); }
.muted  { color: var(--muted); font-size: 0.92rem; }
.updated{ color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }

/* An unfinished page must be obvious at a glance, not discovered by a reader. */
.draft-banner {
  max-width: 44rem;
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  background: var(--draft-bg);
  color: var(--draft-ink);
  border: 2px solid currentColor;
  border-radius: 6px;
  font-weight: 600;
}

/* For statements that are true but incomplete — a route that is planned, not live. */
.pending {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid currentColor;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }

/* Wide tables must scroll inside themselves rather than making the page scroll sideways. */
.scroll { overflow-x: auto; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}
