:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #fafafa;
  --muted: #666;
  --line: #deded8;
  --mint: #00ffb3;
  --lime: #c7ff1a;
  --orange: #ff5c1a;
  --measure: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.topbar,
.footer-inner,
.article-shell,
.blog-index,
.error-page {
  width: min(calc(100% - 32px), 1180px);
  margin-inline: auto;
}
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; }
.topbar-nav { display: flex; align-items: center; gap: 18px; font-size: .94rem; }
.topbar-nav a { text-decoration: none; }
.nav-subscribe,
.nav-cta { padding: 8px 13px; border: 1px solid var(--ink); border-radius: 999px; }
.nav-subscribe { background: var(--lime); }
.nav-cta { background: var(--orange); color: #fff; }
.nav-subscribe-dot,
.nav-cta-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }

.article-shell { max-width: var(--measure); padding-block: 56px 72px; }
.article-hero { margin-bottom: 48px; }
.article-kicker { color: var(--muted); font-size: .83rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 19ch; margin: 10px 0 16px; font-size: clamp(2.35rem, 7vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.article-deck { max-width: 64ch; font-size: 1.18rem; color: #323232; }
.article-meta { color: var(--muted); font-size: .9rem; }
.article-hero-image { display: block; width: 100%; margin-top: 28px; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { font-size: 1.08rem; }
.article-body h2 { margin-top: 64px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; }
.article-body h3 { margin-top: 38px; font-size: 1.35rem; }
.article-body p,
.article-body ul,
.article-body ol { max-width: 72ch; }
.article-body pre,
.term-block { overflow-x: auto; padding: 18px; border: 1px solid #2e2e2e; border-radius: 12px; background: #101010; color: #f7f7f2; }
.callout { margin-block: 28px; padding: 20px 22px; border-left: 5px solid var(--orange); background: #fff; }
.callout.tip { border-left-color: var(--mint); }
.toc { margin-block: 36px; padding: 22px; border: 1px solid var(--line); background: #fff; }
.toc__head { font-weight: 800; }
.step-header { margin-top: 70px; padding-top: 22px; border-top: 3px solid var(--ink); }
.step-header .num,
.step-header .duration { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
.related-section { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.related-grid,
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card,
.article-card { padding: 20px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.related-card h3,
.article-card h2 { margin: 8px 0; line-height: 1.15; }
.footer { padding-block: 34px; border-top: 1px solid var(--line); background: #111; color: #fff; }
.footer-inner { display: grid; gap: 24px; }
.footer-author,
.footer-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-author-avatar img { border-radius: 50%; }
.footer-author-name { font-weight: 800; }
.footer-author-role,
.footer-copy { color: #bcbcbc; }
.social { display: inline-flex; align-items: center; gap: 7px; }
.blog-index { padding-block: 56px 72px; }
.blog-index h1 { max-width: 15ch; }
.error-page { min-height: 65vh; display: grid; place-content: center; text-align: center; }

@media (max-width: 800px) {
  .topbar { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .topbar-nav { width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .related-grid,
  .article-grid { grid-template-columns: 1fr; }
  .article-shell { padding-top: 36px; }
}

