:root {
  --bg: #05060a;
  --surface: #0f1118;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f5f7ff;
  --muted: #aeb5c8;
  --accent: #abdff7;
  --accent-strong: #2084d1;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  color-scheme: dark;
  font-family: "Sora", "Space Grotesk", "SF Pro Display", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(171, 223, 247, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(32, 132, 209, 0.12), transparent 30rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.shell {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 24px 0 96px;
}

.site-nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
}

.nav-links .primary,
.primary {
  color: #031017;
  background: linear-gradient(135deg, var(--accent), #72bfea);
  box-shadow: 0 10px 32px rgba(32, 132, 209, 0.26);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blog-hero {
  max-width: 780px;
  padding: 96px 0 56px;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.98;
}

.blog-hero p,
.dek {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  line-height: 1.65;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.post-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  color: var(--text);
  border-color: rgba(171, 223, 247, 0.4);
  transform: translateY(-3px);
}

.post-card h2 {
  margin: 12px 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.08;
}

.post-card p {
  color: var(--muted);
  line-height: 1.6;
}

.post-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-header {
  max-width: 880px;
  padding: 88px 0 48px;
}

.article-header h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 64px;
  align-items: start;
}

.article-body {
  max-width: 760px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.11rem;
  line-height: 1.8;
}

.article-body > p:first-child {
  margin-top: 0;
  color: #eef8ff;
  font-size: 1.28rem;
  line-height: 1.65;
}

.article-body h2 {
  margin: 2.6em 0 0.55em;
  font-family: "Sora", "Space Grotesk", "SF Pro Display", Inter, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.article-body h3 {
  margin: 2em 0 0.5em;
  font-family: "Sora", "Space Grotesk", "SF Pro Display", Inter, sans-serif;
  font-size: 1.25rem;
}

.article-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.article-body li {
  margin: 0.6em 0;
  padding-left: 0.35em;
}

.answer-box,
.note {
  margin: 2em 0;
  padding: 20px 22px;
  border: 1px solid rgba(171, 223, 247, 0.28);
  border-radius: 16px;
  background: rgba(171, 223, 247, 0.08);
}

.answer-box strong,
.note strong {
  font-family: "Sora", "Space Grotesk", "SF Pro Display", Inter, sans-serif;
}

.toc {
  position: sticky;
  top: 106px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}

.cta {
  margin-top: 68px;
  padding: 30px;
  border: 1px solid rgba(171, 223, 247, 0.35);
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(171, 223, 247, 0.16), rgba(32, 132, 209, 0.1));
}

.cta h2 {
  margin-top: 0;
}

.cta a {
  display: inline-flex;
  margin-top: 8px;
  padding: 11px 15px;
  border-radius: 12px;
  font-family: "Sora", "Space Grotesk", "SF Pro Display", Inter, sans-serif;
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 84px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 800px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 24px), 1080px);
    padding-top: 12px;
  }

  .site-nav {
    position: static;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a:not(.primary) {
    display: none;
  }

  .blog-hero,
  .article-header {
    padding-top: 58px;
  }
}
