/* Shared by index.html and 404.html. No inline styles anywhere: the CSP is style-src 'self'. */
:root {
  color-scheme: light dark;
  --bg: #fcfcfc;
  --text: #14142b;
  --accent: #00387e;
  --line: #d9e0e9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #00295b;
    --text: #f3f5f8;
    --accent: #fffacc;
    --line: #2f5389;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-header, main, .site-footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header { padding-top: 3rem; text-align: center; color: var(--accent); }
.logo { width: 5rem; height: auto; }
.brand { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.brand span { font-size: 1.75rem; }

h1, h2 {
  color: var(--accent);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; text-align: center; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.signature { font-style: italic; }

.site-footer {
  margin-top: 4rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.site-footer h2 { font-size: 1.25rem; }
