:root {
  color-scheme: dark;
  --ink: #1c1410;
  --paper: #f6efe4;
  --muted: #d9cbb8;
  --line: rgba(246, 239, 228, 0.16);
  --link: #f3c7a8;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 17px/1.55 "Iowan Old Style", Palatino, Georgia, serif;
}

.top, main {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.25rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

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

h1 {
  margin: 1.4rem 0 0.2rem;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  margin: 1.6rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

p { margin: 0.55rem 0; }

.updated {
  margin-top: 0;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
}

main { padding-bottom: 3rem; }

code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}
