/* ============================================================
   CyberNews by Zentrya One
   Palette: #E4192A / #FFFFFF / #0B0B0C
   ============================================================ */

:root {
  --red: #E4192A;
  --red-deep: #A8101E;
  --red-wash: #FDECEE;
  --ink: #0B0B0C;
  --ink-2: #16161A;
  --ink-3: #26262C;
  --white: #FFFFFF;
  --paper: #F5F5F6;
  --line: #E4E4E7;
  --line-dark: #2E2E36;
  --muted: #6E6E76;
  --muted-dark: #9A9AA4;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --gap: 28px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
}

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

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

/* ---------- utility type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- signature: the wire ---------- */

.wire {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.wire-inner {
  display: flex;
  align-items: stretch;
  max-width: var(--wrap);
  margin: 0 auto;
  height: 34px;
}
.wire-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--red);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.wire-track { flex: 1 1 auto; overflow: hidden; position: relative; }
.wire-rail {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
  white-space: nowrap;
  padding-left: 18px;
  animation: slide 46s linear infinite;
  will-change: transform;
}
.wire-track:hover .wire-rail { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wire-item {
  font-family: var(--mono);
  font-size: 12px;
  color: #D6D6DC;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wire-item:hover { color: var(--white); }
.wire-item b { color: var(--red); font-weight: 600; margin-right: 7px; }

/* ---------- masthead ---------- */

.masthead { background: var(--ink); color: var(--white); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 0 18px;
}
.brand { text-decoration: none; display: block; line-height: 1; }
.brand-word {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--white);
}
.brand-word span { color: var(--red); }
.brand-sub {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-dark);
}
.masthead-tools { display: flex; align-items: center; gap: 12px; }

.searchbox { display: flex; border: 1px solid var(--line-dark); background: var(--ink-2); }
.searchbox input {
  border: 0; background: transparent; color: var(--white);
  font-family: var(--mono); font-size: 12.5px; padding: 9px 12px; width: 190px;
}
.searchbox input::placeholder { color: #70707A; }
.searchbox input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.searchbox button {
  border: 0; background: var(--red); color: var(--white); cursor: pointer;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0 14px;
}
.searchbox button:hover { background: var(--red-deep); }

/* ---------- navigation ---------- */

.nav { background: var(--ink-2); border-top: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 40; }
.nav-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none;
  color: #C9C9D1; padding: 14px 15px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--white); background: #1F1F25; }
.nav a.on { color: var(--white); border-bottom-color: var(--red); }
.nav-menu {
  display: none; margin-left: auto; background: none; border: 0; color: var(--white);
  font-family: var(--mono); font-size: 12px; padding: 12px 14px; cursor: pointer;
}

/* ---------- severity chips ---------- */

.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 7px; color: var(--white); background: var(--ink-3);
  vertical-align: middle;
}
.chip.critical { background: var(--red); }
.chip.high { background: var(--red-deep); }
.chip.medium { background: #4A4A54; }
.chip.low { background: #7A7A84; }
.chip.cve { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }

/* ---------- layout grids ---------- */

.deck { display: grid; grid-template-columns: 1fr 330px; gap: 44px; padding: 34px 0 60px; }
@media (max-width: 940px) { .deck { grid-template-columns: 1fr; gap: 34px; } }

.rule {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin: 0 0 22px;
}
.rule h2 {
  font-family: var(--display); font-size: 15px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase; margin: 0;
}
.rule .count { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: auto; }

/* ---------- lead story ---------- */

.lead { border-bottom: 1px solid var(--line); padding-bottom: 30px; margin-bottom: 30px; }
.lead-figure { position: relative; margin-bottom: 18px; background: var(--paper); }
.lead-figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.lead-flag {
  position: absolute; top: 0; left: 0;
  background: var(--red); color: var(--white);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 12px;
}
.lead h1 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.028em;
  margin: 12px 0 14px;
}
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { color: var(--red); }
.lead p.standfirst { font-size: 19px; line-height: 1.55; color: #33333A; margin: 0 0 16px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.byline .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; }

/* ---------- secondary row ---------- */

.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: 46px; }
@media (max-width: 860px) { .row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .row { grid-template-columns: 1fr; } }

.mini { border-top: 3px solid var(--ink); padding-top: 12px; }
.mini:hover { border-top-color: var(--red); }
.mini h3 {
  font-family: var(--display); font-size: 15.5px; font-weight: 700;
  line-height: 1.24; letter-spacing: -0.012em; margin: 8px 0 8px;
}
.mini h3 a { text-decoration: none; }
.mini h3 a:hover { color: var(--red); }

/* ---------- article cards (feed) ---------- */

.feed { display: flex; flex-direction: column; gap: 0; }
.card {
  display: grid; grid-template-columns: 210px 1fr; gap: 22px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.card::before {
  content: ""; position: absolute; left: -20px; top: 24px; bottom: 24px;
  width: 3px; background: var(--red); opacity: 0; transition: opacity .18s ease;
}
.card:hover::before { opacity: 1; }
.card-thumb { background: var(--paper); overflow: hidden; }
.card-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.placeholder {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: var(--ink); color: var(--red);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}
.card h3 {
  font-family: var(--display); font-size: 22px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.018em; margin: 9px 0 9px;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { margin: 0 0 12px; color: #3C3C43; font-size: 15.5px; line-height: 1.55; }
@media (max-width: 620px) {
  .card { grid-template-columns: 1fr; gap: 14px; }
  .card h3 { font-size: 20px; }
}

/* ---------- sidebar ---------- */

.side { display: flex; flex-direction: column; gap: 34px; }
@media (min-width: 941px) { .side { position: sticky; top: 66px; align-self: start; } }

.panel { border: 1px solid var(--line); }
.panel-head {
  background: var(--ink); color: var(--white); padding: 12px 16px;
  font-family: var(--display); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.panel-body { padding: 16px; }

.subscribe { background: var(--ink); color: var(--white); padding: 26px 22px; }
.subscribe h3 {
  font-family: var(--display); font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 10px;
}
.subscribe p { font-size: 14.5px; line-height: 1.55; color: #C4C4CC; margin: 0 0 18px; }
.subscribe input[type="email"], .subscribe input[type="text"] {
  width: 100%; border: 1px solid var(--line-dark); background: var(--ink-2);
  color: var(--white); font-family: var(--mono); font-size: 13px;
  padding: 12px 13px; margin-bottom: 10px;
}
.subscribe input::placeholder { color: #6E6E7A; }
.subscribe input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.btn-red {
  width: 100%; border: 0; background: var(--red); color: var(--white); cursor: pointer;
  font-family: var(--display); font-size: 13.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 14px;
}
.btn-red:hover { background: var(--red-deep); }
.btn-red:disabled { opacity: .6; cursor: wait; }
.fineprint { font-family: var(--mono); font-size: 10.5px; color: #7A7A86; margin: 12px 0 0; line-height: 1.6; }
.form-note { font-family: var(--mono); font-size: 12px; margin: 12px 0 0; line-height: 1.55; }
.form-note.ok { color: #6BE39A; }
.form-note.error { color: #FF7A85; }
.honey { position: absolute; left: -9999px; }

.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank .n {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--red);
  flex: 0 0 auto; padding-top: 1px;
}
.rank a {
  font-family: var(--display); font-size: 14.5px; font-weight: 600;
  line-height: 1.32; text-decoration: none; letter-spacing: -0.008em;
}
.rank a:hover { color: var(--red); }

.taglist { display: flex; flex-wrap: wrap; gap: 7px; }
.taglist a {
  font-family: var(--mono); font-size: 11px; text-decoration: none;
  border: 1px solid var(--line); padding: 6px 9px; color: var(--ink-3);
}
.taglist a:hover { border-color: var(--red); color: var(--red); }

/* ---------- article page ---------- */

.article-head { padding: 32px 0 0; }
.article-head h1 {
  font-family: var(--display);
  font-size: clamp(29px, 4.2vw, 44px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.028em;
  margin: 14px 0 16px;
}
.article-head .standfirst { font-size: 19.5px; line-height: 1.55; color: #33333A; margin: 0 0 18px; }
.article-hero { margin: 24px 0 0; }
.article-hero img { width: 100%; max-height: 460px; object-fit: cover; }

.prose { font-size: 18px; line-height: 1.72; color: #17171B; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--display); font-size: 25px; font-weight: 800;
  letter-spacing: -0.018em; line-height: 1.2; margin-top: 1.7em;
  padding-left: 14px; border-left: 4px solid var(--red);
}
.prose h3 { font-family: var(--display); font-size: 19.5px; font-weight: 700; margin-top: 1.5em; }
.prose a { color: var(--red-deep); text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ink);
  font-size: 20px; line-height: 1.5; color: var(--ink);
}
.prose code {
  font-family: var(--mono); font-size: 0.84em;
  background: var(--paper); border: 1px solid var(--line); padding: 2px 5px;
}
.prose pre {
  background: var(--ink); color: #E8E8ED; padding: 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  border-left: 4px solid var(--red);
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 0.4em; }
.prose img { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; }
.prose th { background: var(--paper); font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

.article-foot {
  margin-top: 42px; padding-top: 22px; border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.share { display: flex; gap: 8px; }
.share a, .share button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--white); color: var(--ink);
  padding: 8px 11px; text-decoration: none; cursor: pointer;
}
.share a:hover, .share button:hover { background: var(--ink); color: var(--white); }

/* ---------- section header ---------- */

.section-head { border-bottom: 2px solid var(--ink); padding: 34px 0 16px; margin-bottom: 6px; }
.section-head h1 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  letter-spacing: -0.028em; margin: 8px 0 6px; text-transform: capitalize;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- pagination ---------- */

.pager { display: flex; gap: 8px; justify-content: center; padding: 36px 0 0; }
.pager a, .pager span {
  font-family: var(--mono); font-size: 12px; padding: 10px 14px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.pager a:hover { border-color: var(--ink); }
.pager .on { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- message page ---------- */

.notice { max-width: 640px; margin: 0 auto; padding: 70px 0 90px; text-align: center; }
.notice .mark {
  display: inline-block; width: 46px; height: 46px; line-height: 46px;
  background: var(--red); color: var(--white); font-family: var(--display);
  font-size: 24px; font-weight: 800; margin-bottom: 20px;
}
.notice.error .mark { background: var(--ink); }
.notice h1 { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 12px; }
.notice p { color: #3C3C43; margin: 0 0 26px; }
.notice .back {
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; border-bottom: 3px solid var(--red); padding-bottom: 3px;
}

/* ---------- wide subscribe band ---------- */

.band { background: var(--ink); color: var(--white); margin-top: 20px; }
.band-inner {
  display: grid; grid-template-columns: 1fr 420px; gap: 46px; align-items: center;
  padding: 52px 0;
}
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; } }
.band h2 {
  font-family: var(--display); font-size: clamp(26px, 3.6vw, 36px); font-weight: 800;
  letter-spacing: -0.028em; line-height: 1.12; margin: 12px 0 12px;
}
.band p { color: #B8B8C2; margin: 0; max-width: 46ch; }
.band-form { display: flex; gap: 0; }
.band-form input {
  flex: 1; border: 1px solid var(--line-dark); background: var(--ink-2); color: var(--white);
  font-family: var(--mono); font-size: 13.5px; padding: 15px 14px;
}
.band-form input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.band-form button {
  border: 0; background: var(--red); color: var(--white); cursor: pointer;
  font-family: var(--display); font-size: 13px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 0 24px;
}
.band-form button:hover { background: var(--red-deep); }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #A8A8B2; border-top: 1px solid var(--line-dark); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 46px 0 34px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot h4 {
  font-family: var(--display); font-size: 12px; font-weight: 800; color: var(--white);
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: var(--red); }
.foot p { font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; max-width: 44ch; }
.foot-bar {
  border-top: 1px solid var(--line-dark); padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: #70707C;
}

/* ---------- responsive nav ---------- */
@media (max-width: 700px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .searchbox { width: 100%; }
  .searchbox input { width: 100%; }
  .deck { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .wire-rail { animation: none; }
}

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