@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

.dither-hero {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.dither-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 15, 0) 0%,
    rgba(5, 7, 15, 0.4) 70%,
    var(--canvas) 100%
  );
}

.dither-hero #dither {
  position: absolute;
  inset: 0;
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (max-width: 640px) {
  .dither-hero {
    height: 260px;
  }
}

/* Compact site header, reused on every /insights page */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 48px);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-header .brand img {
  height: 26px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(0, 90, 230, 0.6));
}

.site-header .brand span {
  font-family: "Geist Pixel", "PP Neue Montreal", sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.site-header .back {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
}

.site-header .back:hover {
  color: var(--blue);
  background: rgba(0, 90, 230, 0.1);
}

/* Insights index hero */
.insights-hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 56px;
  text-align: left;
}

.insights-hero .eyebrow {
  text-align: left;
}

.insights-hero h1 {
  margin: 10px 0 0;
  font-family: "Geist Pixel", "PP Neue Montreal", sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(0, 90, 230, 0.3);
}

.insights-hero p {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* Post list */
.post-list {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 80px;
  display: flex;
  flex-direction: column;
}

.post-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 28px 0;
  border-top: 1px solid rgba(238, 241, 246, 0.14);
}

.post-list .post-card:last-child {
  border-bottom: 1px solid rgba(238, 241, 246, 0.14);
}

.post-card .post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.post-card h2 {
  margin: 10px 0 0;
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
}

.post-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.post-card:hover .read-more {
  color: var(--blue);
}

.post-card:hover h2 {
  color: var(--blue);
}

/* Article */
.article-hero {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 48px) 40px;
}

.article-hero .post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.article-hero h1 {
  margin: 14px 0 0;
  font-family: "Geist Pixel", "PP Neue Montreal", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 5.5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(0, 90, 230, 0.3);
}

.article-hero .dek {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

article.post-body {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 24px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
}

article.post-body > .lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.9;
}

article.post-body h2 {
  margin: 52px 0 6px;
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  padding-top: 20px;
  border-top: 1px solid rgba(238, 241, 246, 0.14);
}

article.post-body h2 .part-number {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 10px;
}

article.post-body h3 {
  margin: 32px 0 4px;
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

article.post-body p {
  margin: 14px 0;
}

article.post-body ul,
article.post-body ol {
  margin: 14px 0;
  padding-left: 1.3em;
}

article.post-body li {
  margin: 6px 0;
}

article.post-body li::marker {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.9em;
}

article.post-body strong {
  color: var(--ink);
  font-weight: 600;
}

article.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(0, 90, 230, 0.12);
  color: var(--ink);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

article.post-body pre {
  margin: 18px 0;
  padding: 16px 18px;
  background: rgba(238, 241, 246, 0.05);
  border: 1px solid rgba(238, 241, 246, 0.14);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
  overflow-x: auto;
}

article.post-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre;
}

.callout {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(0, 90, 230, 0.08);
  border-left: 2px solid var(--blue);
  border-radius: 4px;
}

.callout .callout-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.note {
  margin: 18px 0;
  padding: 14px 18px;
  background: rgba(238, 241, 246, 0.05);
  border: 1px dashed rgba(238, 241, 246, 0.25);
  border-radius: 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.note strong {
  color: var(--ink);
}

/* Troubleshooting accordion (visually matches homepage FAQ) */
.accordion {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
}

.accordion details {
  padding: 16px 0;
}

.accordion summary {
  cursor: pointer;
  color: var(--ink);
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "+ ";
  color: var(--blue);
  font-family: var(--mono);
}

.accordion details[open] summary::before {
  content: "– ";
}

.accordion p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.closing-line {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 241, 246, 0.14);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.post-footer-nav {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 40px auto 0;
  padding: 0 clamp(20px, 4vw, 48px);
}

@media (max-width: 640px) {
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}
