:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #101113;
  --panel-2: #141619;
  --text: #ecebe6;
  --muted: #b8b6ad;
  --line: #333333;
  --accent: #4a90e2;
  --gold: #7fb3ec;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 47px, rgba(255,255,255,.018) 47px, rgba(255,255,255,.018) 48px),
    linear-gradient(180deg, #0a0a0a 0%, #101113 52%, #0a0a0a 100%);
  background-size: auto, auto;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(18px);
}
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 0;
  color: var(--muted);
  flex-wrap: wrap;
}
.brand { font-weight: 900; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 18px; height: 18px; }
nav, .site-footer { display: flex; gap: 18px; flex-wrap: wrap; }
nav a, .site-footer a, .text-link, .back-link { color: var(--accent); font-weight: 800; }
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) 72px; }
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 132px) 0 54px;
  max-width: 940px;
}
.hero::after {
  content: "";
  display: block;
  width: min(520px, 70vw);
  height: 1px;
  margin-top: 36px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
}
.eyebrow, .post-meta { color: var(--gold); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-size: clamp(46px, 7vw, 88px); line-height: .98; margin: 0 0 22px; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
p, li { color: var(--muted); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.actions a {
  border: 1px solid var(--line);
  padding: 12px 18px;
  background: rgba(255,255,255,0.045);
}
.actions a:hover, .post-card:hover {
  border-color: rgba(74,144,226,.48);
  transform: translateY(-2px);
}
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(74,144,226,.08), transparent 42%),
    rgba(16,17,19,.78);
  padding: 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.post-card h2 a:hover, .text-link:hover, nav a:hover { color: var(--text); }
.article {
  max-width: 840px;
  margin: 0 auto;
  padding-top: 64px;
}
.article h1 { font-size: clamp(38px, 6vw, 72px); }
.article h2 { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); }
.article p, .article li { font-size: 19px; }
code { color: var(--accent); }
@media (max-width: 800px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .posts { grid-template-columns: 1fr; }
  .post-card { min-height: 0; }
}