/* ============================================================
   BLACKLIST ROLEPLAY — site stylesheet
   Design system: charcoal ink / blood red / dossier mono
   ============================================================ */

:root {
  --ink: #0a0a0c;          /* page background */
  --panel: #141416;        /* raised surfaces */
  --panel-2: #18181b;      /* alt surface */
  --line: #26262b;         /* hairlines */
  --red: #e0242f;          /* accent */
  --red-deep: #8f1219;     /* accent shadow */
  --text: #ededef;         /* body text */
  --muted: #90909a;        /* secondary text */
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --disp: "Barlow Condensed", sans-serif;
  --body: "Barlow", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint film grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- type utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
}

h1, h2, h3 { font-family: var(--disp); text-transform: uppercase; line-height: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.wordmark img { height: 44px; width: auto; }
.wordmark .tag {
  background: var(--red);
  color: #fff;
  padding: 1px 7px 2px;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 22px 12px;
  border: 1px solid var(--red);
  color: #fff;
  background: var(--red);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn:hover { background: #f0303b; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(224,36,47,0.35); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--red); color: #fff; box-shadow: none; }
.nav .btn { font-size: 15px; padding: 8px 16px 9px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; padding: 8px 12px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.hero-logo { justify-self: end; }
.hero-logo img {
  width: clamp(240px, 28vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 46px rgba(224, 36, 47, 0.28));
  animation: logoIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.2s;
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(64px, 10vw, 132px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.hero h1 .line { display: block; }

/* redaction bars — the signature */
.redact {
  position: relative;
  display: inline-block;
  color: var(--red);
}
.redact::after {
  content: "";
  position: absolute;
  inset: 4% -2%;
  background: var(--red);
  transform-origin: left;
  animation: unredact 0.9s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.redact.r2::after { background: var(--text); animation-delay: 0.25s; }
.redact.r2 { color: var(--text); }
@keyframes unredact {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}
@media (prefers-reduced-motion: reduce) {
  .redact::after { animation: none; transform: scaleX(0); }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

.hero .sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 40px;
}
.hero .sub strong { color: var(--text); font-weight: 500; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- fact strip ---------- */
.facts {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; }
.fact .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact .v {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fact .v em { color: var(--red); font-style: normal; }

/* ---------- sections ---------- */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  margin-top: 14px;
}
.section-head h2 em { color: var(--red); font-style: normal; }
.section-head .lede { max-width: 620px; color: var(--muted); margin-top: 16px; font-size: 18px; }

/* about split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.split .copy p { color: var(--muted); margin-bottom: 18px; }
.split .copy p strong { color: var(--text); font-weight: 500; }

.dossier {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  position: relative;
}
.dossier::before {
  content: "FILE // BLRP-000001";
  position: absolute;
  top: -10px; left: 22px;
  background: var(--ink);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
}
.dossier dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; }
.dossier dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.dossier dd { font-size: 16px; }
.dossier dd .bar {
  display: inline-block;
  background: var(--text);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.dossier dd .bar:hover { background: transparent; color: var(--red); }
.dossier .hint {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--panel);
  padding: 34px 30px 36px;
  position: relative;
  transition: background 0.2s;
}
.card:hover { background: var(--panel-2); }
.card .idx {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 20px;
}
.card h3 { font-size: 30px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }
.card::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.25s;
}
.card:hover::after { height: 100%; }

/* join steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.step .num {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 58px;
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 26px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0.02em; }
.step p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.step p:last-child { margin-bottom: 0; }
.step > a:not(.btn) { color: var(--red); border-bottom: 1px solid transparent; }
.step > a:not(.btn):hover { border-color: var(--red); }
.step .btn { font-size: 14px; padding: 9px 16px 10px; }

/* discord CTA band */
.cta-band {
  padding: 96px 0;
  text-align: center;
  background:
    linear-gradient(rgba(10,10,12,0.82), rgba(10,10,12,0.94)),
    repeating-linear-gradient(-45deg, var(--panel) 0 14px, var(--ink) 14px 28px);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; margin: 14px 0 18px; }
.cta-band h2 em { color: var(--red); font-style: normal; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 36px; }

/* footer */
footer { padding: 44px 0 60px; }
footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
footer .fine {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
footer .links { display: flex; gap: 24px; }
footer .links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
footer .links a:hover { color: var(--red); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RULES PAGE
   ============================================================ */
.rules-hero {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--line);
}
.rules-hero h1 { font-size: clamp(52px, 7vw, 92px); font-weight: 700; margin-top: 16px; }
.rules-hero h1 em { color: var(--red); font-style: normal; }
.rules-hero .meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rules-hero .meta span b { color: var(--text); font-weight: 500; }

.rules-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  padding: 60px 0 110px;
  align-items: start;
}
.rules-nav {
  position: sticky; top: 100px;
  display: flex; flex-direction: column;
}
.rules-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 0 9px 16px;
  border-left: 2px solid var(--line);
  transition: color 0.15s, border-color 0.15s;
}
.rules-nav a:hover { color: var(--text); }
.rules-nav a.active { color: var(--red); border-color: var(--red); }

.rule-section { margin-bottom: 84px; scroll-margin-top: 96px; }
.rule-section > h2 {
  font-size: 42px;
  font-weight: 700;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 14px;
}
.rule-section > h2 .code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--red);
}
.rule-section .section-note { color: var(--muted); margin: 14px 0 8px; max-width: 680px; }

.rule {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.rule h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  display: flex; align-items: baseline; gap: 12px;
}
.rule h3 .rid {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  flex-shrink: 0;
}
.rule p { color: var(--muted); max-width: 700px; }
.rule ul { margin: 10px 0 0 2px; list-style: none; max-width: 700px; }
.rule ul li {
  color: var(--muted);
  padding: 4px 0 4px 22px;
  position: relative;
}
.rule ul li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--red);
}
.rule .allow li::before { content: "✓"; }
.rule strong { color: var(--text); font-weight: 500; }

.draft-flag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--red);
  padding: 3px 9px 4px;
  margin-left: 12px;
  vertical-align: middle;
}

.severity {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 3px 9px 4px;
}
.severity.high { border-color: var(--red); color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact { border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .rules-layout { grid-template-columns: 1fr; gap: 30px; }
  .rules-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .rules-nav a { border-left: 0; padding: 4px 0; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 20px 28px 26px; gap: 18px; }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero-logo { justify-self: center; order: -1; }
  .hero-logo img { width: 200px; }
}

footer .case-stamp {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 6px;
}
footer .case-stamp::after {
  content: "FILE NOTE // BLACKLIST'S FAVOURITE TAKEAWAY: PIZZA";
}

.logo-aside {
  max-width: clamp(240px, 28vw, 380px);
  margin: 14px auto 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-style: italic;
  opacity: 0;
  animation: logoIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.5s;
}
