:root {
  --page-background: #f6f1e7;
  --surface: #fffaf0;
  --text: #1d2433;
  --muted-text: #5b6375;
  --accent: #1f3a6b;
  --accent-soft: #e4ebf7;
  --rule: #e2d8c4;
  --placeholder-background: #fff1b8;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-background: #0f1626;
    --surface: #16203a;
    --text: #ece4d2;
    --muted-text: #a7adbd;
    --accent: #e8c77a;
    --accent-soft: #233158;
    --rule: #2a3656;
    --placeholder-background: #5a4a12;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

header { padding-top: 40px; }

.brand {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 1.2rem; margin: 36px 0 8px; }
p, ul, dl { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 1.15rem; color: var(--muted-text); }
.updated { color: var(--muted-text); font-size: 0.95rem; }

.summary {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

.summary p:last-child { margin-bottom: 0; }

dl.faq dt { font-weight: 650; margin-top: 18px; }
dl.faq dd { margin: 4px 0 0; }

address { font-style: normal; }

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

.placeholder {
  background: var(--placeholder-background);
  border-radius: 4px;
  padding: 0 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

nav.links a {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 16px;
  padding-bottom: 40px;
  color: var(--muted-text);
  font-size: 0.9rem;
}

footer a { color: inherit; margin-right: 14px; }
