/* ==========================================================================
   SatCoo Blog — design system
   Base: deep charcoal-navy. Accent: signal amber (spectrum-analyzer trace).
   Headlines: Space Grotesk. Body: IBM Plex Sans. Data/labels: IBM Plex Mono.
   ========================================================================== */

:root {
  --bg: #10151c;
  --panel: #161d27;
  --panel-border: #262f3d;
  --text: #e4e7eb;
  --text-muted: #8b94a3;
  --accent: #e8a33d;
  --accent-dim: #8a6329;
  --line: #b3c1d6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--panel-border);
  padding: 22px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { color: var(--accent); }
nav.site a {
  color: var(--text-muted);
  margin-left: 28px;
  font-size: 15px;
}
nav.site a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--accent-dim);
  padding: 7px 16px !important;
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

/* ---------- Hero / spectrum graphic ---------- */
.hero {
  padding: 64px 0 40px;
  max-width: 900px;
  margin: 0 auto;
}
.hero .wrap { max-width: 100%; padding: 0 24px; }
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 40px;
  max-width: 15ch;
}
.hero p.lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 46ch;
  margin-top: 16px;
}

.spectrum {
  margin-top: 40px;
  padding: 24px 0;
}
.spectrum-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.spectrum-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--text-muted);
  width: 130px;
  flex-shrink: 0;
  text-align: right;
}
.spectrum-track {
  position: relative;
  flex: 1;
  height: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
}
.spectrum-band {
  position: absolute;
  top: -1px;
  bottom: -1px;
  background: var(--line);
  opacity: 0.55;
}
.spectrum-overlap {
  position: absolute;
  top: -1px;
  bottom: -1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232, 163, 61, 0.5);
}
.spectrum-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  margin-left: 146px;
}

/* ---------- Article list ---------- */
.articles { padding: 8px 0 80px; }
.article-card {
  border-top: 1px solid var(--panel-border);
  padding: 28px 0;
  display: block;
}
.article-card:hover { text-decoration: none; }
.article-card:hover h2 { color: var(--accent); }
.article-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-card h2 {
  font-size: 23px;
  color: var(--text);
  margin-bottom: 8px;
}
.article-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15.5px;
  max-width: 60ch;
}

/* ---------- Article page ---------- */
article.post { padding: 56px 0 80px; }
article.post .kicker { margin-bottom: 18px; }
article.post h1 { font-size: 34px; max-width: 22ch; }
.post-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--panel-border);
}
article.post h2 {
  font-size: 24px;
  margin-top: 2.2em;
}
article.post p { margin: 1.1em 0; color: var(--text); }
article.post p.lede-body { color: var(--text-muted); font-size: 18px; }
article.post ul, article.post ol { padding-left: 1.3em; }
article.post li { margin: 0.5em 0; }
article.post code {
  font-family: "IBM Plex Mono", monospace;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 1px 6px;
  font-size: 0.9em;
}
.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
}
.term-table th, .term-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--panel-border);
  vertical-align: top;
}
.term-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
  background: var(--panel);
}

/* ---------- CTA panel ---------- */
.cta-panel {
  margin-top: 56px;
  padding: 28px 30px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent);
}
.cta-panel h3 { font-size: 19px; margin-bottom: 8px; }
.cta-panel p { color: var(--text-muted); margin: 0 0 16px 0; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  padding: 10px 20px;
  font-size: 15px;
}
.cta-btn:hover { text-decoration: none; opacity: 0.9; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--panel-border);
  padding: 28px 0 50px;
  color: var(--text-muted);
  font-size: 14px;
}
footer.site a { color: var(--text-muted); }
footer.site a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  article.post h1 { font-size: 27px; }
  .spectrum-label { width: 88px; font-size: 11px; }
  .spectrum-tag { margin-left: 104px; }
  nav.site a { margin-left: 14px; font-size: 14px; }
}
