
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: local("Source Serif 4"), local("Georgia");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("IBM Plex Sans"), local("Segoe UI");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: local("IBM Plex Mono"), local("Consolas");
}
:root {
  --bg: #0e120f;
  --bg2: #141a15;
  --panel: #1a2218;
  --line: #2e3a30;
  --text: #e8ece6;
  --mute: #8aa090;
  --accent: #b4dc46;
  --accent2: #e89630;
  --warn: #dc4646;
  --ok: #7dcf6a;
  --rail: 220px;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  background-color: #080b09;
  background-image:
    radial-gradient(ellipse 900px 520px at 88% -8%, rgba(180,220,70,0.16), transparent 58%),
    radial-gradient(ellipse 700px 480px at -12% 72%, rgba(232,150,48,0.11), transparent 55%),
    radial-gradient(ellipse 500px 360px at 50% 110%, rgba(80,190,170,0.06), transparent 60%),
    url("/assets/bg-noise.svg"),
    url("/assets/bg-grid.svg"),
    linear-gradient(168deg, #121812 0%, #0c100d 42%, #080b09 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  background-size: auto, auto, auto, 200px 200px, 160px 160px, auto;
  min-height: 100vh;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(180,220,70,0.018) 2px,
      rgba(180,220,70,0.018) 3px
    );
  opacity: 0.55;
}
.shell { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.shell { display: flex; min-height: 100vh; }

.rail {
  width: var(--rail);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  padding: 1.25rem 1rem 1.5rem;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8,12,10,0.96), rgba(10,14,11,0.9)),
    url("/assets/bg-grid.svg");
  background-size: auto, 120px 120px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.brand {
  display: flex; gap: 0.55rem; align-items: center;
  color: inherit; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .logo-img {
  display: block;
  width: min(100%, 168px);
  height: auto;
}
.brand .mark {
  width: 42px; height: 42px; border-radius: 10px;
  display: none;
}
.brand-fall {
  display: none;
}
.brand strong {
  display: block; font-family: var(--serif);
  font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.1;
}
.brand small { color: var(--mute); font-size: 0.68rem; display: block; margin-top: 0.15rem; }

nav.side {
  display: flex; flex-direction: column; gap: 0.15rem;
  flex: 1;
}
nav.side a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--mute);
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}
nav.side a:hover {
  color: var(--text);
  background: rgba(180,220,70,0.06);
  text-decoration: none;
}
nav.side a.on {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(180,220,70,0.08);
}
.rail-foot {
  font-size: 0.7rem; color: var(--mute);
}
.rail-foot a { color: var(--mute); }
.rail-foot a:hover { color: var(--accent); }

.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topstrip {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(14,18,15,0.85);
  font-size: 0.78rem; color: var(--mute);
}
.topstrip .live { color: var(--accent); font-family: var(--mono); font-weight: 600; }
.nav-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.stage-body { flex: 1; }

/* Hero — full-bleed brand plane */
.mast {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  min-height: min(72vh, 520px);
  display: grid;
  align-items: end;
}
.mast-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55;
}
.mast-copy {
  position: relative; z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  background: linear-gradient(180deg, transparent 0%, rgba(14,18,15,0.55) 35%, rgba(14,18,15,0.95) 100%);
}
.mast .brand-hero {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.mast .brand-hero span { color: var(--accent); }
.mast .lede {
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--mute);
  margin: 0 0 1.4rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e120f;
}
.btn.solid:hover { background: var(--accent2); border-color: var(--accent2); color: #0e120f; }

.section { padding: 2.25rem 0; }
.section .head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.section .head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.section .head p { margin: 0.2rem 0 0; color: var(--mute); font-size: 0.9rem; }

.warn {
  border-left: 3px solid var(--warn);
  background: rgba(220,70,70,0.08);
  padding: 1rem 1.15rem;
}
.warn h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--warn); }
.warn p { margin: 0; color: var(--mute); font-size: 0.92rem; }

/* Magazine feed rows */
.feed { display: grid; gap: 0; }
.story {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.lead-story img {
  width: 100%; height: auto; border: 1px solid var(--line); background: var(--panel);
  aspect-ratio: 13/8; object-fit: cover; max-height: 280px;
}
.lead-story h2 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em; line-height: 1.2;
}
.lead-story h2 a { color: var(--text); text-decoration: none; }
.lead-story h2 a:hover { color: var(--accent); }
.lead-story .when {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent2); margin: 0 0 0.4rem;
}
.lead-story p { color: var(--mute); margin: 0 0 0.75rem; }
.briefs {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  border: 1px solid var(--line);
}
.briefs li { border-bottom: 1px solid var(--line); }
.briefs li:last-child { border-bottom: none; }
.briefs a {
  display: block; padding: 0.75rem 1rem;
  color: var(--text); text-decoration: none; font-weight: 650;
}
.briefs a:hover { background: rgba(180,220,70,0.06); color: var(--accent); }
.briefs .when {
  display: inline-block; min-width: 6.5rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent2); font-weight: 500; margin-right: 0.55rem;
}
@media (max-width: 860px) {
  .lead-story { grid-template-columns: 1fr; }
}
.story:first-child { border-top: 1px solid var(--line); }
.story-media {
  display: block; width: 100%; aspect-ratio: 13/8;
  object-fit: cover; border: 1px solid var(--line);
  background: var(--panel);
}
.story .when {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent2); letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.story h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.story h3 a { color: var(--text); text-decoration: none; }
.story h3 a:hover { color: var(--accent); }
.story p { margin: 0 0 0.6rem; color: var(--mute); font-size: 0.94rem; }
.story .more {
  font-size: 0.82rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
}
.story .more:hover { color: var(--accent2); }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  border: 1px solid var(--line);
  background: transparent;
  padding: 1.15rem;
  border-radius: 2px;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.1rem;
}
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--mute); font-size: 0.9rem; }

.page { padding: 1.75rem 0 3rem; }
.crumbs {
  font-size: 0.78rem; color: var(--mute); margin-bottom: 1rem;
}
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 0.35rem; opacity: 0.5; }

.feature {
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.feature img {
  display: block; width: 100%; height: auto;
  max-height: 280px; object-fit: cover;
}
.story-split, .page-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, 260px);
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin: 0 0 1.75rem;
}
.story-split .meta { margin: 0 0 0.5rem; }
.story-split h1, .page-split h1 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.story-split .lead, .page-split .lead {
  margin: 0 0 0.85rem;
  color: var(--mute);
  font-size: 1.02rem;
}
.page-split .intro-body {
  color: var(--mute);
  font-size: 0.98rem;
  line-height: 1.7;
}
.page-split .intro-body p { margin: 0 0 0.85rem; }
.page-split .intro-body p:last-child { margin-bottom: 0; }
.story-visual, .page-visual {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  border-radius: 2px;
  position: sticky;
  top: 1rem;
}
.story-visual img, .page-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  aspect-ratio: 13/8;
}
.art-media {
  float: right;
  width: min(42%, 340px);
  margin: 0.15rem 0 1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
  shape-outside: margin-box;
}
.art-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 13/8;
  object-fit: cover;
}
.art-media.break {
  float: none;
  width: min(100%, 420px);
  margin: 1.1rem 0 1.25rem;
}
.article-body::after {
  content: "";
  display: table;
  clear: both;
}
.article-body p { margin: 0 0 1rem; }
.article-body h2 { margin: 1.4rem 0 0.55rem; }
.article-body ol, .article-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
@media (max-width: 820px) {
  .story-split, .page-split { grid-template-columns: 1fr; }
  .story-visual, .page-visual { max-width: 420px; }
  .art-media {
    float: none;
    width: min(100%, 420px);
    margin: 0.85rem 0 1.1rem;
  }
}

.panel {
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}
.panel h1 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.panel .lead { color: var(--mute); font-size: 1.05rem; margin: 0 0 1.25rem; }
.panel .meta {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--accent2); margin: 0 0 0.75rem;
}
.panel h2 {
  margin: 1.6rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.panel ol, .panel ul { padding-left: 1.2rem; }
.panel li { margin-bottom: 0.35rem; }

.mcard {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}
.mcard h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  display: flex; align-items: center; gap: 0.65rem;
}
.live-pill {
  font-family: var(--mono); font-size: 0.65rem;
  color: #0e120f; background: var(--accent);
  padding: 0.15rem 0.45rem; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mcard p { margin: 0 0 0.4rem; color: var(--mute); }

.slist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.slist li {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.slist a { font-weight: 650; color: var(--text); }
.slist a:hover { color: var(--accent); }
code.onion {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  word-break: break-all;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  margin: 0.4rem 0;
  border-radius: 2px;
}
code.onion a { color: var(--accent); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
}
.faq details p {
  margin: 0.65rem 0 0;
  color: var(--mute);
  line-height: 1.7;
  max-width: 42rem;
}

footer.site {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #0a0e0b;
  padding: 2rem 0 1.25rem;
}
.foot-brand {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.foot-brand strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  display: block;
}
.foot-brand p {
  margin: 0.4rem 0 0;
  max-width: 28rem;
  color: var(--mute);
  font-size: 0.88rem;
}
.foot-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-size: 0.88rem;
}
.foot-links a { color: var(--mute); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.fb {
  display: flex; justify-content: space-between; gap: 0.6rem;
  flex-wrap: wrap; font-size: 0.76rem; color: var(--mute);
}

@media (max-width: 920px) {
  .shell { flex-direction: column; }
  .rail {
    position: relative; height: auto; width: 100%;
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
  }
  .rail-foot, nav.side { display: none; }
  .nav-btn { display: inline-block; margin-left: auto; }
  .rail-top { display: flex; align-items: center; width: 100%; gap: 1rem; }
  #nav-toggle:checked ~ .shell .rail nav.side {
    display: flex; margin-top: 0.75rem;
  }
  #nav-toggle:checked ~ .shell .rail .rail-foot {
    display: block;
  }
  .story { grid-template-columns: 120px 1fr; gap: 0.9rem; }
  .grid3 { grid-template-columns: 1fr; }
  .mast { min-height: 420px; }
}
@media (max-width: 560px) {
  .story { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
}
