:root {
  --ink: #080013;
  --night: #12002e;
  --violet: #5f00b8;
  --magenta: #ff00c8;
  --hot-pink: #ff2b93;
  --cyan: #00f7ff;
  --yellow: #fff200;
  --paper: #fff7ff;
  --muted: #c7aed5;
  --panel: rgba(18, 0, 46, 0.88);
  --line: rgba(255, 0, 200, 0.52);
  --shadow-pink: 0 0 26px rgba(255, 0, 200, 0.38);
  --shadow-cyan: 0 0 20px rgba(0, 247, 255, 0.28);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    linear-gradient(rgba(8, 0, 19, 0.4), rgba(8, 0, 19, 0.92)),
    url("/NeoDominion/AFTERBURNER/neon-grid.png") center top / 100% auto no-repeat,
    var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 85% 18%, rgba(0, 247, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 12% 40%, rgba(255, 0, 200, 0.16), transparent 27rem);
  pointer-events: none;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.neon-haze,
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.neon-haze {
  box-shadow: inset 0 0 9rem rgba(255, 0, 200, 0.12);
}

.scanlines {
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.35) 4px
  );
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header { padding-top: 1rem; }

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-nav a {
  color: var(--muted);
  text-decoration: none;
}

.utility-nav a:hover { color: var(--cyan); }

.utility-nav button {
  padding: 0.45rem 0.65rem;
  color: var(--cyan);
  border: 1px solid rgba(0, 247, 255, 0.5);
  background: rgba(0, 247, 255, 0.05);
  font: inherit;
  cursor: pointer;
}

.masthead-wrap {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead {
  position: relative;
  margin: 0;
  color: white;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 16vw, 11rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.8;
  text-transform: uppercase;
  transform: skewX(-5deg);
  text-shadow:
    5px 5px 0 var(--magenta),
    -4px -3px 0 var(--cyan),
    0 0 32px rgba(255, 0, 200, 0.82);
}

.masthead::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
  transform: translate(0.035em, -0.035em);
}

.tagline {
  display: inline-block;
  margin: 1.2rem 0 0;
  padding: 0.4rem 0.8rem;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Courier New", monospace;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.breaking-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border: 2px solid var(--magenta);
  background: rgba(8, 0, 19, 0.9);
  box-shadow: var(--shadow-pink);
  overflow: hidden;
}

.breaking-bar > strong {
  z-index: 1;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.ticker-window { overflow: hidden; }

.ticker-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0.75rem 0;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  padding-inline: 1.6rem;
  color: white;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "✦";
  margin-left: 3.2rem;
  color: var(--cyan);
}

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

main { padding-block: 2rem 4rem; }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(260px, 0.75fr);
  gap: 1.25rem;
}

.story-card,
.trend-panel,
.tip-line,
.legal {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 0, 200, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow-pink), inset 0 0 28px rgba(0, 247, 255, 0.04);
}

.story-card::before,
.trend-panel::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(0, 247, 255, 0.12);
  pointer-events: none;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  min-height: 430px;
  overflow: hidden;
}

.story-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 242, 0, 0.78) 47% 52%, transparent 53%),
    repeating-radial-gradient(circle, rgba(0, 247, 255, 0.18) 0 2px, transparent 3px 18px),
    linear-gradient(145deg, #2e005e, #ff008c);
}

.signal-ring {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 25px var(--cyan), inset 0 0 25px rgba(0, 247, 255, 0.38);
  animation: signal 2.4s ease-in-out infinite alternate;
}

@keyframes signal {
  to { transform: scale(1.08); opacity: 0.55; }
}

.story-monogram {
  z-index: 1;
  color: white;
  font-family: Impact, sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-style: italic;
  text-shadow: 4px 4px 0 var(--ink), 0 0 20px var(--yellow);
  transform: rotate(-8deg);
}

.story-copy { padding: clamp(1.4rem, 4vw, 2.6rem); }

.labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.label {
  display: inline-block;
  padding: 0.28rem 0.48rem;
  color: var(--cyan);
  border: 1px solid currentColor;
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.label--live,
.label--hot { color: var(--yellow); }
.label--watch { color: #ff8af0; }
.label--lost { color: #7affb2; }
.label--medical { color: #8da8ff; }
.label--locked { color: var(--muted); }

.story-copy h2,
.section-heading h2,
.trend-panel h2,
.tip-line h2,
.legal h2,
.story-card h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
}

.story-copy h2 { font-size: clamp(2.5rem, 6vw, 5.4rem); }

.dek {
  color: #edd9f4;
  font-size: 1.08rem;
  line-height: 1.6;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.story-meta span + span::before {
  content: "// ";
  color: var(--magenta);
}

.read-button,
.tip-line > a {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.8rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--magenta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.read-button:hover,
.tip-line > a:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--magenta);
}

.trend-panel { padding: 1.5rem; }
.trend-panel h2 { font-size: 2.5rem; }

.trend-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  counter-reset: trends;
}

.trend-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 0, 200, 0.26);
  counter-increment: trends;
}

.trend-list li::before {
  content: counter(trends, decimal-leading-zero);
  color: var(--yellow);
  font-family: Impact, sans-serif;
  font-size: 1.5rem;
}

.trend-list span { align-self: end; font-weight: 800; }
.trend-list small { grid-column: 2; color: var(--muted); }

.trend-warning {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.latest { margin-top: 3rem; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 3px solid var(--magenta);
}

.section-heading h2 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.section-heading > p { max-width: 32rem; color: var(--muted); text-align: right; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.story-card--small {
  min-height: 360px;
  padding: 1.4rem;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.story-card--small:hover {
  z-index: 1;
  border-color: var(--cyan);
  transform: translateY(-5px) rotate(-0.35deg);
}

.story-card--small:nth-child(even):hover { transform: translateY(-5px) rotate(0.35deg); }

.story-number {
  position: absolute;
  right: 0.7rem;
  bottom: -1.1rem;
  color: rgba(255, 255, 255, 0.045);
  font-family: Impact, sans-serif;
  font-size: 8rem;
  line-height: 1;
  pointer-events: none;
}

.story-card h3 { position: relative; font-size: 2rem; }

.story-card--small > p:not(.labels, .story-meta) {
  position: relative;
  color: #dbc8e4;
  line-height: 1.55;
}

.story-card--small > a,
.locked-link {
  position: relative;
  display: inline-block;
  margin-top: auto;
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-underline-offset: 0.25em;
  text-transform: uppercase;
}

.story-card--classified { filter: saturate(0.72); }
.locked-link { color: var(--muted); }

.tip-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.tip-line h2 { font-size: clamp(2.5rem, 6vw, 4rem); }
.tip-line p:not(.section-kicker) { max-width: 48rem; color: var(--muted); line-height: 1.55; }
.tip-line > a { margin: 0; white-space: nowrap; }

.legal {
  margin-top: 1rem;
  padding: 1.2rem 1.4rem;
  border-style: dashed;
}

.legal h2 { color: var(--yellow); font-size: 1.35rem; }
.legal p { margin-bottom: 0; color: var(--muted); font-family: "Courier New", monospace; font-size: 0.76rem; line-height: 1.6; }

.exit-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.exit-nav a { color: var(--muted); text-underline-offset: 0.25em; }
.exit-nav a:hover { color: var(--cyan); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 0, 200, 0.3);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.site-footer p { margin: 0; }

html.effects-disabled { scroll-behavior: auto; }
html.effects-disabled .scanlines,
html.effects-disabled .neon-haze { display: none; }
html.effects-disabled .ticker-track,
html.effects-disabled .signal-ring { animation: none; }

@media (max-width: 900px) {
  .lead-grid,
  .lead-story { grid-template-columns: 1fr; }
  .story-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tip-line { grid-template-columns: 1fr; }
  .tip-line > a { justify-self: start; white-space: normal; }
}

@media (max-width: 600px) {
  .site-header,
  main,
  .site-footer { width: min(100% - 1rem, 1180px); }
  .utility-nav { justify-content: center; }
  .masthead-wrap { padding-top: 4rem; }
  .breaking-bar { grid-template-columns: 1fr; }
  .breaking-bar > strong { text-align: center; }
  .story-grid { grid-template-columns: 1fr; }
  .section-heading,
  .exit-nav,
  .site-footer { flex-direction: column; align-items: flex-start; }
  .section-heading > p { text-align: left; }
  .story-meta span + span::before { content: ""; }
  .masthead { text-shadow: 3px 3px 0 var(--magenta), -2px -2px 0 var(--cyan); }
}

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

@media print {
  body { color: #000; background: #fff; }
  .neon-haze, .scanlines, .utility-nav, .breaking-bar, .tip-line, .exit-nav { display: none; }
  .site-header, main, .site-footer { width: 100%; }
  .masthead { color: #000; text-shadow: none; }
  .masthead::after { display: none; }
  .story-card, .trend-panel, .legal { color: #000; border: 1px solid #777; background: #fff; box-shadow: none; break-inside: avoid; }
}