:root {
  --bg: #090b10;
  --bg-elev: #0f131b;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --line: #1f2937;
  --accent: #22d3ee;
  --accent-2: #10b981;
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", "Segoe UI", "Roboto", sans-serif;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1118 0%, #090b10 100%);
  padding: 3.5rem 0 2.25rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 65ch;
}

.hero-badges,
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badges {
  margin-top: 1rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.post {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 1rem;
}

.post-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
}

.post-date {
  margin: 0;
  font-family: "IBM Plex Mono", "Fira Code", monospace;
  color: var(--accent-2);
  font-size: 0.8rem;
}

h2 {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
}

.post-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.post p {
  line-height: 1.5;
}

.links {
  display: flex;
  gap: 0.9rem;
  margin: 0.7rem 0 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 2.5rem;
  }

  .post {
    padding: 0.85rem;
  }
}
