@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/caveat-600.ttf') format('truetype'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/caveat-700.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.ttf') format('truetype'); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1a1a; --paper: #faf5ec; --amber: #f2a340; --blue: #3b6bd6;
  --hand: 'Caveat', cursive; --body: 'Inter', system-ui, -apple-system, sans-serif;
}
body {
  background: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(26,26,26,.08) 1px, transparent 0);
  background-size: 26px 26px;
  color: var(--ink); font-family: var(--body); line-height: 1.7;
}
a { color: var(--blue); }
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; border-bottom: 2.5px solid var(--ink); background: rgba(250,245,236,.92);
  position: sticky; top: 0;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--amber);
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nav-brand { font-family: var(--hand); font-size: 24px; font-weight: 700; }
.back-link { font-family: var(--hand); font-size: 18px; font-weight: 600; }

.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.doc h1 {
  font-family: var(--hand); font-weight: 700; font-size: clamp(34px, 5vw, 50px);
  transform: rotate(-1deg); margin-bottom: 6px;
}
.doc .updated { font-size: 13px; color: #777; margin-bottom: 36px; }
.doc h2 {
  font-family: var(--hand); font-weight: 700; font-size: 26px;
  margin: 34px 0 10px; color: var(--ink);
}
.doc p, .doc li { font-size: 14.5px; color: #333; margin-bottom: 10px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc .box {
  background: #fff; border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink); padding: 20px 22px; margin: 18px 0;
}
footer {
  border-top: 2.5px solid var(--ink); padding: 30px 24px; text-align: center;
  color: #6b6b6b; font-size: 13px; background: #f3ecdd;
}
