:root {
  --ink: #1a1a18;
  --paper: #f5f3ef;
  --muted: #6e6b66;
  --rule: #ddd8d0;
  --panel: #ede9e2;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f3ef;
    --paper: #1a1a18;
    --muted: #a9a49c;
    --rule: #34322e;
    --panel: #ede9e2;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a { color: inherit; text-underline-offset: 0.18em; }

header.site, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

nav { display: flex; gap: 20px; }

nav a { text-decoration: none; color: var(--muted); }

nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

nav a[aria-current="page"] { text-decoration: underline; }

main { padding-top: 40px; padding-bottom: 56px; }

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 36px 0 8px;
}

.meta { color: var(--muted); margin-top: 0; }

p, ul { margin: 0 0 14px; }

ul { padding-left: 22px; }

li { margin-bottom: 6px; }

.home h1 { font-size: 44px; }

.home .meta { font-size: 21px; margin-bottom: 28px; }

.seal {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 0 24px;
  padding: 12px;
  border-radius: 28px;
  background: var(--panel);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .home h1 { font-size: 36px; }
  header.site, main, footer { padding-left: 16px; padding-right: 16px; }
}
