﻿:root {
  --bg-0: #050d21;
  --surface: rgba(12, 23, 52, 0.78);
  --surface-strong: rgba(8, 17, 39, 0.9);
  --line: rgba(147, 182, 255, 0.24);
  --line-soft: rgba(147, 182, 255, 0.14);
  --text-0: #f4f8ff;
  --text-1: #d1ddf8;
  --text-2: #a7bbde;
  --accent: #53c9ff;
  --accent-2: #4df4c4;
  --container: min(900px, calc(100% - 2rem));
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(circle at 10% 0%, #112a59 0%, transparent 40%),
    radial-gradient(circle at 100% 20%, #252167 0%, transparent 42%),
    var(--bg-0);
  min-height: 100vh;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

p {
  margin: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.blog-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 9, 22, 0.78);
  backdrop-filter: blur(12px);
}

.blog-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Inter, system-ui, sans-serif;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-word {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.top-links a {
  color: var(--text-1);
  font-size: 0.94rem;
}

.top-links a:hover,
.top-links a:focus-visible {
  color: var(--text-0);
}

.hero {
  padding: 3rem 0 2rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.hero p {
  margin-top: 0.95rem;
  color: var(--text-1);
  max-width: 62ch;
}

.post-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.post-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 1.2rem;
}

.post-card .tag {
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-card h2 {
  margin-top: 0.4rem;
  font-size: 1.45rem;
}

.post-card p {
  margin-top: 0.65rem;
  color: var(--text-1);
}

.link-pill {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent-2);
  padding: 0.44rem 0.88rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.link-pill:hover,
.link-pill:focus-visible {
  color: var(--text-0);
  border-color: var(--accent-2);
}

.article-shell {
  margin-top: 2.4rem;
  margin-bottom: 2.8rem;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--surface-strong);
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 0.95rem;
}

.article-shell h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
}

.article-lead {
  margin-top: 1rem;
  color: var(--text-1);
}

.article-shell h2 {
  margin-top: 1.6rem;
  font-size: 1.45rem;
}

.article-shell p + p {
  margin-top: 0.9rem;
}

.article-shell ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-1);
}

.article-shell li + li {
  margin-top: 0.5rem;
}

.article-footer-links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.article-footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.44rem 0.88rem;
  color: var(--text-1);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.9rem;
}

.article-footer-links a:hover,
.article-footer-links a:focus-visible {
  color: var(--text-0);
  border-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 9, 22, 0.78);
  padding: 1.25rem 0 1.6rem;
}

.site-footer p {
  color: var(--text-2);
  font-size: 0.9rem;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  :root {
    --container: min(900px, calc(100% - 1.4rem));
  }

  .blog-topbar-inner {
    min-height: 66px;
  }

  .top-links {
    gap: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
