@font-face {
  font-family: 'iA Writer Mono';
  src: url('/fonts/iAWriterMonoS-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #fff;
  --text: #1a1a1a;
  --muted: #555;
  --faint: #bbb;
  --underline: rgba(0, 0, 0, 0.15);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #d4d4d4;
    --muted: #aaa;
    --faint: #666;
    --underline: rgba(255, 255, 255, 0.2);
  }
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'iA Writer Mono', 'SF Mono', 'Menlo', monospace;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding: 3rem 2rem;
  max-width: 640px;
}
h1, h2 { font-size: 16px; font-weight: 400; }
h1 { margin-bottom: 0.2rem; }
h2 { margin-top: 2.4rem; margin-bottom: 0.6rem; color: var(--muted); }
p { margin-bottom: 1.6rem; }
.meta { color: var(--faint); margin-bottom: 1.6rem; }
.muted { color: var(--muted); }
ul, ol { list-style: none; }
ul li::before { content: "· "; }
ol { counter-reset: step; }
ol li { counter-increment: step; padding-left: 2ch; text-indent: -2ch; margin-bottom: 0.6rem; }
ol li::before { content: counter(step) " "; color: var(--faint); }
.index li { margin-bottom: 0.6rem; }
.index .tags { color: var(--faint); font-size: 14px; display: block; padding-left: 2ch; }
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s ease;
}
a:hover { text-decoration-color: var(--text); }
footer { margin-top: 3.2rem; font-size: 14px; }
footer a { color: var(--muted); }
