/*
 * The look of the public pages — the privacy policy, the terms, and the index
 * that lists them.
 *
 * Shared rather than repeated in each file: there are three documents now, and
 * a legal page whose type looks different from the one beside it reads as a
 * page from somewhere else. The palette is the app's own — paper and evergreen
 * in light, the same ink Cura uses at night in dark.
 */

:root {
  --paper: #f7f2e9;
  --ink: #1a1613;
  --ink-2: #4a423b;
  --ink-3: #6d635a;
  --rule: rgba(26, 22, 19, 0.12);
  --acc: #1b5445;
  --acc-soft: #2c7c66;
  --card: rgba(27, 84, 69, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131110;
    --ink: #f0ebe4;
    --ink-2: #c3bab1;
    --ink-3: #8e857c;
    --rule: rgba(240, 235, 228, 0.14);
    --acc: #7fc9b0;
    --acc-soft: #7fc9b0;
    --card: rgba(127, 201, 176, 0.09);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 17px/1.65 ui-serif, Charter, "Iowan Old Style", Georgia, serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.4rem 5rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.6rem;
  margin-bottom: 2.2rem;
}

.eyebrow {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

h1 {
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 2.6rem 0 0.7rem;
  font-weight: 600;
}

h3 {
  color: var(--ink);
  font-size: 1.02rem;
  margin: 1.7rem 0 0.4rem;
  font-weight: 600;
}

.stamp {
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-3);
  margin: 0;
}

p,
li {
  margin: 0 0 0.9rem;
}

ul,
ol {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--acc-soft);
  text-underline-offset: 2px;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.lede {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.2rem 1.3rem 0.6rem;
  margin: 0 0 2rem;
}

.lede p:last-child {
  margin-bottom: 0.6rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-3);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--ink);
}

/* The index, and the "the other document is over here" line on each page. */
.docs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs li {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 1.1rem 0;
}

.docs a {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.docs a:hover {
  color: var(--acc-soft);
}

.docs p {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-3);
}
