/* Somely legal pages. Restrained on purpose: a privacy policy earns
   trust by being readable, not by being decorated. */

:root {
  --ground: #faf6ef;
  --surface: #ffffff;
  --ink: #241e1a;
  --ink-2: #5d5348;
  --ink-3: #8d8175;
  --line: #e6dccd;
  --rose: #c93b58;
  --amber-bg: #fdf1dc;
  --amber-ink: #8a5a08;
  --body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17130f;
    --surface: #1f1a16;
    --ink: #f2eae0;
    --ink-2: #b5a898;
    --ink-3: #857a6c;
    --line: #322a22;
    --rose: #f07f95;
    --amber-bg: #33280f;
    --amber-ink: #e8b962;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding-block: 40px 90px;
  padding-left: 20px;
  padding-right: 20px;
}

header.doc {
  padding-bottom: 22px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 18px;
}
.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

h1 {
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}

.meta {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0;
}

.intro {
  font-size: 17px;
  color: var(--ink-2);
  margin: 26px 0 0;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 42px 0 12px;
  padding-top: 4px;
  scroll-margin-top: 20px;
}
h2 .num {
  color: var(--ink-3);
  font-weight: 400;
  font-size: 15px;
  margin-right: 8px;
}

h3 {
  font-size: 16px;
  margin: 26px 0 8px;
}

p { margin: 0 0 14px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--ink-3); }

a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 700; }

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 18px;
}
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
  border-radius: 3px 10px 10px 3px;
  padding: 15px 18px;
  margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0; }

/* Anything the operator must fill in before publishing. Loud by
   design — a forgotten placeholder has to be impossible to miss. */
.todo {
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px dashed currentColor;
  white-space: nowrap;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 30px 0 0;
}
.toc p { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.toc li { margin-bottom: 4px; }

footer.doc {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}
footer.doc a { color: var(--ink-2); }

.meta + .meta { margin-top: 6px; }
.meta a { color: var(--ink-2); }

.langs { margin-top: 10px; font-size: 14px; }
.langs a { margin-right: 14px; white-space: nowrap; }
.langs a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
