:root {
  --bg: #f5f4ef;
  --fg: #121212;
  --muted: #6f6e69;
  --line: #c9c7bf;
  --panel: #ebe9e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0c;
    --fg: #ecebe6;
    --muted: #8d8c86;
    --line: #3a3936;
    --panel: #2b2a27;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
a:hover, a:focus-visible { border-color: var(--fg); outline: none; }
.serif { font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif; font-weight: 400; }

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px clamp(16px, 4vw, 40px);
}
.top a { border: 0; }
.brand {
  grid-column: 2;
  display: block;
  line-height: 0;
}
.brand .logo { display: block; height: clamp(28px, 4.5vw, 38px); width: auto; }
