:root {
  --bg:     #161616;
  --border: #3a3a3a;
  --text:   #f0f0f0;
  --muted:  #888;
  --dim:    #666;
  --white:  #ffffff;
  --mono:   'JetBrains Mono', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.75;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--white); }

/* ── LAYOUT ── */
nav, main, footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(8px);
  z-index: 100;
  max-width: 100%;
}

nav > * { max-width: 680px; }

.nav-brand {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ── SECTIONS ── */
section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

/* ── ARTICLES (content blocks) ── */
article {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

article:last-child { border-bottom: none; }

/* ── HEADINGS ── */
h1 { font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 20px; }
h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 6px; }
h3 .meta { font-weight: 300; margin-left: 8px; }

/* ── TEXT ── */
p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }
p.lead { color: var(--text); font-size: 14px; margin-bottom: 16px; }
p.meta { font-size: 16px; color: var(--dim); letter-spacing: 0.04em; margin-bottom: 10px; }

/* ── LINKS LIST ── */
ul.links {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

ul.links a {
  font-size: 11px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

ul.links a::before { content: '↗ '; }
ul.links a:hover { color: var(--text); }

/* ── FOOTER ── */
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
}

footer span { font-size: 11px; color: var(--dim); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav, main, footer { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
}
