/* ==========================================================================
   CyberShorts marketing site — design tokens & shared styles

   This deliberately commits to one visual world: an editorial "wire
   report" built from the app's own palette (near-black, off-white, and
   the exact accent red used throughout the product). The light/dark
   alternation is a structural device — banded sections — not a
   prefers-color-scheme toggle, so the site does not implement a theme
   switch.
   ========================================================================== */

:root {
  /* ---- brand tokens (exact values from lib/constants.dart) ---- */
  --red: #e50914;
  --red-deep: #8f0510;
  --red-glow: rgba(229, 9, 20, 0.35);

  --ink: #0a0a0a;
  --ink-raised: #141414;
  --paper: #faf9f6;
  --paper-raised: #ffffff;

  --ash: #8a8a8a;
  --ash-deep: #5f5f5f;
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --line-on-light: rgba(10, 10, 10, 0.1);

  /* ---- severity tokens (feed page) ---- */
  --amber: #f5a623;
  --amber-deep: #b9770a;
  --tan: #c9a34a;

  /* ---- type ---- */
  --font-display: "Archivo Black", "Arial Black", -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --step-0: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --step-3: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --step-4: clamp(3rem, 2.2rem + 4vw, 5.5rem);

  --content-max: 1180px;
  --measure: 62ch;

  color-scheme: dark;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: #f4f3ef;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.band-ink {
  background: var(--ink);
  color: #f4f3ef;
}

.band-paper {
  background: var(--paper);
  color: var(--ink);
}

.band-paper .eyebrow {
  color: var(--red-deep);
}

.band-paper .ash {
  color: var(--ash-deep);
}

.band-ink .ash {
  color: var(--ash);
}

.hairline-top {
  border-top: 1px solid var(--line-on-dark);
}

.band-paper.hairline-top {
  border-top-color: var(--line-on-light);
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--red-glow);
}

.btn-primary:hover {
  background: #ff1622;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px var(--red-glow);
}

.btn-ghost-dark {
  border: 1px solid var(--line-on-dark);
  color: #f4f3ef;
}

.btn-ghost-dark:hover {
  border-color: #f4f3ef;
  transform: translateY(-2px);
}

.btn-ghost-light {
  border: 1px solid var(--line-on-light);
  color: var(--ink);
}

.btn-ghost-light:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------ nav */
.site-nav {
  --nav-surface: var(--ink);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line-on-dark);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand .cyber {
  color: #f4f3ef;
}

.brand .shorts {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: #cfcfca;
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -22px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  color: #f4f3ef;
  flex: none;
}

/* Below this width the inline links move into a dropdown panel opened by
   the hamburger button; the nav bar's own copy of the CTA button is
   dropped too since it can't share the row with the logo and toggle
   without crowding — the hero (and the CTA band, and the footer) all
   repeat the same call to action, so nothing is lost. */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-cta .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-surface);
    border-bottom: 1px solid var(--line-on-dark);
    padding: 1.4rem clamp(1.25rem, 4vw, 3rem) 1.8rem;
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.4);
  }

  .nav-links.is-open a::after {
    display: none;
  }

  .nav-links.is-open .nav-mobile-cta {
    display: inline-flex;
    margin-top: 0.4rem;
  }
}

.nav-mobile-cta {
  display: none;
}

/* --------------------------------------------------------------- ticker */
.ticker {
  background: var(--ink-raised);
  border-bottom: 1px solid var(--line-on-dark);
  overflow: hidden;
  padding: 0.6rem 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner {
    animation: none;
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cfcfca;
  letter-spacing: 0.01em;
  flex: none;
}

.ticker-item .tag {
  color: var(--red);
  font-weight: 700;
}

.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--red);
  flex: none;
  padding-right: 1.5rem;
  border-right: 1px solid var(--line-on-dark);
  margin-right: -1.5rem;
}

.ticker-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--red-glow);
  }
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 8rem);
  position: relative;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0.5em 0 0.6em;
}

.hero-copy h1 .hl {
  color: var(--red);
}

.hero-copy .lede {
  font-size: var(--step-1);
  color: #cfcfca;
  max-width: 34ch;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ash);
}

/* -------------------------------------------------------- swipe-deck hero art */
.deck {
  position: relative;
  height: clamp(420px, 56vw, 620px);
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.deck-card {
  position: absolute;
  /* Fixed anchor for every state (pos-0/1/2 and is-swiping) — only
     `transform` ever changes, so nothing can snap between states. */
  left: 50%;
  top: 0;
  width: clamp(220px, 27vw, 300px);
  border-radius: 26px;
  overflow: hidden;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease;
  will-change: transform, opacity;
}

.deck-card img {
  width: 100%;
  height: auto;
  display: block;
}

.deck-card.pos-0 {
  transform: translate(-50%, 0) rotate(0deg) scale(1);
  z-index: 3;
  opacity: 1;
  filter: brightness(1);
}

.deck-card.pos-1 {
  transform: translate(-50%, 26px) rotate(-7deg) scale(0.94);
  z-index: 2;
  opacity: 0.9;
  filter: brightness(0.75);
}

.deck-card.pos-2 {
  transform: translate(-50%, 46px) rotate(8deg) scale(0.88);
  z-index: 1;
  opacity: 0.75;
  filter: brightness(0.55);
}

/* One continuous swipe path from the front slot to the back-of-stack
   slot. It tucks behind the rest of the stack the whole time (see
   z-index on .is-swiping below) so the next card is visible on top of
   it immediately, instead of the leaving card blocking the view until
   it fades out. The final stop matches .pos-2 exactly so handing off
   to that class at animation end never has anything left to snap. */
@keyframes deck-swipe-out {
  0% {
    transform: translate(-50%, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
    animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1);
  }
  45% {
    transform: translate(-50%, 4px) rotate(-9deg) scale(0.93) translateX(-125px);
    opacity: 0.55;
    filter: brightness(0.7);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translate(-50%, 46px) rotate(8deg) scale(0.88);
    opacity: 0.75;
    filter: brightness(0.55);
  }
}

.deck-card.is-swiping {
  animation: deck-swipe-out 1s linear forwards;
  /* Behind pos-0 (3) and pos-1 (2) for the whole swipe — matches the
     z-index of the pos-2 slot it's animating toward, so the card it's
     leaving in front of is what stays visible, not the one leaving. */
  z-index: 1;
}

.deck-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75) 60%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.deck-card.pos-0 .cap {
  opacity: 1;
}

/* --------------------------------------------------------------- tag rail */
.tag-rail {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tag-rail-inner {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}

.tag-pill {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-on-dark);
  color: #cfcfca;
}

/* --------------------------------------------------------------- section */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.04;
  margin-top: 0.5em;
  max-width: 18ch;
}

.section-head .lede {
  max-width: 34ch;
  font-size: var(--step-0);
}

/* --------------------------------------------------------------- reveal
   Visible by default — the entrance animation is a pure enhancement, never
   the only way content becomes visible. A `.reveal` element with no
   `.is-visible` class (JS never ran, script blocked, or a crawler that
   doesn't wait for scroll) still renders at full opacity. Only adding
   `.is-visible` — which JS does the instant the element scrolls into
   view — plays a self-contained fade/rise-in animation whose keyframes
   own the hidden starting point, so there's no persistent hidden state. */
.reveal {
  opacity: 1;
}

.reveal.is-visible {
  animation: reveal-in 0.7s ease both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.is-visible {
    animation: none;
  }
}

/* -------------------------------------------------------------- feature */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-light);
  border: 1px solid var(--line-on-light);
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--paper-raised);
  padding: 2.2rem 1.9rem;
  transition: background 0.2s ease;
}

.feature:hover {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}

.feature .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ash-deep);
  letter-spacing: 0.06em;
}

.feature h3 {
  font-size: var(--step-1);
  margin: 0.9rem 0 0.6rem;
  font-weight: 800;
}

.feature p {
  color: var(--ash-deep);
  max-width: 32ch;
}

/* ---------------------------------------------------------------- screens */
.screens-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin: 0 -1.25rem;
  padding-inline: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.screens-rail::-webkit-scrollbar {
  height: 6px;
}

.screens-rail::-webkit-scrollbar-thumb {
  background: var(--line-on-dark);
  border-radius: 6px;
}

.screen-item {
  flex: none;
  width: clamp(230px, 26vw, 300px);
  scroll-snap-align: start;
}

.screen-item .frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
  background: #0e0e0e;
}

.screen-item figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ash);
  letter-spacing: 0.02em;
}

.screen-item figcaption strong {
  display: block;
  color: #f4f3ef;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: normal;
}

/* ------------------------------------------------------------- how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.step .idx {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red-deep);
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: var(--step-1);
  margin: 0.7rem 0 0.5rem;
}

.step p {
  color: var(--ash-deep);
  max-width: 32ch;
}

.step-line {
  height: 1px;
  background: var(--line-on-light);
  margin-bottom: 1.4rem;
}

/* --------------------------------------------------------------------- faq */
.faq {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--line-on-dark);
  padding: 1.6rem 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  font-family: var(--font-mono);
  color: var(--red);
  transition: transform 0.2s ease;
  flex: none;
}

.faq-item[open] summary .plus {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.9rem;
  color: var(--ash);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------- cta */
.cta-band {
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% -20%, rgba(229, 9, 20, 0.18), transparent 60%), var(--ink);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  max-width: 20ch;
  margin: 0 auto 0.9rem;
}

.cta-band .lede {
  color: #cfcfca;
  max-width: 44ch;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------- footer */
.site-footer {
  background: var(--ink-raised);
  border-top: 1px solid var(--line-on-dark);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .brand {
  margin-bottom: 0.9rem;
}

.footer-brand p {
  color: var(--ash);
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  color: #cfcfca;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ash);
  font-family: var(--font-mono);
}

/* ============================================================== legal pages */
.legal-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2.5rem;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin: 0.6em 0 0.5em;
}

.legal-hero .updated {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ash-deep);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
}

.legal-toc {
  position: sticky;
  top: 90px;
  border-left: 2px solid var(--line-on-light);
  padding-left: 1.2rem;
}

@media (max-width: 820px) {
  .legal-toc {
    position: static;
    top: auto;
  }
}

.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-deep);
  margin-bottom: 0.9rem;
}

.legal-toc ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.legal-toc a {
  color: var(--ash-deep);
  transition: color 0.15s ease;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-body {
  max-width: var(--measure);
}

.legal-body h2 {
  font-size: var(--step-2);
  font-weight: 800;
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line-on-light);
}

.legal-body section:first-of-type h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
}

.legal-body p {
  margin-top: 1rem;
  color: var(--ash-deep);
}

.legal-body ul {
  margin-top: 1rem;
  padding-left: 1.3rem;
  color: var(--ash-deep);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-body ul li {
  list-style: disc;
}

.legal-body a {
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-color: rgba(143, 5, 16, 0.35);
}

.legal-body strong {
  color: var(--ink);
}

.callout {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--ash-deep);
}

/* ================================================================ feed page */
.feed-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.5rem, 4vw, 2.5rem) 1rem;
}

.feed-sidebar {
  position: sticky;
  top: 90px;
  min-width: 0;
}

@media (max-width: 900px) {
  .feed-shell {
    grid-template-columns: 1fr;
  }
  .feed-sidebar {
    order: -1;
    position: static;
  }
}

.feed-sidebar h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-deep);
  margin-bottom: 0.9rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .category-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
}

.category-item {
  flex: none;
  text-align: left;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-on-light);
  background: none;
  color: var(--ash-deep);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

@media (max-width: 900px) {
  .category-item {
    white-space: nowrap;
  }
}

.category-item:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.category-item.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 700;
}

.feed-main {
  min-width: 0;
  padding-bottom: 3rem;
}

.feed-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--paper-raised);
  border: 1px solid var(--line-on-light);
  box-shadow: 0 8px 24px -16px rgba(10, 10, 10, 0.25);
}

@media (max-width: 560px) {
  .feed-card {
    flex-direction: column;
  }
}

.feed-card-media {
  flex: none;
  width: 230px;
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  background: #ece9e2;
}

@media (max-width: 860px) {
  .feed-card-media {
    width: clamp(140px, 22vw, 230px);
    height: clamp(140px, 22vw, 230px);
  }
}

@media (max-width: 560px) {
  .feed-card-media {
    width: 100%;
    height: clamp(180px, 50vw, 260px);
  }
}

.feed-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-card-media.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-card-placeholder-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(143, 5, 16, 0.18);
  letter-spacing: 0.04em;
}

.feed-tag {
  font-weight: 700;
  color: var(--ash-deep);
}

.feed-tag.feed-tag-critical {
  color: var(--red-deep);
}

.feed-tag.feed-tag-high {
  color: var(--amber-deep);
}

.feed-tag.feed-tag-medium {
  color: #8a6d1f;
}

.feed-tag.feed-tag-low {
  color: var(--ash-deep);
}

.feed-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feed-card-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.feed-card-meta {
  font-size: 0.85rem;
  color: var(--ash-deep);
}

.feed-card-vuln {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--red-deep);
}

.feed-card-summary {
  color: var(--ash-deep);
  max-width: var(--measure);
  line-height: 1.55;
}

.feed-card-footer {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

.feed-card-link {
  color: var(--ash-deep);
}

.feed-card-link strong {
  color: var(--red-deep);
  transition: color 0.15s ease;
}

.feed-card-link:hover strong {
  color: var(--red);
}

.feed-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-skeleton[hidden] {
  display: none;
}

.feed-card-skeleton {
  height: 230px;
  border-radius: 12px;
  border: 1px solid var(--line-on-light);
  background: linear-gradient(100deg, var(--paper-raised) 30%, #ece9e2 50%, var(--paper-raised) 70%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card-skeleton {
    animation: none;
  }
}

.feed-status {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--ash-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.feed-status[hidden] {
  display: none;
}

.feed-more {
  text-align: center;
  padding: 1.6rem 0 2.5rem;
}
