/* Shared style for the thin legal pages. index.html is self-contained on
   purpose — it is the page that has to render even if nothing else loads. */

:root {
  --ink-1: #16181d;
  --ink-2: #5b6270;
  --ink-3: #8e95a3;
  --bg: #f7f7f5;
  --line: #e4e4e1;
  --accent: #1b3a5c;
  --attention: #9a6708;
  --attention-tint: #fdf7ec;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
           "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-1: #e8e9ec;
    --ink-2: #a2a8b4;
    --ink-3: #767d8a;
    --bg: #121316;
    --line: #2a2d33;
    --accent: #9dc0e6;
    --attention: #d9a441;
    --attention-tint: #241f14;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body {
  font: 400 16px/1.65 var(--sans);
  color: var(--ink-1);
  background: var(--bg);
  letter-spacing: -0.006em;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; height: 68px; }
.topbar svg { display: block; }
.topbar a { color: var(--ink-1); }

main { padding: 56px 0 24px; }

h1 { font: 500 27px/1.3 var(--serif); letter-spacing: -0.3px; }
.updated { color: var(--ink-3); font-size: 14px; margin-top: 8px; }

h2 {
  font: 500 18px/1.4 var(--serif);
  letter-spacing: -0.2px;
  margin: 36px 0 10px;
}

p { max-width: 36em; }
p + p { margin-top: 14px; }
ul { margin: 12px 0 0 20px; max-width: 36em; }
li + li { margin-top: 8px; }

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

.todo {
  display: inline-block;
  font: 500 12px/1.4 var(--mono);
  color: var(--attention);
  background: var(--attention-tint);
  border: 1px dashed var(--attention);
  border-radius: 4px;
  padding: 2px 7px;
}

.note {
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px dashed var(--attention);
  background: var(--attention-tint);
  border-radius: 6px;
  color: var(--attention);
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 28px 0 64px;
  color: var(--ink-3); font-size: 14px;
}
footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--accent); }
