:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6f6a60;
  --line: #e2ddd2;
  --accent: #8a5a2b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --surface: #1e1c19;
    --ink: #ece8e1;
    --muted: #9d978c;
    --line: #34302b;
    --accent: #d29a5e;
    color-scheme: dark;
  }
  .logo { filter: invert(1) hue-rotate(180deg); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 "Montserrat", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.logo { height: 34px; width: auto; display: block; }
nav a { font-size: 14px; color: var(--muted); text-decoration: none; margin-left: 18px; }
nav a:hover { color: var(--ink); }
h1, h2 { font-family: "Eczar", Georgia, serif; font-weight: 500; line-height: 1.15; margin: 0; }
.hero { padding: 72px 0 48px; display: grid; gap: 20px; max-width: 680px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero p { margin: 0; color: var(--muted); font-size: 18px; }
.btn {
  display: inline-block; justify-self: start; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px;
}
.btn:hover { opacity: .88; }
section { padding: 32px 0; }
section h2 { font-size: 1.7rem; margin-bottom: 6px; }
section > p.lead { color: var(--muted); margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.fact b { display: block; font-family: "Eczar", Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.fact span { color: var(--muted); font-size: 14px; }
footer { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
article.doc { max-width: 720px; padding: 48px 0 8px; }
article.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 4px; }
article.doc h2 { font-size: 1.35rem; margin: 32px 0 6px; }
article.doc p, article.doc li { color: var(--ink); }
article.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 32px; }
  nav a { margin-left: 12px; }
}
