/* Colors follow the app's Parchment theme (Theme.swift) in light mode and a
   Twilight-like palette in dark mode. */
:root {
  --bg: #f5ebd8;
  --surface: #faf3e5;
  --ink: #3d2e20;
  --muted: #5e4b38;
  --red: #8b2c1f;
  --rule: #e3d3b5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1f2e;
    --surface: #222838;
    --ink: #f3e9d6;
    --muted: #c9bda6;
    --red: #e0806c;
    --rule: #343b4f;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font: 17px/1.7 ui-serif, "New York", Georgia, "Times New Roman", serif;
  -webkit-text-size-adjust: 100%;
}
main, header, footer { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header { padding-top: 28px; }
header a { color: var(--red); text-decoration: none; font-size: 18px; }
main { padding-top: 32px; padding-bottom: 48px; }
h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.25; }
h1 { font-size: 38px; margin: 0 0 6px; }
h2 { font-size: 26px; margin: 36px 0 8px; }
h3 { font-size: 20px; margin: 24px 0 4px; }
.meta { font-size: 15px; margin: 0 0 32px; }
strong { color: var(--ink); }
a { color: var(--red); }
nav.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
nav.links a {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
}
footer {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 15px;
}
footer a { margin-right: 16px; }
