:root {
  --bg: #f5f5f0;
  --fg: #111111;
  --border: #cccccc;
  --code-bg: #ebebeb;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 720px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  padding: 3rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

a:hover {
  text-decoration: none;
}

nav {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

header {
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #f5a623;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
}

pre, code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

pre {
  background: var(--code-bg);
  padding: 12px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

section {
  margin-bottom: 2rem;
}

footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  color: #666;
}
