:root {
  --bg: #080808;
  --panel: #101212;
  --panel-soft: #0c0f0f;
  --text: #f4f4f4;
  --muted: #b9b9b9;
  --cyan: #00ffff;
  --cyan-soft: #76ffff;
  --violet: #a78bfa;
  --line: rgba(255, 255, 255, 0.15);
  --max: 74rem;
  --reading: 48rem;
  --focus: 0 0 0 3px rgba(0, 255, 255, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 255, 255, 0.06), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.65;
}

body::after {
  content: "01010111001101000101010001010111";
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  overflow: hidden;
  color: rgba(0, 255, 255, 0.07);
  font-size: 10vw;
  pointer-events: none;
}

body.binary-flash::after {
  display: grid;
  animation: binary-fade 0.56s ease-in-out forwards;
}

img { max-width: 100%; }

a {
  color: var(--cyan);
  text-underline-offset: 0.22em;
}

a:visited { color: var(--violet); }
a:hover { color: var(--cyan-soft); text-shadow: 0 0 9px rgba(0, 255, 255, 0.48); }

button,
input { font: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-180%);
  padding: 0.6rem 0.8rem;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
}

.skip-link:focus { transform: none; }

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  min-height: 4.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand:visited { color: #fff; }
.brand:hover { color: var(--cyan); }
.brand-mark { color: var(--cyan); }
.brand-tagline { color: var(--muted); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.7rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  overflow: hidden;
  padding: 0.55rem 0.75rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--cyan); }
.site-nav a:hover::before,
.site-nav a[aria-current="page"]::before { transform: scaleX(1); }
.site-nav a.flicker { animation: flicker 0.18s steps(2, end) 1; }

.hero {
  min-height: min(70vh, 45rem);
  display: grid;
  place-items: end start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.92)),
    url("hero.jpg") no-repeat center 48% / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 65%);
}

.hero-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 8rem 0 4.5rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-shadow: 0 4px 28px #000;
}

.hero .tagline {
  margin: 1.35rem 0 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.page-shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.reading-shell { width: min(var(--reading), calc(100% - 2.5rem)); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(15rem, 0.7fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.intro-copy {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: #ededed;
}

.intro-copy p { margin: 0 0 1rem; }

.manifesto {
  margin: 0;
  padding: 1.35rem 0 1.35rem 1.4rem;
  border-left: 3px solid var(--cyan);
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 5rem 0 1.7rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading a { font-size: 0.9rem; }

.post-list { display: grid; gap: 1rem; }

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 0.25fr) minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.15rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.58);
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.07);
}

.post-card[hidden] { display: none; }
.post-meta { margin: 0; color: var(--muted); font-size: 0.82rem; }
.post-card h3 { margin: 0 0 0.65rem; font-size: clamp(1.25rem, 2.7vw, 1.75rem); line-height: 1.25; }
.post-card h3 a { color: #fff; text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--cyan-soft); }
.post-card p { margin: 0; color: #ddd; }
.post-arrow { color: var(--cyan); font-size: 1.4rem; transition: transform 160ms ease; }
.post-card:hover .post-arrow { transform: translateX(0.3rem); }

.page-intro { margin-bottom: 2.5rem; }
.page-intro .kicker { margin-bottom: 0.65rem; }
.page-intro p:not(.kicker) { max-width: 48rem; color: #ddd; font-size: 1.08rem; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 2.2rem 0 1.5rem;
}

.filter-label { display: grid; gap: 0.45rem; color: var(--muted); font-size: 0.82rem; }
.filter-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #0d1111;
  color: #fff;
  padding: 0.82rem 0.95rem;
}
.filter-input::placeholder { color: #888; }
.result-count { min-width: 10rem; margin: 1.5rem 0 0; color: var(--muted); font-size: 0.88rem; text-align: right; }
.empty-state { padding: 2rem; border: 1px dashed var(--line); color: var(--muted); }

.article-header { margin: 1rem 0 3.2rem; }
.article-header .post-meta { margin-bottom: 0.9rem; }
.article-header h1 { margin: 0 0 1.2rem; font-size: clamp(2.45rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -0.055em; }
.article-dek { margin: 0; color: #ddd; font-size: clamp(1.05rem, 2.3vw, 1.3rem); line-height: 1.55; }

.article-tools {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.quiet-button {
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}
.quiet-button:hover { border-color: var(--cyan); color: var(--cyan); }

.post-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.2rem);
  line-height: 1.82;
}
.post-body p { margin: 0 0 1.4em; }
.post-body ul { margin: -0.35em 0 1.6em; padding-left: 1.4em; }
.post-body li { margin: 0.35em 0; padding-left: 0.2em; }
.post-body h2 {
  margin: 2.4em 0 0.75em;
  color: var(--cyan-soft);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.25;
}
.post-body blockquote {
  margin: 2.2em 0;
  padding: 0.3rem 0 0.3rem 1.4rem;
  border-left: 3px solid var(--cyan);
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2em;
  line-height: 1.5;
}
.post-body blockquote p { margin: 0; }

.issue-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.issue-nav a { padding: 1rem; border: 1px solid var(--line); border-radius: 0.35rem; text-decoration: none; }
.issue-nav a:last-child { text-align: right; }
.issue-nav .nav-label { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }

.about-card {
  display: grid;
  grid-template-columns: 0.3fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.about-card h2 { margin: 0; font-size: 1.15rem; color: var(--cyan); }
.about-copy { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.about-copy p { margin: 0 0 1.2em; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 2.8rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: #8f8f8f;
  font-size: 0.8rem;
}
.footer-inner a { color: #aaa; }

@keyframes binary-fade {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.18; transform: scale(1.015); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 4rem; }
  .brand-tagline { display: none; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.97);
  }
  .site-nav[data-open="true"] { display: grid; }
  .site-nav a { padding: 0.75rem; }
  .hero { min-height: 34rem; background-position: 56% 50%; }
  .intro-grid,
  .about-card { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr auto; }
  .post-card .post-meta { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: 1fr; }
  .result-count { margin: 0; text-align: left; }
  .issue-nav { grid-template-columns: 1fr; }
  .issue-nav a:last-child { text-align: left; }
  .footer-inner { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .header-inner,
  .hero-inner,
  .page-shell,
  .reading-shell,
  .footer-inner { width: min(100% - 1.5rem, var(--max)); }
  .hero h1 { font-size: clamp(3.3rem, 20vw, 5.2rem); }
  .page-shell { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
