/* ═══════════════════════════════════════════════════════════════════
   BLOODY ROTTEN — landing stylesheet
   Look: rotten-green VHS fanzine. Deliberately NOT red/black magazine.
   Type: Anton (display) · Barlow Condensed (labels) · Georgia (body)
          · IBM Plex Mono (VHS artifacts)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b100b;
  --bg-2: #101710;
  --paper: #d9d4c2;
  --dim: #8f8a78;
  --rot: #a4c437;
  --rot-dim: #5c7226;
  --blood: #c10d0d;      /* same red as the logo lettering */
  --blood-deep: #a3372b; /* muted brick, shadows only */
  --line: #2a331f;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--serif);
  line-height: 1.6;
  overflow-x: hidden;
}

/* film grain + vignette + scanlines, all fixed overlays */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}

::selection { background: var(--rot); color: #0b100b; }

a { color: var(--rot); }

/* ══ TICKER ═════════════════════════════════════════════════════ */
.ticker {
  background: var(--rot);
  color: #101510;
  overflow: hidden;
  border-bottom: 3px solid #000;
  font-family: var(--cond);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 55s linear infinite;
}
.ticker-run { display: flex; }
.tick {
  white-space: nowrap;
  padding: .45em 1.6em .45em 0;
}
.tick b {
  background: #101510;
  color: var(--rot);
  padding: .1em .5em .12em;
  margin-right: .6em;
  font-weight: 700;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ══ MASTHEAD ═══════════════════════════════════════════════════ */
.masthead {
  text-align: center;
  padding: 2.4rem 1rem 0;
  border-bottom: 1px solid var(--line);
}
.masthead-top {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .72rem;
  color: var(--dim);
  display: flex;
  justify-content: center;
  gap: 1em;
  align-items: center;
}
.masthead-top .dot { color: var(--blood); font-size: .6em; }

.logo { margin: 1.6rem 0 .7rem; }
.logo img {
  display: block;
  margin: 0 auto;
  width: min(33rem, 88vw);
  height: auto;
  filter:
    drop-shadow(4px 0 0 rgba(193, 13, 13, .3))
    drop-shadow(-4px 0 0 rgba(164, 196, 55, .28));
}
.motto {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .5em;
  font-size: clamp(.6rem, 1.6vw, .85rem);
  color: var(--rot);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: inline-block;
  padding: .5em 1.5em;
  margin-bottom: 1.6rem;
}
.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 2.2rem;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  font-size: 1rem;
  padding-bottom: 1.1rem;
}
.masthead-nav a { color: var(--paper); text-decoration: none; }
.masthead-nav a:hover { color: var(--rot); }
.masthead-nav .nav-cta {
  color: var(--rot);
  border: 1px solid var(--rot-dim);
  padding: .05em .8em .15em;
}
.masthead-nav .nav-cta:hover { background: var(--rot); color: #0b100b; }

/* ══ LAYOUT ═════════════════════════════════════════════════════ */
main { max-width: 60rem; margin: 0 auto; padding: 0 1.2rem; }

.section-title {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 3.5rem 0 1.6rem;
}
.section-title::before, .section-title::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

/* ══ HERO ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 3.2rem 0 2.6rem;
  animation: flicker 7s infinite;
}
.vhs-osd {
  position: absolute;
  top: 1.2rem;
  right: 0;
  display: flex;
  gap: 1.4em;
  font-family: var(--mono);
  font-size: .8rem;
  color: #cfd6bd;
  opacity: .8;
  letter-spacing: .1em;
}
.vhs-osd .rec { color: var(--blood); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.kicker {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 1rem;
}
.stamp {
  display: inline-block;
  color: var(--blood);
  border: 2px solid var(--blood);
  padding: .1em .6em;
  margin-right: 1em;
  font-weight: 700;
  letter-spacing: .22em;
  transform: rotate(-2deg);
}

.headline {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.4rem, 13vw, 10rem);
  line-height: .92;
  color: var(--paper);
  text-shadow:
    4px 0 0 rgba(193, 13, 13, .35),
    -4px 0 0 rgba(164, 196, 55, .35);
  margin-bottom: 1.6rem;
}

.standfirst {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 44rem;
  color: #c9c4b2;
  margin-bottom: 1rem;
}
.standfirst.strong { color: var(--paper); font-style: italic; }

.byline {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--dim);
  margin: 1.4rem 0 1.8rem;
}
.byline em { color: var(--rot); font-style: normal; }

/* ══ BUTTONS ════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .65em 1.5em .75em;
  border: 2px solid var(--rot);
}
.btn-primary {
  background: var(--rot);
  color: #0b100b;
  box-shadow: 5px 5px 0 rgba(163, 55, 43, .7);
}
.btn-primary:hover { background: #c1e14a; border-color: #c1e14a; }
.btn-ghost { color: var(--rot); }
.btn-ghost:hover { background: rgba(164, 196, 55, .12); }

/* ══ TAPES ══════════════════════════════════════════════════════ */
.tape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.tape {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 1.2rem 1.2rem 1rem;
  position: relative;
  overflow: hidden;
}
.tape-label {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dim);
  border-bottom: 1px dashed var(--line);
  padding-bottom: .7em;
  margin-bottom: 1em;
}
.tape-label .ok { color: var(--rot); }
.tape-label .warn { color: #c9a23a; }
.tape-label .bad { color: var(--blood); }
.tape h4 {
  font-family: var(--cond);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: .6em;
}
.tape p { font-size: .92rem; color: #b5b09e; }
.tape-foot {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem !important;
  color: var(--dim) !important;
  margin-top: 1.2em;
}

.tape.damaged::after, .tape.missing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(217, 212, 194, .05) 0 2px,
    rgba(11, 16, 11, .12) 2px 4px
  );
  animation: static-drift .4s steps(4) infinite;
}
.tape.missing::after { opacity: .8; }
@keyframes static-drift { to { transform: translateY(4px); } }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  opacity: .55;
}
.glitch::before { color: var(--blood); transform: translate(2px, -1px); }
.glitch::after { color: var(--rot); transform: translate(-2px, 1px); }

/* ══ DISCLOSURE ═════════════════════════════════════════════════ */
.disclosure { padding-bottom: 1rem; }
.disclosure-lede {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  max-width: 46rem;
  margin-bottom: 1rem;
}
.disclosure-lede .gi { color: var(--rot); letter-spacing: .04em; }
.disclosure-body {
  max-width: 46rem;
  color: #c9c4b2;
  margin-bottom: 1.8rem;
}
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.facts li {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .85rem;
  border: 1px solid var(--line);
  color: #b5b09e;
  padding: .3em .9em .4em;
}
.facts b { color: var(--paper); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.rating-note {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--dim);
  margin-top: 1.4rem;
}

/* ══ FOOTER ═════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding: 2rem 1.2rem 2.6rem;
  text-align: center;
}
.disclaimer {
  max-width: 42rem;
  margin: 0 auto 1.4rem;
  font-size: .85rem;
  color: var(--dim);
}
.disclaimer b { color: #b5b09e; }
.footer-links {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .9rem;
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-bottom: .8rem;
}
.footer-links a { color: var(--paper); text-decoration: none; }
.footer-links a:hover { color: var(--rot); }
.footer-links span { color: var(--line); }
.colophon {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: .08em;
}

/* ══ 404 ════════════════════════════════════════════════════════ */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.2rem;
}

/* ══ EFFECTS / MOTION ═══════════════════════════════════════════ */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .86; }
  94% { opacity: 1; }
  97% { opacity: .93; }
  98% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero { animation: none; }
  .vhs-osd .rec { animation: none; }
  .tape.damaged::after, .tape.missing::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ══ RESPONSIVE ═════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .tape-grid { grid-template-columns: 1fr; }
  .vhs-osd { position: static; justify-content: flex-end; margin-bottom: 1rem; }
  .hero { padding-top: 2rem; }
  .cta-row .btn { width: 100%; text-align: center; }
}
