@font-face {
  font-family: "Fragment Mono";
  src: url("/fonts.gstatic.com/s/fragmentmono/v6/4iCr6K5wfMRRjxp0DA6-2CLnB4NHhg.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts.gstatic.com/s/jetbrainsmono/v24/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOV.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("/site-assets/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("/site-assets/assets/syRNPWzAMIrcJ3wIlPIP43KjQs.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}

:root {
  --bg: #0c0c0d;
  --surface: rgba(20, 20, 24, 0.72);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --muted: #a1a1aa;
  --subtle: #d4d4d8;
  --accent: #4066e0;
  --accent-2: #5e17eb;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: auto;
  width: 980px;
  height: 980px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  filter: blur(28px);
}

.page-bg-purple {
  top: -120px;
  left: -180px;
}

.page-bg-green {
  top: 180px;
  right: -220px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 48px), var(--max-width));
  margin: 0 auto;
  padding: 8px 0 80px;
}

/* Desktop navbar styles are in site.css */

/* Footer — matches main site */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 0 32px;
  margin-top: 60px;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.site-footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.site-footer-nav a {
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer-nav a:hover {
  color: #fff;
}

.site-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--subtle);
  font-size: 13px;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-footer-legal a {
  color: var(--subtle);
  font-size: 13px;
  text-decoration: none;
}

.site-footer-legal a:hover {
  color: var(--text);
}

.post-card h2 a:hover,
.prose a:hover {
  color: var(--text);
}

.index-hero,
.article-hero,
.related-posts {
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.index-hero,
.article-hero {
  padding: 56px;
  margin-bottom: 32px;
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--subtle);
  font-family: "Fragment Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.index-hero h1,
.article-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.index-hero p {
  max-width: 760px;
  color: var(--subtle);
  font-size: 18px;
}

.article-meta {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dot {
  margin: 0 10px;
}

.article-image {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-image img {
  width: 100%;
  object-fit: cover;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  background: rgba(17, 17, 20, 0.88);
  min-height: 100%;
}

.post-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 20px;
}

.post-card-date {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.post-card p {
  margin: 0;
  color: var(--subtle);
  font-size: 15px;
}

.article-body {
  width: min(760px, 100%);
  margin: 0 auto 40px;
  padding: 40px 0 20px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose h2,
.prose h3,
.prose h4 {
  margin: 0 0 20px;
}

.prose p,
.prose li {
  color: var(--subtle);
  font-size: 18px;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.prose h2 {
  margin-top: 42px;
  font-size: 34px;
}

.prose h3 {
  margin-top: 34px;
  font-size: 27px;
}

.prose h4 {
  margin-top: 28px;
  font-size: 22px;
}

.prose strong {
  color: var(--text);
}

.prose em {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 10px;
}

.prose blockquote {
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(64, 102, 224, 0.08);
  border-radius: 14px;
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
}

.prose a {
  color: #9eb6ff;
  text-decoration: underline;
  text-decoration-color: rgba(158, 182, 255, 0.35);
}

.related-posts {
  padding: 32px;
  margin-top: 24px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-footer {
  margin-top: 36px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.footer-meta {
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .index-hero,
  .article-hero,
  .related-posts {
    padding: 28px;
  }

  .page {
    width: min(calc(100vw - 24px), var(--max-width));
    padding-top: 12px;
  }

  .article-body {
    padding-top: 28px;
  }
}

@media (max-width: 1279.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page-shell,
  .page {
    overflow-x: hidden;
  }

  .page {
    width: calc(100vw - 24px);
    max-width: 100%;
  }

  .index-hero,
  .article-hero,
  .related-posts {
    width: 100%;
    padding: 20px;
  }

  .index-hero h1,
  .article-hero h1 {
    max-width: 100%;
    font-size: clamp(24px, 5.4vw, 42px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
  }

  .index-hero p,
  .article-meta,
  .prose p,
  .prose li {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .post-grid {
    grid-template-columns: 1fr !important;
  }

  .post-card {
    width: 100%;
  }

}
