/* Shared styles for the plain pages (home, nest, privacy).
   Colours live in variables so dark mode only has to redefine them. */
:root {
  --bg: #fdfcf8;
  --fg: #1d1d1b;
  --muted: #5e5c56;
  --accent: #b3261e;
  --rule: #e2dfd6;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --fg: #ecebe6;
    --muted: #a6a39b;
    --accent: #ff8a7a;
    --rule: #33322f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 3rem 1rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main, header, footer {
  max-width: var(--max);
  margin: 0 auto;
}

header { margin-bottom: 2rem; }
header a { color: var(--muted); text-decoration: none; font-weight: 600; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }

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

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

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