:root {
  --bg: #e9e5d8;
  --paper: #f6f1e5;
  --ink: #151515;
  --muted: #66645c;
  --line: #1b1b1b;
  --acid: #c9ff37;
  --orange: #ff5a36;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Libre Franklin", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input { border-radius: 0; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 500 .92rem/1 "DM Mono", monospace; letter-spacing: .08em;
}
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 16px 0 0 var(--acid); margin-right: 16px; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: .9rem; }
.nav a:hover { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 24px; }

.language-switcher { display: inline-flex; border: 1px solid var(--line); background: var(--paper); }
.language-switcher button {
  min-width: 42px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink);
  padding: 8px 9px; cursor: pointer; font: 500 .7rem/1 "DM Mono", monospace; letter-spacing: .06em;
}
.language-switcher button:last-child { border-right: 0; }
.language-switcher button:hover, .language-switcher button.active { background: var(--ink); color: var(--bg); }
.language-switcher button:focus-visible, .tag-button:focus-visible, .action-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.hero { padding: 90px 0 54px; }
.hero-kicker { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 18px; font: 500 .74rem/1.4 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.signal { display: flex; align-items: end; gap: 4px; height: 28px; margin-bottom: 18px; }
.signal i { display: block; width: 4px; background: var(--ink); }
.signal i:nth-child(1), .signal i:nth-child(7) { height: 7px; }
.signal i:nth-child(2), .signal i:nth-child(6) { height: 15px; }
.signal i:nth-child(3), .signal i:nth-child(5) { height: 23px; }
.signal i:nth-child(4) { height: 28px; background: var(--orange); }
.hero h1 {
  max-width: 1000px; margin: 0; font-size: clamp(4rem, 10vw, 9.4rem); line-height: .82;
  letter-spacing: -.075em; text-transform: uppercase; font-weight: 900;
}
.hero h1::first-line { text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .08em; }
.hero-copy { max-width: 760px; margin: 34px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-tape {
  margin-top: 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden;
  font: 500 .68rem/1 "DM Mono", monospace; letter-spacing: .09em;
}
.hero-tape span:nth-child(2) { color: var(--orange); }
.hero-tape span:nth-child(5) { background: var(--acid); padding: 8px 10px; }

.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.search-wrap { min-width: min(100%, 310px); display: flex; align-items: center; border: 1px solid var(--line); background: var(--paper); }
.search-wrap > span { padding-left: 11px; font: 500 1rem "DM Mono", monospace; }
.filters input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 11px; font: 400 .82rem "DM Mono", monospace; outline: none; }
.search-wrap:focus-within { box-shadow: 0 0 0 3px var(--acid); }
.tag-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-button {
  border: 1px solid var(--line); background: transparent; padding: 9px 11px; cursor: pointer;
  font: 400 .72rem "DM Mono", monospace; text-transform: uppercase;
}
.tag-button:hover { background: var(--paper); }
.tag-button.active { background: var(--ink); color: var(--bg); }

.stories { padding: 0 0 100px; }
.story {
  display: grid; grid-template-columns: 155px minmax(0, 1fr) 210px; gap: 28px;
  padding: 38px 0; border-bottom: 1px solid var(--line); position: relative;
}
.story::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--orange); transition: width .25s ease; }
.story:hover::before { width: 80px; }
.story-meta { font: 400 .72rem/1.6 "DM Mono", monospace; color: var(--muted); text-transform: uppercase; }
.story-number { display: inline-block; margin-bottom: 14px; background: var(--ink); color: var(--acid); padding: 4px 7px; }
.story-identity { margin-top: 12px; color: var(--ink); }
.story h2 { margin: 0 0 16px; max-width: 820px; font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -.055em; line-height: .95; }
.story-media { margin: 0 0 22px; }
.story-image-wrap { overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.story-image { display: block; width: 100%; max-height: 620px; object-fit: cover; aspect-ratio: 16 / 9; }
.story-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.story-video-wrap iframe, .story-video-wrap video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.story-video-wrap video { object-fit: contain; }
.story-media-link { margin: 0 0 22px; }
.story-summary { margin: 0; max-width: 790px; font-size: 1rem; }
.story-note { margin: 19px 0 0; max-width: 760px; padding: 11px 14px; border-left: 4px solid var(--orange); background: color-mix(in srgb, var(--paper) 60%, transparent); color: var(--muted); }
.story-side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.story-tag { font: 400 .65rem "DM Mono", monospace; border: 1px solid #939087; padding: 4px 6px; text-transform: uppercase; }
.source-name { margin: 12px 0 0; font: 400 .72rem/1.5 "DM Mono", monospace; color: var(--muted); }
.story-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.action-link {
  display: inline-block; text-decoration: none; border-bottom: 1px solid currentColor;
  font: 500 .76rem "DM Mono", monospace; text-transform: uppercase;
}
.action-link:hover { color: var(--orange); }
.listen-link { background: var(--acid); border: 1px solid var(--ink); padding: 7px 9px; text-decoration: none; }
.listen-link:hover { background: var(--ink); color: var(--acid); }
.empty { padding: 50px 0; color: var(--muted); }

.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; padding: 90px 0; border-top: 1px solid var(--line); }
.about h2 { margin: 0; max-width: 720px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .92; letter-spacing: -.06em; text-transform: uppercase; }
.about > p { margin: 35px 0 0; max-width: 570px; font-size: 1.08rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: var(--bg); }
.footer-inner { min-height: 92px; font: 400 .7rem "DM Mono", monospace; text-transform: uppercase; }

@media (max-width: 850px) {
  .hero { padding: 72px 0 45px; }
  .story { grid-template-columns: 1fr; gap: 15px; }
  .story-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
  .story-number { margin: 0; grid-row: 1 / span 2; }
  .story-identity { margin: 0; }
  .story-side { flex-direction: row; align-items: end; }
  .about { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 650px) {
  .header-inner { min-height: 70px; gap: 12px; }
  .header-actions { gap: 10px; }
  .nav { display: none; }
  .language-switcher button { min-width: 37px; padding-inline: 7px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 6.2rem); }
  .hero-tape { gap: 28px; justify-content: flex-start; }
  .hero-tape span:nth-child(3), .hero-tape span:nth-child(4), .hero-tape span:nth-child(6) { display: none; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .brand { font-size: .78rem; }
  .brand-dot { width: 9px; height: 9px; box-shadow: 13px 0 0 var(--acid); margin-right: 13px; }
  .signal { display: none; }
  .story-side { flex-direction: column; align-items: flex-start; }
  .story h2 { font-size: clamp(2.1rem, 11vw, 3.2rem); }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}
