:root {
  --bg: #060f1e;
  --bg2: #091827;
  --bg3: #0d1f36;
  --teal: #00e5c3;
  --teal2: #00b89c;
  --blue: #0ea5e9;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --text: #dce8f2;
  --muted: #7089a6;
  --border: rgba(0,229,195,0.13);
  --card: rgba(13,31,54,0.85);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV (from index.html) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(6,15,30,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nav-logo img { height: 40px; width: auto; display: block; border-radius: 6px; background: #fff; padding: 2px 6px; box-shadow: 0 0 12px rgba(0,229,195,0.15); }
.nav-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.nav-links a { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: color .25s; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cta { background: var(--teal); color: var(--bg) !important; padding: 6px 16px; font-weight: 700 !important; border-radius: 3px; }

/* ── ARTICLE ── */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 130px 24px 72px; }
.article-meta { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.article-wrap h1 { font-size: 32px; line-height: 1.3; margin-bottom: 22px; color: #fff; }
.article-wrap h2 { font-size: 21px; line-height: 1.4; margin: 38px 0 12px; color: var(--teal); }
.article-wrap p { margin: 14px 0; color: var(--text); }
.article-wrap ul, .article-wrap ol { margin: 14px 0 14px 26px; }
.article-wrap li { margin: 8px 0; }
.article-wrap strong { color: #fff; }
.article-wrap hr { border: none; border-top: 1px solid var(--border); margin: 34px 0; }
.author-foot { color: var(--muted); font-size: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.back-link { display: inline-block; margin-top: 26px; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px; }
.related { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); }
.related h3 { font-size: 14px; color: var(--muted); font-family: 'Space Mono', monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.related ul { list-style: none; margin: 0; }
.related li { margin: 8px 0; }

/* ── FOOTER (from index.html) ── */
footer { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--border); padding: 48px 48px 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 24px; }
.footer-info { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.footer-info-item { display: flex; flex-direction: column; gap: 4px; }
.footer-info-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.footer-info-value { font-size: 13px; color: var(--text); }
.footer-info-value.accent { color: var(--teal); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { height: 36px; width: auto; display: block; border-radius: 6px; background: #fff; padding: 2px 6px; }
.footer-text { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 1px; }

@media (max-width: 700px) {
  nav { padding: 12px 18px; } .nav-links { gap: 14px; }
  .article-wrap { padding: 110px 18px 56px; } .article-wrap h1 { font-size: 26px; }
  footer { padding: 36px 18px 24px; }
}
