/* Extruda blog — shared styles (brand-consistent with the main site) */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url("/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --ink: #0A0E17;
  --card: #111A2E;
  --card-2: #0F1728;
  --line: rgba(122, 152, 224, .16);
  --line-2: rgba(122, 152, 224, .28);
  --blue-hi: #88A8FF;
  --text: #EAF0FF;
  --muted: #93A2C6;
  --muted-2: #6B7BA0;
  --amber: #F2B84B;
  --amber-hi: #FFD27A;
  --disp: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 760px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center -1px, -1px center;
}
a { color: inherit }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px }

/* header */
header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 23, .72);
  z-index: 20;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text) }
.brand svg { width: 26px; height: 26px; flex: none }
.bar nav { display: flex; align-items: center; gap: 20px; font-size: 14px }
.bar nav a { color: var(--muted); text-decoration: none }
.bar nav a:hover { color: var(--text) }
.btn {
  font-family: var(--body); font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
  border-radius: 10px; padding: 9px 15px; text-decoration: none;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber)); color: #2A1D02;
}
.btn:hover { filter: brightness(1.05) }

/* article */
main { padding: 40px 0 72px }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 22px }
.crumbs a { color: var(--muted); text-decoration: none }
.crumbs a:hover { color: var(--text) }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-hi) }
article h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 14px }
.post-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); letter-spacing: .04em; margin-bottom: 30px }
.post-meta span + span::before { content: "·"; margin: 0 8px; color: var(--line-2) }
.lead { font-size: 20px; color: var(--text); margin: 0 0 26px; line-height: 1.6 }
article h2 { font-family: var(--disp); font-weight: 700; font-size: 26px; letter-spacing: -.01em; margin: 44px 0 14px }
article h3 { font-family: var(--disp); font-weight: 600; font-size: 19px; margin: 30px 0 10px; color: var(--blue-hi) }
article p { margin: 0 0 18px; color: #D7E0F5 }
article ul, article ol { margin: 0 0 20px; padding-left: 22px; color: #D7E0F5 }
article li { margin: 8px 0 }
article strong { color: var(--text); font-weight: 600 }
article a.inline { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 2px }
article a.inline:hover { color: var(--amber-hi) }
article blockquote {
  margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--amber);
  color: var(--muted); font-style: italic;
}
code { font-family: var(--mono); font-size: .88em; background: rgba(122, 152, 224, .12); padding: 2px 6px; border-radius: 6px }

/* comparison table */
.table-wrap { overflow-x: auto; margin: 22px 0 }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font-family: var(--disp); font-weight: 600; color: var(--text) }
td { color: var(--muted) }
tbody tr:hover td { color: var(--text) }

/* callout / CTA */
.cta {
  margin: 40px 0; padding: 26px 26px; border-radius: 16px;
  border: 1px solid var(--line-2);
  background: radial-gradient(500px 200px at 50% -20%, rgba(242, 184, 75, .10), transparent 60%), linear-gradient(180deg, var(--card), var(--card-2));
  text-align: center;
}
.cta h3 { font-family: var(--disp); font-weight: 700; font-size: 22px; color: var(--text); margin: 0 0 8px }
.cta p { color: var(--muted); margin: 0 0 16px }
.cta .btn { font-size: 15px; padding: 11px 20px }
.note { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); border: 1px solid var(--line); border-left: 3px solid var(--blue-hi); border-radius: 10px; padding: 12px 16px; margin: 22px 0 }

/* FAQ */
.faq { margin-top: 12px }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0 }
.faq summary { cursor: pointer; list-style: none; padding: 16px 2px; font-family: var(--disp); font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); font-size: 20px; flex: none }
.faq details[open] summary::after { content: "–" }
.faq details p { color: var(--muted); padding: 0 2px 18px; margin: 0 }

/* related */
.related { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px }
.related h2 { font-family: var(--disp); font-size: 20px; margin: 0 0 16px }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.related-grid a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); font-family: var(--disp); font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s }
.related-grid a:hover { border-color: var(--line-2); transform: translateY(-2px) }

/* blog index list */
.post-list { list-style: none; padding: 0; margin: 28px 0 0 }
.post-list li { border-top: 1px solid var(--line); padding: 26px 0 }
.post-list li:last-child { border-bottom: 1px solid var(--line) }
.post-list .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-hi) }
.post-list h2 { font-family: var(--disp); font-size: 22px; margin: 8px 0 8px }
.post-list h2 a { text-decoration: none; color: var(--text) }
.post-list h2 a:hover { color: var(--amber-hi) }
.post-list p { color: var(--muted); margin: 0 }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 13px }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.foot a { color: var(--muted); text-decoration: none; margin-left: 18px }
.foot a:hover { color: var(--text) }

@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr }
  .bar nav { gap: 14px }
}
