@font-face {
  font-family: "IBM VGA 8";
  src: url("/fonts/IBM_VGA_8.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --fg: #fff;
  --muted: #ddd;
  --dim: #999;
  --accent: #1c1;
  --border: #555;
  --border-soft: #444;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM VGA 8", ui-monospace, Menlo, Consolas, monospace;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.site {
  text-align: center;
  padding: 32px 0 8px;
}

header.site h1 {
  font-size: 56px;
  margin: 0;
  text-shadow: 5px 5px var(--border);
  letter-spacing: 1px;
}

nav.site {
  text-align: center;
  padding: 16px 0 32px;
}

nav.site a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 12px;
}

nav.site a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--fg); }

article h1 {
  font-size: 36px;
  text-shadow: 3px 3px var(--border-soft);
  margin: 32px 0 8px;
}

article h2 {
  font-size: 26px;
  text-shadow: 2px 2px var(--border-soft);
  margin: 32px 0 12px;
}

article h3 { font-size: 20px; margin: 24px 0 8px; }

article .meta {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 32px;
}

article p { color: var(--muted); margin: 0 0 16px; }

a { color: var(--accent); }
a:hover { text-decoration: underline; }

ul, ol { color: var(--muted); padding-left: 24px; }
li { margin: 4px 0; }

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.95em;
}

pre {
  background: var(--surface);
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
}

pre code { background: transparent; padding: 0; }

blockquote {
  border-left: 3px solid var(--accent);
  margin: 16px 0;
  padding: 4px 16px;
  color: var(--muted);
}

hr { border: 0; border-top: 1px solid var(--border-soft); margin: 32px 0; }

img { max-width: 100%; height: auto; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  margin: 12px 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.post-list a { color: var(--accent); font-size: 18px; }
.post-list .date { color: var(--dim); font-size: 14px; margin-left: 8px; }

footer.site {
  text-align: center;
  color: var(--dim);
  font-size: 14px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 600px) {
  header.site h1 { font-size: 36px; text-shadow: 3px 3px var(--border); }
  article h1 { font-size: 26px; }
  article h2 { font-size: 20px; }
  body { font-size: 16px; }
}
