:root {
  --bg: #0f1217;
  --bg-elev: #151a20;
  --bg-card: #161b21;
  --border: #232931;
  --border-strong: #2e353e;
  --text: #eef0f2;
  --text-soft: #c9cdd3;
  --text-muted: #a2a9b3;
  --text-faint: #969eaa;
  --mint: #7ddfc3;
  --mint-hover: #95e8d0;
  --mint-ink: #0c1a16;
  --mint-tint: rgba(125, 223, 195, 0.10);
  --font-head: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: linear-gradient(180deg, #121a1c 0, var(--bg) 420px, #121116 100%);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--text); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 30; padding: 12px 16px; background: var(--mint); color: var(--mint-ink); }
.skip-link:focus { top: 12px; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(14, 17, 22, 0.94); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.logo { flex-shrink: 0; }
.brand-logo { width: 185px; height: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: var(--text-muted); }
.nav-links a { padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.signin { color: var(--text-muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1px solid transparent; text-align: center; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--mint); color: var(--mint-ink); }
.btn-primary:hover { background: var(--mint-hover); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: #65707e; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; color: var(--mint); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--mint); background: var(--mint-tint); border: 1px solid #36594e; padding: 4px 10px; border-radius: 6px; }
.meta { font-size: 14px; color: var(--text-faint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hero { text-align: center; padding: 76px 0 60px; }
.hero h1 { font-size: 60px; margin: 12px 0 18px; }
.hero p { max-width: 680px; margin: 0 auto; font-size: 19px; color: var(--text-muted); }
.section { padding: 28px 0 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.section-head h2 { font-size: 30px; margin: 8px 0 0; }
.empty-state { padding: 32px 0 64px; text-align: center; }
.empty-state h3 { font-size: 24px; margin: 0 0 12px; }
.empty-state p { color: var(--text-muted); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); transition: border-color .2s, background .2s; min-width: 0; }
.card:hover { border-color: #3f6e63; background: #181e25; }
.card h3 { font-size: 21px; margin: 4px 0 0; }
.card p { margin: 0; font-size: 16px; color: var(--text-muted); flex: 1; }
.card .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.read-more { color: var(--mint); font-weight: 600; font-size: 15px; }
.read-more::after { content: " \2192"; }
.featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-bottom: 1px solid var(--border); padding-bottom: 40px; gap: 40px; }
.featured + .grid { margin-top: 32px; }
.featured-art { object-fit: contain; width: 100%; border-radius: 8px; align-self: center; }
.featured-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-body h2, .featured-body h3 { font-size: 34px; margin: 0; }
.featured-body p { margin: 0; color: var(--text-muted); }
.cta-band { margin-top: 48px; padding: 56px 0; border-top: 1px solid var(--border); background: var(--bg-elev); text-align: center; }
.cta-band h2 { font-size: 38px; margin: 0 0 12px; }
.cta-band p { color: var(--text-muted); margin: 0 0 28px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article-head { max-width: 880px; margin: 0 auto; padding: 68px 24px 32px; text-align: center; }
.back { display: inline-block; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.back:hover { color: var(--mint); }
.article-head h1 { font-size: 50px; margin: 20px 0; }
.article-head .dek { font-size: 20px; color: var(--text-muted); margin: 0 0 24px; }
.article-head .meta { justify-content: center; }
.article-art { max-width: 1000px; margin: 20px auto 0; padding: 0 24px; }
.article-art img { width: 100%; height: auto; border-radius: 8px; }
.article-art figcaption { margin-top: 12px; color: var(--text-muted); font-size: 14px; }
.prose { max-width: 748px; margin: 0 auto; padding: 32px 24px 0; font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.prose p { margin: 0; }
.prose > * + *, .prose > * + p { margin-top: 1.25em; }
.prose h2 { font-size: 30px; margin-top: 2em; margin-bottom: 0; }
.prose h3 { font-size: 22px; margin-top: 1.6em; margin-bottom: 0; }
.prose a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--mint); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--mint); font-family: var(--font-head); font-size: 23px; line-height: 1.5; color: var(--text); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-elev); padding: 2px 6px; color: var(--mint); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 3em 0; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border-strong); border-radius: 8px; }
.table-scroll:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.table-scroll table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.table-scroll th, .table-scroll td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-scroll thead { background: var(--mint-tint); color: var(--mint); }
.table-scroll tbody th { color: var(--text); font-weight: 600; }
.table-scroll tbody tr:nth-child(even) { background: var(--bg-elev); }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.callout { border-left: 3px solid var(--mint); background: var(--mint-tint); padding: 22px 26px; font-size: 17px; }
.callout .eyebrow { display: block; margin-bottom: 6px; }
.author { max-width: 700px; margin: 56px auto 0; padding: 28px 24px 0; border-top: 1px solid var(--border); display: flex; gap: 16px; align-items: center; }
.avatar { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--mint-tint); border: 1px solid #36594e; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--mint); }
.author strong { display: block; color: var(--text); }
.author span { font-size: 14px; color: var(--text-muted); }
.template-label { margin: 0; padding: 12px 24px; border-bottom: 1px solid var(--border); color: var(--mint); text-align: center; font-size: 14px; }
.site-footer .footer-meta { margin-top: 24px; }
@media (max-width: 1100px) {
  .nav .wrap { flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; gap: 8px 16px; }
  .nav-links { order: 3; width: 100%; gap: 20px; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand-logo { width: 156px; }
  .nav-cta .signin { display: none; }
  .nav-cta .btn { padding: 9px 14px; min-height: 44px; font-size: 14px; }
  .nav-links { gap: 6px 18px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 17px; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head h2, .featured-body h2, .featured-body h3 { font-size: 28px; }
  .article-head { padding: 48px 20px 24px; }
  .article-head h1 { font-size: 34px; }
  .article-head .dek { font-size: 18px; }
  .prose { font-size: 17px; padding-left: 20px; padding-right: 20px; }
  .prose h2 { font-size: 26px; }
  .cta-band h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}