
@font-face {
  font-family: 'Pixelify Sans';
  src: url('./fonts/PixelifySans.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #fdfaf4; --card: #ffffff; --sand: #f5eee2;
  --ink: #2a2622; --muted: #6d635a; --line: #e6ddd0;
  --clay: #b8482c; --gold: #c8892a;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Times New Roman', serif;
  --pixel: 'Pixelify Sans', Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--clay); }
.wrap { max-width: 740px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-family: var(--pixel); line-height: 1.2; font-weight: 700; }

h2[id], h3[id] { scroll-margin-top: 84px; }
h1 { font-size: 39px; margin: 0 0 8px; }
h2 { font-size: 26px; margin: 42px 0 10px; }
h3 { font-size: 20px; margin: 28px 0 6px; }

header.bar {
  border-bottom: 1px solid var(--line); background: rgba(253, 250, 244, .93);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px);
}
header.bar .wrap { display: flex; align-items: center; gap: 16px; height: 62px; max-width: 1020px; }

.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo img { display: block; width: auto; image-rendering: pixelated; }
.logo .lockup { height: 44px; }
.logo .mark { display: none; height: 38px; }
@media (max-width: 640px) {
  .logo .lockup { display: none; }
  .logo .mark { display: block; }
}
header.bar nav { margin-left: auto; display: flex; gap: 20px; }
header.bar nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
header.bar nav a:hover { color: var(--ink); }

main { padding: 48px 0 60px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.lead { color: #443d36; font-size: 18px; }
p, li { color: #3a342e; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--ink); }

.callout {
  background: var(--sand); border: 1px solid var(--line); border-left: 3px solid var(--clay);
  border-radius: 4px; padding: 16px 18px; margin: 22px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.tablewrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; white-space: nowrap; }
td { color: #3a342e; }


.todo { color: var(--clay); border-bottom: 1px dashed var(--clay); font-style: normal; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 18px; }


.numbered { counter-reset: section; }
.numbered h2 { counter-increment: section; }
.numbered h2::before { content: counter(section) ". "; }
