@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* SDRZone — signal-room palette: instrument amber and phosphor cyan on dark slate.
   Deliberately NOT the arcadecommander neon purple; this is a radio bench, not a cabinet. */
:root{
  --bg:#0a0f14;
  --bg2:#0d141b;
  --panel:rgba(18,28,38,.82);
  --panel2:rgba(24,36,48,.9);
  --line:rgba(94,178,214,.22);
  --line2:rgba(94,178,214,.4);
  --text:#e8f1f7;
  --muted:#93a9b8;
  --dim:#6d8394;
  --accent:#4ec9e0;      /* phosphor cyan  */
  --accent2:#2b7f96;
  --amber:#ffb547;       /* instrument amber */
  --ok:#54c98a;
  --bad:#ff6b6b;
  --max:1100px;
  --font-head:'Barlow Condensed',sans-serif;
  --font-body:'Inter',system-ui,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font:16px/1.65 var(--font-body);
  overflow-x:hidden;
  background-image:
    radial-gradient(900px 420px at 78% -8%, rgba(78,201,224,.10), transparent 62%),
    radial-gradient(700px 380px at 8% 4%, rgba(255,181,71,.06), transparent 60%);
  background-attachment:fixed;
}
h1,h2,h3,.brand{font-family:var(--font-head);letter-spacing:.6px}
h1,h2{text-transform:uppercase}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}

/* ---- header + nav ---- */
header.top{border-bottom:1px solid var(--line);background:linear-gradient(180deg,#0b1218,rgba(10,15,20,.6));position:sticky;top:0;z-index:20;backdrop-filter:blur(9px)}
header.top .wrap{display:flex;align-items:center;justify-content:space-between;min-height:66px;gap:14px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:23px;color:var(--text);text-transform:uppercase}
.brand .dot{width:11px;height:11px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent),0 0 22px rgba(78,201,224,.55);animation:pulse 2.6s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.45}}
.brand span.sub{font-family:var(--mono);font-size:11px;color:var(--dim);letter-spacing:1.4px;text-transform:none;font-weight:400}
nav.main a{color:var(--muted);margin-left:22px;font-weight:600;font-size:14px;letter-spacing:.5px;text-transform:uppercase}
nav.main a.active,nav.main a:hover{color:var(--accent);text-decoration:none}

/* ---- hero ---- */
.hero{padding:70px 0 46px;position:relative;overflow:hidden}
.hero h1{font-size:clamp(34px,6vw,52px);line-height:1.08;margin:0 0 16px;max-width:840px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero p.lead{font-size:clamp(17px,2.4vw,20px);color:var(--muted);max-width:720px;margin:0 0 26px}
.kicker{font-family:var(--mono);font-size:12px;letter-spacing:2.4px;color:var(--amber);text-transform:uppercase;margin:0 0 14px}

/* the spectrum strip — a waterfall slice, not decoration for its own sake */
.spectrum{display:flex;gap:2px;align-items:flex-end;height:56px;margin:34px 0 0;opacity:.9}
.spectrum i{flex:1;height:100%;transform-origin:bottom;background:linear-gradient(180deg,var(--accent),rgba(78,201,224,.12));border-radius:2px 2px 0 0;animation:bounce 2.4s ease-in-out infinite}
@keyframes bounce{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){
  .spectrum i{animation:none;transform:scaleY(.6)}
  .brand .dot{animation:none}
}

.btn{display:inline-block;padding:12px 22px;border-radius:8px;font-weight:600;font-size:15px;border:1px solid var(--line2);color:var(--text);background:var(--panel);transition:.16s}
.btn:hover{text-decoration:none;border-color:var(--accent);transform:translateY(-1px)}
.btn.primary{background:linear-gradient(90deg,var(--accent2),#1d5f73);border-color:var(--accent);color:#eafaff;box-shadow:0 0 20px rgba(78,201,224,.28)}
.btn+.btn{margin-left:10px}

/* ---- layout blocks ---- */
section{padding:42px 0;border-top:1px solid var(--line)}
section h2{font-size:clamp(24px,3.6vw,30px);margin:0 0 8px}
section p.sub{color:var(--muted);margin:0 0 18px;max-width:760px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin:26px 0}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px;transition:.18s}
.card:hover{border-color:var(--line2);transform:translateY(-2px)}
.card h3{margin:0 0 9px;font-size:19px;color:var(--text)}
.card p{margin:0;color:var(--muted);font-size:15px}
.card .tag{display:inline-block;font-family:var(--mono);font-size:11px;letter-spacing:1.2px;color:var(--amber);text-transform:uppercase;margin-bottom:9px}

ul.plain{padding-left:20px;color:var(--muted)}
ul.plain li{margin:8px 0}

/* ---- blog ---- */
.post-list article{padding:26px 0;border-bottom:1px solid var(--line)}
.post-list article:last-child{border-bottom:0}
.post-list h3{margin:0 0 8px;font-size:23px}
.post-list h3 a{color:var(--text)}
.post-list h3 a:hover{color:var(--accent);text-decoration:none}
.meta{color:var(--dim);font-size:13px;font-family:var(--mono);letter-spacing:.6px}
.post{max-width:780px}
.post h1{font-size:clamp(28px,5vw,40px);line-height:1.15;margin:10px 0 8px;text-transform:none}
.post h2{font-size:clamp(20px,3vw,25px);margin:40px 0 10px;color:var(--accent)}
.post h3{font-size:18px;margin:26px 0 8px;color:var(--amber);font-family:var(--font-body);font-weight:600;letter-spacing:0}
.post p,.post li{font-size:17px;color:#cfdbe5}
.post blockquote{margin:24px 0;padding:16px 20px;border-left:3px solid var(--amber);background:var(--panel);color:var(--text);border-radius:0 8px 8px 0}
.post blockquote p{margin:0}
.post img{max-width:100%;border-radius:10px}

/* ---- code ---- */
pre{background:#070c11;border:1px solid var(--line);border-radius:10px;padding:16px 18px;overflow-x:auto;margin:20px 0}
pre code{font-family:var(--mono);font-size:14px;color:#b8e6f2;background:none;padding:0}
code{font-family:var(--mono);font-size:.92em;background:rgba(78,201,224,.10);color:var(--accent);padding:2px 6px;border-radius:4px}

/* ---- callouts ---- */
.callout{background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:0 10px 10px 0;padding:18px 22px;margin:26px 0}
.callout.warn{border-left-color:var(--amber)}
.callout.stop{border-left-color:var(--bad)}
.callout strong{color:var(--text)}
.callout p:last-child{margin-bottom:0}
.callout p:first-child{margin-top:0}

/* ---- tables ---- */
.table-wrap{overflow-x:auto;margin:22px 0}
table{border-collapse:collapse;width:100%;font-size:15px;min-width:460px}
th,td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line)}
th{font-family:var(--font-head);text-transform:uppercase;letter-spacing:.8px;font-size:14px;color:var(--accent);border-bottom-color:var(--line2)}
td{color:var(--muted)}
td strong{color:var(--text)}

/* ---- steps ---- */
ol.steps{counter-reset:s;list-style:none;padding:0;margin:26px 0}
ol.steps>li{counter-increment:s;position:relative;padding:0 0 22px 52px;border-left:1px solid var(--line);margin-left:16px}
ol.steps>li:last-child{border-left-color:transparent;padding-bottom:0}
ol.steps>li::before{content:counter(s);position:absolute;left:-17px;top:-2px;width:34px;height:34px;border-radius:50%;background:var(--bg2);border:1px solid var(--line2);color:var(--accent);font-family:var(--font-head);font-size:16px;display:flex;align-items:center;justify-content:center}
ol.steps h3{margin:2px 0 8px}

footer{border-top:1px solid var(--line);padding:34px 0;color:var(--dim);font-size:14px;margin-top:20px}
footer a{color:var(--muted)}
footer .fnote{font-family:var(--mono);font-size:12px;color:var(--dim);margin-top:8px}

@media (max-width:640px){
  header.top .wrap{min-height:auto;padding:12px 20px}
  nav.main{display:flex;flex-wrap:wrap;gap:0}
  nav.main a{margin:6px 16px 0 0}
  .hero{padding:44px 0 34px}
  ol.steps>li{padding-left:44px}
}

/* ---- the station photograph ----
   Not decoration and not a hero background: this is the evidence behind the
   integration argument, so it gets its own band, a real caption, and intrinsic
   width/height so it does not shift the page as it loads. */
figure.station{margin:0;padding:0 20px 10px;max-width:var(--max);margin:0 auto}
figure.station img{
  display:block;width:100%;height:auto;max-width:900px;margin:0 auto;
  border:1px solid var(--line2);border-radius:10px;
  box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 1px rgba(78,201,224,.08);
}
figure.station figcaption{
  max-width:900px;margin:14px auto 0;text-align:center;
  color:var(--muted);font-size:14.5px;line-height:1.6;
}
@media (max-width:620px){
  figure.station figcaption{text-align:left;font-size:14px}
}

/* ---- an in-article screenshot ----
   Evidence inside the prose, so it is narrower than the station band and its
   caption is allowed to carry caveats rather than just a label. */
figure.shot{margin:26px 0 30px}
figure.shot img{
  display:block;width:100%;height:auto;
  border:1px solid var(--line2);border-radius:8px;
  box-shadow:0 12px 34px rgba(0,0,0,.5);
}
figure.shot figcaption{
  margin-top:12px;color:var(--muted);font-size:14.5px;line-height:1.65;
  border-left:2px solid var(--amber);padding-left:14px;
}

/* ---- utility classes, and WHY they exist ----
   The page CSP is "style-src 'self'", which blocks inline style="" attributes
   outright - the browser strips them and the layout silently degrades. These
   replace every inline style the pages used, so the strong policy can stay
   instead of being loosened with 'unsafe-inline'. Found by loading the live
   page in a real browser and reading the console, not by reading the markup. */
.mt-s{margin-top:12px}
.mt-m{margin-top:22px}
.mt-l{margin-top:34px}
.flush{margin:0}
.t-strong{color:var(--text)}
.t-muted{color:var(--muted)}
.lead-sm{font-size:19px;color:var(--muted)}
.hero-tight{padding:56px 0 28px}
.ruled{border-top:1px solid var(--line)}
.h1-sm{font-size:clamp(30px,5vw,44px)}
.q-lg{font-size:21px}

/* Spectrum bar phases. Were inline animation-delay attributes; same values,
   same order, now CSP-clean. */
.spectrum i:nth-child(1){animation-delay:-0.78s}
.spectrum i:nth-child(2){animation-delay:-0.36s}
.spectrum i:nth-child(3){animation-delay:-1.56s}
.spectrum i:nth-child(4){animation-delay:-0.17s}
.spectrum i:nth-child(5){animation-delay:-1.29s}
.spectrum i:nth-child(6){animation-delay:-0.88s}
.spectrum i:nth-child(7){animation-delay:-0.14s}
.spectrum i:nth-child(8){animation-delay:-1.22s}
.spectrum i:nth-child(9){animation-delay:-0.09s}
.spectrum i:nth-child(10){animation-delay:-1.04s}
.spectrum i:nth-child(11){animation-delay:-0.17s}
.spectrum i:nth-child(12){animation-delay:-0.22s}
.spectrum i:nth-child(13){animation-delay:-1.02s}
.spectrum i:nth-child(14){animation-delay:-1.98s}
.spectrum i:nth-child(15){animation-delay:-0.30s}
.spectrum i:nth-child(16){animation-delay:-0.54s}
.spectrum i:nth-child(17){animation-delay:-1.51s}
.spectrum i:nth-child(18){animation-delay:-2.27s}
.spectrum i:nth-child(19){animation-delay:-1.39s}
.spectrum i:nth-child(20){animation-delay:-0.95s}
.spectrum i:nth-child(21){animation-delay:-2.34s}
.spectrum i:nth-child(22){animation-delay:-0.11s}
.spectrum i:nth-child(23){animation-delay:-2.06s}
.spectrum i:nth-child(24){animation-delay:-0.70s}
.spectrum i:nth-child(25){animation-delay:-0.35s}
.spectrum i:nth-child(26){animation-delay:-0.28s}
.spectrum i:nth-child(27){animation-delay:-0.74s}
.spectrum i:nth-child(28){animation-delay:-1.96s}
.spectrum i:nth-child(29){animation-delay:-0.43s}
.spectrum i:nth-child(30){animation-delay:-1.40s}
.spectrum i:nth-child(31){animation-delay:-1.53s}
.spectrum i:nth-child(32){animation-delay:-0.89s}
.spectrum i:nth-child(33){animation-delay:-1.31s}
.spectrum i:nth-child(34){animation-delay:-0.15s}
.spectrum i:nth-child(35){animation-delay:-0.14s}
.spectrum i:nth-child(36){animation-delay:-0.49s}
.spectrum i:nth-child(37){animation-delay:-1.63s}
.spectrum i:nth-child(38){animation-delay:-1.03s}
.spectrum i:nth-child(39){animation-delay:-0.75s}
.spectrum i:nth-child(40){animation-delay:-1.41s}
.spectrum i:nth-child(41){animation-delay:-1.09s}
.spectrum i:nth-child(42){animation-delay:-0.72s}
.spectrum i:nth-child(43){animation-delay:-1.91s}
.spectrum i:nth-child(44){animation-delay:-1.68s}
.spectrum i:nth-child(45){animation-delay:-0.59s}
.spectrum i:nth-child(46){animation-delay:-1.38s}
.spectrum i:nth-child(47){animation-delay:-1.26s}
.spectrum i:nth-child(48){animation-delay:-2.10s}
.spectrum i:nth-child(49){animation-delay:-1.75s}
.spectrum i:nth-child(50){animation-delay:-0.69s}
.spectrum i:nth-child(51){animation-delay:-2.35s}
.spectrum i:nth-child(52){animation-delay:-0.28s}
.spectrum i:nth-child(53){animation-delay:-1.00s}
.spectrum i:nth-child(54){animation-delay:-1.82s}
.spectrum i:nth-child(55){animation-delay:-0.36s}
.spectrum i:nth-child(56){animation-delay:-1.17s}
