/* Shared by /privacy and /terms. The same "warm workshop" tokens as the landing page and
   the app (frontend/src/index.css), trimmed to what a page of prose needs. */

:root {
  color-scheme: light;
  --font-sans: Karla, ui-sans-serif, system-ui, sans-serif;
  --font-display: Bitter, Georgia, serif;
  --font-brand: Archivo, ui-sans-serif, system-ui, sans-serif;

  --paper: #efe8dc;
  --surface: #fbf7f0;
  --surface-2: #f5efe4;
  --ink: #2e2823;
  --ink-soft: #6e6356;
  --line: #dcd1bf;
  --line-soft: #eae1d2;
  --accent-ink: #2e4c6a;
  --sun-soft: #f3e2cb;
  --sun: #c0762c;
  --brand-ink: #201c17;
  --brand-ochre: #b5762a;

  --radius-card: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #15130f;
    --surface: #1e1b16;
    --surface-2: #25211a;
    --ink: #efe7d9;
    --ink-soft: #a6997f;
    --line: #363026;
    --line-soft: #2c271f;
    --accent-ink: #a9c6e2;
    --sun-soft: #3a2b1a;
    --sun: #e0a45f;
    --brand-ink: #f3efe7;
    --brand-ochre: #d99a4a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 20px;
}

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.wordmark .hobby {
  color: var(--brand-ink);
  font-weight: 800;
}

.wordmark .double {
  color: var(--brand-ochre);
  font-weight: 600;
}

main {
  padding: 40px 0 72px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}

h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 6px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

.updated {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-top: 10px;
}

/* The summary box at the top of each document, and the Google disclosure. */
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin: 26px 0;
  padding: 18px 20px;
}

.note h2,
.note h3 {
  margin-top: 0;
}

.note.flag {
  background: var(--sun-soft);
  border-color: var(--sun);
}

table {
  border-collapse: collapse;
  display: block;
  font-size: 15.5px;
  margin-bottom: 16px;
  overflow-x: auto;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 14px 9px 0;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  background: var(--surface-2);
  border-radius: 5px;
  font-size: 0.88em;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 22px 0 40px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
