/* Shared WSLProxy site chrome — tokens, base, nav, theme toggle, blog article.
   Enterprise steel-blue system locked to the shield mark (#5493d6 → #1e4c88).
   Keep in sync with html/index.html page-specific layout CSS. */

:root {
  /* Light — crisp ops console on cool paper */
  --steel: #f4f7fb;
  --steel-raised: #ffffff;
  --steel-line: #c8d4e3;
  --steel-line-soft: #dde5ef;
  --steel-ink: #5a6b7e;
  --steel-ink-dim: #7a8a9a;
  --canvas: #e8eef5;
  --surface: #ffffff;
  --line: #c8d4e3;
  --line-strong: #aebccd;
  --ink: #0a1828;
  --ink-muted: #3a5470;
  --on-steel: #0a1828;
  --on-steel-muted: #3a5470;
  --on-steel-faint: #5a6b7e;
  /* Primary CTA / links — deep steel blue (WCAG on white) */
  --brass: #1f5f9e;
  --brass-dim: #174a7c;
  --brass-glow: #1f5f9e33;
  /* Signal — logo highlight / brand word / eyebrow */
  --navy: #2f7fc4;
  --signal: #2f7fc4;
  --unlock: #0f766e;
  --danger: #b91c1c;
  --warn: #c2410c;
  --nav-bg: #f4f7fbe8;
  --hero-ring: #c8d4e3;
  --hero-glow: #2f7fc41a;
  --term-bg: #0a1828;
  --term-bar: #122233;
  --term-ink: #e2e8f0;
  --code-bg: #0a1828;
  --code-ink: #e2e8f0;
  --radius: 12px;
  --maxw: 1120px;
  --max-read: 760px;
  --font-display: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

html.dark {
  /* Dark — deep navy ops floor; accents match shield (no purple) */
  --steel: #070e18;
  --steel-raised: #101a2a;
  --steel-line: #243447;
  --steel-line-soft: #182434;
  --steel-ink: #94a3b8;
  --steel-ink-dim: #64748b;
  --canvas: #0a1220;
  --surface: #121c2e;
  --line: #243447;
  --line-strong: #31465f;
  --ink: #f4f7fb;
  --ink-muted: #9eb0c4;
  --on-steel: #e8eef5;
  --on-steel-muted: #9eb0c4;
  --on-steel-faint: #7a8fa6;
  --brass: #3b82f6;
  --brass-dim: #2563eb;
  --brass-glow: #3b82f640;
  --navy: #7dd3fc;
  --signal: #7dd3fc;
  --unlock: #34d399;
  --danger: #f87171;
  --warn: #fbbf24;
  --nav-bg: #070e18e6;
  --hero-ring: #243447;
  --hero-glow: #3b82f61f;
  --term-bg: #060d16;
  --term-bar: #0e1826;
  --term-ink: #e8eef5;
  --code-bg: #050b12;
  --code-ink: #d7e2ec;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--on-steel);
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, var(--hero-glow), transparent 55%),
    var(--steel);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--read { max-width: var(--max-read); }

.band-steel { background: var(--steel); color: var(--on-steel); }
.band-canvas {
  background: var(--canvas);
  color: var(--ink);
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--steel-line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: -0.015em; color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--brass) 28%, transparent));
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
/* "Proxy" tracks the shield highlight, not the CTA fill */
.brand-accent {
  color: var(--signal);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--on-steel-muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--steel-line); border-radius: 10px;
  padding: 8px 14px !important; color: var(--ink) !important;
  background: var(--steel-raised);
  font-weight: 600 !important;
}
.nav-cta:hover {
  border-color: var(--signal);
  color: var(--signal) !important;
  background: color-mix(in srgb, var(--signal) 10%, var(--steel-raised));
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--steel-line); border-radius: 10px;
  background: var(--steel-raised); color: var(--on-steel-muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--brass); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--steel-line);
  color: var(--on-steel); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--steel-raised); border-bottom: 1px solid var(--steel-line); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--steel-line-soft); }
  .nav-cta { margin-top: 8px; text-align: center; }
  .theme-toggle { margin-top: 10px; align-self: flex-start; }
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--steel-line-soft);
  padding: 28px 0 36px; color: var(--on-steel-faint); font-size: 14px;
}
.site-footer a { color: var(--on-steel-muted); }
.site-footer a:hover { color: var(--brass); }
.site-footer .footer-inner {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* Blog index */
.blog-main { padding: 48px 0 64px; }
.blog-main h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; color: var(--ink);
}
.blog-lede { color: var(--on-steel-muted); margin: 0 0 32px; font-size: 17px; }
.post-card {
  display: block; padding: 20px 22px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface);
  color: inherit; margin-bottom: 14px;
  transition: border-color 0.15s;
}
.post-card:hover { border-color: color-mix(in srgb, var(--brass) 50%, var(--line-strong)); }
.post-card h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin: 0 0 8px; color: var(--ink);
}
.post-card p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }
.post-card .meta {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--signal); font-weight: 600; margin: 0 0 6px;
}
.post-card .thumb {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  margin: 14px 0 0; display: block;
}

/* Blog article */
.blog-article { padding: 40px 0 64px; }
.blog-article .kicker {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--signal); font-weight: 600; margin: 0 0 10px;
}
.blog-article h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(28px, 4.5vw, 42px); line-height: 1.12; margin: 0 0 14px; color: var(--ink);
}
.blog-article .lede {
  font-size: clamp(17px, 2vw, 19px); color: var(--on-steel-muted); margin: 0 0 14px;
}
.blog-article .meta {
  font-size: 14.5px; color: var(--on-steel-faint); margin: 0 0 28px;
}
.blog-article h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em; margin: 36px 0 12px; color: var(--ink);
}
.blog-article h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  margin: 24px 0 8px; color: var(--ink);
}
.blog-article p, .blog-article ul, .blog-article ol { margin: 0 0 16px; color: var(--on-steel); }
.blog-article ul, .blog-article ol { padding-left: 1.25rem; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article a { color: var(--brass); font-weight: 600; }
.blog-article a:hover { text-decoration: underline; }
.blog-article code, .blog-article pre { font-family: var(--font-mono); font-size: 0.9em; }
.blog-article code {
  background: var(--canvas); color: var(--ink);
  padding: 0.12em 0.4em; border-radius: 6px; border: 1px solid var(--steel-line-soft);
}
.blog-article pre {
  background: var(--code-bg); color: var(--code-ink);
  padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; margin: 0 0 20px; line-height: 1.5;
  border: 1px solid var(--steel-line);
}
.blog-article pre code { background: transparent; border: 0; padding: 0; color: inherit; }
.blog-article .hero-shot, .blog-article .inline-shot { margin: 0 0 28px; }
.blog-article .hero-shot img, .blog-article .inline-shot img {
  display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 16px 40px color-mix(in srgb, #000 12%, transparent);
}
.blog-article figcaption {
  margin-top: 10px; font-size: 14.5px; color: var(--on-steel-faint); text-align: center;
}
.blog-article .video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 28px;
  border-radius: calc(var(--radius) + 2px); overflow: hidden;
  border: 1px solid var(--line); background: var(--code-bg);
}
.blog-article .video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.blog-article .callout {
  border-left: 3px solid var(--brass);
  background: var(--canvas);
  padding: 14px 16px; margin: 20px 0 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--on-steel);
}
.blog-article .features { display: grid; gap: 12px; margin: 16px 0 24px; }
.blog-article .features div {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; background: var(--surface);
}
.blog-article .features strong {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display); color: var(--ink);
}

/* Shared buttons (landing + feature pages) */
.btn {
  font-family: var(--font-display);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 60ms, box-shadow 0.2s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brass) 92%, #fff), var(--brass));
  color: #fff;
  box-shadow: 0 10px 28px var(--brass-glow);
}
.btn-primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brass) 80%, #fff), var(--brass-dim));
}
.btn-ghost {
  background: color-mix(in srgb, var(--steel-raised) 55%, transparent);
  color: var(--on-steel);
  border-color: var(--steel-line);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: color-mix(in srgb, var(--signal) 8%, transparent);
}

/* Feature deep-dive pages (e.g. /waf/) */
.feature-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--steel-line-soft);
}
.feature-hero .kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--signal); margin: 0 0 14px;
}
.feature-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 0 18px;
  text-wrap: balance;
}
.feature-hero .lede {
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--on-steel-muted);
  max-width: 46rem;
  margin: 0 0 28px;
  line-height: 1.55;
}
.feature-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
}
.feature-facts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
}
.feature-facts li {
  font-size: 14px; font-weight: 500; color: var(--on-steel-faint);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--steel-line);
  background: color-mix(in srgb, var(--steel-raised) 80%, transparent);
}
.feature-facts strong { color: var(--signal); font-weight: 700; }

.feature-band { padding: 64px 0; }
.feature-band .section-head { max-width: 640px; margin-bottom: 36px; }
.feature-band .kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 12px;
}
.feature-band h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; color: var(--ink);
}
.feature-band .section-sub {
  margin: 0; color: var(--on-steel-muted); font-size: 16.5px;
}

.feature-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .feature-grid, .feature-grid--2 { grid-template-columns: 1fr; }
}
.feature-tile {
  background: var(--steel-raised);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.feature-tile h3 {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  margin: 0 0 8px; color: var(--ink);
}
.feature-tile p {
  margin: 0; color: var(--on-steel-muted); font-size: 15px; line-height: 1.5;
}
.feature-tile code {
  font-family: var(--font-mono); font-size: 0.88em;
  color: var(--signal);
}

.stage-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.stage-list > li {
  display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  background: var(--steel-raised);
}
.stage-list > li > code {
  font-family: var(--font-mono); font-size: 12px; color: var(--signal);
  align-self: start; padding-top: 3px; word-break: break-word;
}
.stage-list strong {
  display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 4px;
}
.stage-list p { margin: 0; color: var(--on-steel-muted); font-size: 15px; }
@media (max-width: 640px) {
  .stage-list > li { grid-template-columns: 1fr; }
}

.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.tag-cloud span {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--signal) 35%, var(--steel-line));
  background: color-mix(in srgb, var(--signal) 10%, var(--steel-raised));
}

.callout-panel {
  border-left: 3px solid var(--brass);
  background: var(--canvas);
  padding: 16px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--on-steel);
  font-size: 15.5px;
  line-height: 1.55;
}
.callout-panel p { margin: 0; }
.callout-panel code {
  font-family: var(--font-mono); font-size: 0.9em; color: var(--signal);
}

.ops-rows { display: grid; gap: 12px; }
.ops-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  background: var(--steel-raised);
}
.ops-row strong {
  font-family: var(--font-display); color: var(--ink); font-size: 15px;
}
.ops-row p { margin: 0; color: var(--on-steel-muted); font-size: 15px; }
.ops-row code {
  font-family: var(--font-mono); font-size: 0.88em; color: var(--signal);
}
@media (max-width: 640px) {
  .ops-row { grid-template-columns: 1fr; }
}

.cta-box {
  text-align: center; padding: 48px 28px; border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--steel-line);
  background: linear-gradient(180deg, var(--steel-raised), var(--canvas));
}
.cta-box .kicker {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 12px;
}
.cta-box h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; color: var(--ink);
  max-width: 18ch; margin-left: auto; margin-right: auto;
}
.cta-box p { color: var(--on-steel-muted); max-width: 36rem; margin: 0 auto 24px; }
.cta-box code { font-family: var(--font-mono); font-size: 0.9em; color: var(--signal); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.card-link {
  display: block; color: inherit; text-decoration: none;
}
.card-link:hover .card,
a.card:hover {
  border-color: color-mix(in srgb, var(--brass) 55%, var(--steel-line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brass) 20%, transparent);
}
.card-link .card-more,
.card .card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--signal);
}

