/*
 * Self-hosted, dependency-free. No webfont, no CDN, no JS anywhere on this
 * site — that is a legal design decision, not a stylistic one: no external
 * request means no cookie and no consent banner under § 25 TDDDG, and the
 * privacy policy stays short enough to be true.
 */
:root {
  --bg: #fbfbf9;
  --fg: #1c1c1a;
  --muted: #5d5d57;
  --rule: #dedcd4;
  --accent: #14532d;
  --flag-bg: #fff4d6;
  --flag-fg: #6b4a00;
  --flag-rule: #d8a200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171917;
    --fg: #e9e8e3;
    --muted: #a6a49c;
    --rule: #33362f;
    --accent: #86c99b;
    --flag-bg: #3a2f0d;
    --flag-fg: #f2d999;
    --flag-rule: #9c7a12;
  }
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: 2.5rem 4rem;
}

header { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; }
header p { color: var(--muted); margin: .35rem 0 0; font-size: .95rem; }

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0; }
h2 {
  font-size: 1.1rem;
  margin: 2.25rem 0 .6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: .98rem; margin: 1.4rem 0 .35rem; }

p, li { margin: .55rem 0; }
ul { padding-left: 1.2rem; }

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

address { font-style: normal; }

dl { margin: .55rem 0; }
dt { font-weight: 600; margin-top: .8rem; }
dd { margin: .15rem 0 0; }

.lede { color: var(--muted); }

small, .stand { color: var(--muted); font-size: .88rem; }

nav.pagenav {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
}
nav.pagenav a { margin-right: 1rem; }

/* Unfilled placeholder. Loud on purpose: a legal page published with one of
   these still in it is worse than no page at all, so it must be impossible to
   overlook in a browser — and scripts/check-site-placeholders blocks the
   deploy besides. */
.todo {
  background: var(--flag-bg);
  color: var(--flag-fg);
  border-bottom: 2px solid var(--flag-rule);
  padding: 0 .25rem;
  font-weight: 600;
  white-space: nowrap;
}

.note {
  background: var(--flag-bg);
  color: var(--flag-fg);
  border-left: 3px solid var(--flag-rule);
  padding: .75rem 1rem;
  margin: 1.25rem 0;
  font-size: .93rem;
}
.note p { margin: .3rem 0; }

@media (max-width: 30rem) {
  .wrap { padding-block: 1.75rem 3rem; }
  h1 { font-size: 1.35rem; }
}
