/* base.css — reset, chrome (header/footer/nav), shared components. Tokens in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font-ui); min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: 36px; text-transform: uppercase; letter-spacing: .05em; }
h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-top: 1.6em; }
h2:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
.dim { color: var(--ink-muted); }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 32px 0 64px; }
.wrap.wide { width: min(1400px, 100% - 32px); }
.wrap.narrow { width: min(760px, 100% - 32px); }
.placeholder { color: var(--ink-muted); font-style: italic; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.mark { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .08em; color: var(--ink); }
.mark:hover { color: var(--ink); }
.mark-dot { width: 14px; height: 14px; fill: var(--amber); stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; margin-top: 2px; }
.site-nav { display: flex; gap: 2px; margin-left: 8px; }
.site-nav a { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; color: var(--ink-muted); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); background: var(--surface-2); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--amber); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.readout { color: var(--amber); font-weight: 500; padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); white-space: nowrap; }
.theme-toggle { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-muted); background: var(--surface); }
.theme-toggle:hover { color: var(--amber); border-color: var(--line-strong); }
.nav-toggle { display: none; width: 36px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
.prelaunch-strip { text-align: center; padding: 3px 8px; font-size: 11px; color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .site-header { gap: 10px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 16px; }
  .readout { display: none; }
}

/* main + footer */
.site-main { flex: 1; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 28px 0 12px; }
.footer-brand p { max-width: 42ch; margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-foot { padding: 8px 0 20px; border-top: 1px solid var(--line); font-size: 11px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* components */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 2px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface); white-space: nowrap; }
.chip-active { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.chip-watch { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.chip-deep { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.chip-filter { cursor: pointer; }
.chip-filter:hover { color: var(--ink); border-color: var(--ink-muted); }
.chip-filter.active { color: var(--bg); background: var(--amber); border-color: var(--amber); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--amber); border-radius: 2px; background: var(--amber); color: #0B0D10; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.btn:hover { filter: brightness(1.08); color: #0B0D10; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--amber); border-color: var(--amber); }
.hud-bar { display: inline-block; height: 4px; width: 100%; background: var(--line); border-radius: 1px; overflow: hidden; }
.hud-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-dim), var(--red)); }
.trend { font-size: 9px; color: var(--ink-muted); }
.trend-worsening { color: var(--red); } .trend-improving { color: var(--green); }

/* feeds */
.feed-list, .video-list, .event-list { list-style: none; margin: 0; padding: 0; }
.feed-item { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.feed-item a { color: var(--ink); font-weight: 500; line-height: 1.35; }
.feed-item a:hover { color: var(--amber); }
.feed-meta { color: var(--ink-muted); font-size: 11px; }
.video-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.video-facade { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; }
.video-thumb { flex: 0 0 96px; height: 54px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--amber); border-radius: 2px; }
.video-facade:hover .video-thumb { border-color: var(--amber); }
.video-text { display: flex; flex-direction: column; gap: 3px; }
.video-title { font-weight: 500; line-height: 1.3; }
.video-ext { display: inline-block; margin: 6px 0 0 108px; font-size: 11px; color: var(--ink-muted); }
.video-player { margin-top: 8px; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line); background: #000; }
.video-player iframe { width: 100%; height: 100%; border: 0; }
.event-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.event-dot { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--ink-muted); }
.event-airstrike, .event-ground, .event-artillery { background: var(--red); } .event-drone { background: var(--amber); } .event-naval { background: var(--blue); }
.event-text { display: flex; flex-direction: column; gap: 3px; }
.hidden-by-filter { display: none !important; }
