/* One stylesheet for the three public pages. Deliberately tiny and
   self-hosted: a privacy policy that pulls a font from a third party is
   making a request it is in the middle of promising not to make. */

:root {
  --bg: #fdfcfa;
  --fg: #1c1b1a;
  --muted: #6b6764;
  --rule: #e6e2dd;
  --accent: #5b6cff;
  --warn: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --fg: #eceae7;
    --muted: #9b9691;
    --rule: #302e2c;
    --accent: #93a0ff;
    --warn: #f2b8b5;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 3rem 1.5rem 6rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

main {
  max-width: 42rem;
  margin: 0 auto;
}

header {
  margin-bottom: 2.5rem;
}

.mark {
  font-size: 2rem;
  line-height: 1;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0.6rem 0 0.3rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.6rem;
}

h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}

p,
li {
  margin: 0.6rem 0;
}

ul,
ol {
  padding-left: 1.3rem;
}

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

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
}

.note {
  border-left: 3px solid var(--rule);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}

.note.warn {
  border-left-color: var(--warn);
  color: var(--fg);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
}

.wrap {
  overflow-x: auto;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  margin-right: 1.2rem;
}
