:root {
  color-scheme: dark;
  --ink: #050706;
  --panel: #090d0a;
  --paper: #f2f5ef;
  --acid: #87ff65;
  --acid-rgb: 135, 255, 101;
  --muted: #889087;
  --line: rgba(135, 255, 101, 0.16);
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(var(--acid-rgb), 0.075), transparent 28rem),
    radial-gradient(circle at 88% 50%, rgba(var(--acid-rgb), 0.025), transparent 34rem),
    var(--ink);
  color: var(--paper);
}

body.post-age-locked {
  overflow: hidden;
}

.post-age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 22px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--acid-rgb), 0.12), transparent 48%),
    rgba(4, 5, 4, 0.985);
  place-items: center;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.post-age-gate::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--acid-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--acid-rgb), 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.post-age-gate__window {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(var(--acid-rgb), 0.62);
  background: rgba(8, 7, 8, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 50px rgba(var(--acid-rgb), 0.08);
  animation: post-warning-glitch 4s steps(1, end) infinite;
}

.post-age-gate__bar {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(var(--acid-rgb), 0.28);
  color: rgba(var(--acid-rgb), 0.66);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-age-gate__content {
  padding: clamp(30px, 7vw, 62px);
}

.post-age-gate__label {
  margin: 0 0 20px;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-age-gate h1 {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 9rem);
  letter-spacing: -0.08em;
  line-height: 0.76;
}

.post-age-gate__message {
  max-width: 480px;
  margin: 34px 0 0;
  color: rgba(242, 245, 239, 0.66);
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  line-height: 1.55;
}

.post-age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}

.post-age-gate__confirm,
.post-age-gate__leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(var(--acid-rgb), 0.44);
  background: transparent;
  color: rgba(242, 245, 239, 0.68);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.post-age-gate__confirm {
  background: var(--acid);
  color: #090609;
  font-weight: 500;
}

.post-age-gate__confirm:hover,
.post-age-gate__confirm:focus-visible,
.post-age-gate__leave:hover,
.post-age-gate__leave:focus-visible {
  outline: 1px solid var(--acid);
  outline-offset: 3px;
}

.post-age-gate.is-dismissed {
  visibility: hidden;
  opacity: 0;
}

.archive-page[data-archive-theme="freddys"] {
  --acid: #ff9d4d;
  --acid-rgb: 255, 157, 77;
  --line: rgba(255, 157, 77, 0.16);
}

.archive-page[data-archive-theme="nimo"] {
  --acid: #ffc13b;
  --acid-rgb: 255, 193, 59;
  --line: rgba(255, 193, 59, 0.16);
}

.archive-page[data-archive-theme="under-her-tail"] {
  --acid: #ff72c6;
  --acid-rgb: 255, 114, 198;
  --line: rgba(255, 114, 198, 0.16);
}

button,
input,
kbd {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.archive-grid,
.archive-noise,
.archive-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.archive-grid {
  z-index: 0;
  background-image:
    linear-gradient(rgba(var(--acid-rgb), 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--acid-rgb), 0.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.archive-noise {
  z-index: 20;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.91' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.archive-scanline {
  z-index: 19;
  height: 20%;
  opacity: 0.12;
  background: linear-gradient(to bottom, transparent, rgba(var(--acid-rgb), 0.05), transparent);
  animation: archive-scan 9s linear infinite;
}

.archive-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(242, 245, 239, 0.09);
  background: rgba(5, 7, 6, 0.76);
  backdrop-filter: blur(14px);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.archive-nav a,
.archive-nav button {
  border: 0;
  background: none;
  color: rgba(242, 245, 239, 0.48);
  cursor: pointer;
  text-decoration: none;
  transition: color 180ms ease;
}

.archive-nav a:hover,
.archive-nav a:focus-visible,
.archive-nav button:hover,
.archive-nav button:focus-visible {
  outline: none;
  color: var(--acid);
}

.archive-nav__back {
  justify-self: start;
}

.archive-nav__back span {
  margin-right: 8px;
  color: var(--acid);
}

.archive-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: center;
}

.archive-nav__signal {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 11px rgba(var(--acid-rgb), 0.8);
  animation: archive-pulse 1.8s ease-in-out infinite;
}

.archive-nav__console {
  justify-self: end;
}

.archive-main {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - clamp(32px, 8vw, 112px)));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 140px) 0 clamp(80px, 11vw, 150px);
}

.archive-hero {
  position: relative;
  padding-bottom: clamp(62px, 8vw, 110px);
}

.archive-hero::after {
  position: absolute;
  right: 0;
  bottom: clamp(31px, 4vw, 55px);
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--acid-rgb), 0.8), rgba(var(--acid-rgb), 0.08) 42%, transparent);
  content: "";
}

.archive-hero__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(40px, 7vw, 88px);
  color: rgba(242, 245, 239, 0.3);
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.archive-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: archive-rise 700ms 80ms ease-out both;
}

.archive-hero__eyebrow span {
  font-size: 0.48rem;
}

.archive-hero__title {
  position: relative;
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.6rem, 9.5vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.85;
  text-wrap: balance;
  animation: archive-title-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.archive-hero__title::before,
.archive-hero__title::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
}

.archive-hero__title::before {
  color: var(--acid);
  transform: translateX(2px);
}

.archive-hero__title::after {
  color: #caffba;
  transform: translateX(-2px);
}

.archive-hero__title:hover::before {
  animation: archive-title-glitch 440ms steps(2, end) both;
}

.archive-hero__title:hover::after {
  animation: archive-title-glitch-alt 440ms steps(2, end) both;
}

.archive-hero__lead {
  max-width: 690px;
  margin: clamp(30px, 4vw, 48px) 0 0;
  color: rgba(242, 245, 239, 0.52);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  animation: archive-rise 700ms 180ms ease-out both;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(640px, 100%);
  margin-top: clamp(42px, 6vw, 72px);
  border-top: 1px solid rgba(242, 245, 239, 0.1);
  border-bottom: 1px solid rgba(242, 245, 239, 0.1);
  animation: archive-rise 700ms 260ms ease-out both;
}

.archive-stats div {
  display: grid;
  gap: 5px;
  padding: 16px 19px;
}

.archive-stats div + div {
  border-left: 1px solid rgba(242, 245, 239, 0.1);
}

.archive-stats strong {
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
}

.archive-stats span {
  color: rgba(242, 245, 239, 0.34);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-browser {
  overflow: hidden;
  border: 1px solid rgba(var(--acid-rgb), 0.28);
  border-radius: 3px;
  background: rgba(7, 10, 8, 0.92);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5), 0 0 45px rgba(var(--acid-rgb), 0.04);
  animation: archive-window-in 800ms 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.archive-browser__bar,
.post-window__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(var(--acid-rgb), 0.15);
  background: rgba(var(--acid-rgb), 0.035);
  color: rgba(242, 245, 239, 0.28);
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-browser__bar > span:nth-child(2),
.post-window__bar > span:nth-child(2) {
  color: rgba(var(--acid-rgb), 0.65);
}

.archive-browser__bar > span:last-child,
.post-window__bar > span:last-child {
  justify-self: end;
}

.window-lights {
  display: flex;
  gap: 5px;
}

.window-lights i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(var(--acid-rgb), 0.55);
  border-radius: 50%;
}

.window-lights i:first-child {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(var(--acid-rgb), 0.7);
}

.archive-browser__tools {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 330px);
  gap: 24px;
  align-items: center;
  padding: 22px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid rgba(242, 245, 239, 0.08);
}

.archive-path {
  display: flex;
  gap: 9px;
  align-items: center;
  color: rgba(242, 245, 239, 0.27);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.archive-path strong {
  color: rgba(242, 245, 239, 0.64);
  font-weight: 400;
}

.archive-path i {
  color: var(--acid);
  font-style: normal;
}

.archive-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(242, 245, 239, 0.11);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(242, 245, 239, 0.27);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.archive-search:focus-within {
  border-color: rgba(var(--acid-rgb), 0.5);
  box-shadow: 0 0 18px rgba(var(--acid-rgb), 0.05);
}

.archive-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
}

.archive-search input::placeholder {
  color: rgba(242, 245, 239, 0.26);
}

.archive-search kbd {
  padding: 2px 4px;
  border: 1px solid rgba(242, 245, 239, 0.1);
  border-radius: 2px;
  color: rgba(242, 245, 239, 0.24);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
}

.archive-project-filters {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px clamp(18px, 3vw, 34px) 10px;
}

.archive-project-filters > span {
  color: rgba(242, 245, 239, 0.28);
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-project-filters > div,
.archive-filters {
  display: flex;
  gap: 8px;
}

.archive-filters {
  padding: 0 clamp(18px, 3vw, 34px) 22px;
  border-bottom: 1px solid rgba(242, 245, 239, 0.08);
}

.archive-project-filters button,
.archive-filters button {
  padding: 7px 10px;
  border: 1px solid rgba(242, 245, 239, 0.09);
  background: transparent;
  color: rgba(242, 245, 239, 0.35);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.archive-project-filters button:hover,
.archive-project-filters button:focus-visible,
.archive-project-filters button.is-active,
.archive-filters button:hover,
.archive-filters button:focus-visible,
.archive-filters button.is-active {
  border-color: rgba(var(--acid-rgb), 0.5);
  outline: none;
  background: rgba(var(--acid-rgb), 0.07);
  color: var(--acid);
}

.archive-list {
  min-height: 370px;
}

.archive-entry {
  --entry-accent: #87ff65;
  --entry-accent-rgb: 135, 255, 101;
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) minmax(120px, 0.35fr) auto;
  gap: clamp(16px, 3vw, 42px);
  align-items: center;
  min-height: 132px;
  padding: 24px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid rgba(242, 245, 239, 0.075);
  text-decoration: none;
  transition: background 180ms ease, padding-left 220ms ease;
}

.archive-entry[data-archive-theme="freddys"] {
  --entry-accent: #ff9d4d;
  --entry-accent-rgb: 255, 157, 77;
}

.archive-entry[data-archive-theme="nimo"] {
  --entry-accent: #ffc13b;
  --entry-accent-rgb: 255, 193, 59;
}

.archive-entry[data-archive-theme="under-her-tail"] {
  --entry-accent: #ff72c6;
  --entry-accent-rgb: 255, 114, 198;
}

.archive-entry:last-child {
  border-bottom: 0;
}

.archive-entry::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--entry-accent);
  box-shadow: 0 0 14px rgba(var(--entry-accent-rgb), 0.55);
  content: "";
  opacity: 0;
  transform: scaleY(0.25);
  transition: opacity 160ms ease, transform 220ms ease;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  padding-left: calc(clamp(18px, 3vw, 34px) + 7px);
  outline: none;
  background: linear-gradient(90deg, rgba(var(--entry-accent-rgb), 0.06), transparent 72%);
}

.archive-entry:hover::before,
.archive-entry:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.archive-entry:hover .archive-entry__title,
.archive-entry:focus-visible .archive-entry__title {
  color: var(--entry-accent);
}

.archive-entry:hover .archive-entry__arrow,
.archive-entry:focus-visible .archive-entry__arrow {
  border-color: var(--entry-accent);
  color: var(--entry-accent);
  transform: translateX(3px);
}

.archive-entry__number {
  color: rgba(var(--entry-accent-rgb), 0.34);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.archive-entry__main {
  min-width: 0;
}

.archive-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(242, 245, 239, 0.3);
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.archive-entry__category {
  color: var(--entry-accent);
}

.archive-entry__title {
  margin: 0;
  color: rgba(242, 245, 239, 0.92);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.06;
  transition: color 180ms ease;
}

.archive-entry__excerpt {
  margin: 10px 0 0;
  color: rgba(242, 245, 239, 0.38);
  font-size: 0.8rem;
  line-height: 1.55;
}

.archive-entry__project {
  display: grid;
  gap: 5px;
  color: rgba(242, 245, 239, 0.3);
  font-family: "DM Mono", monospace;
  font-size: 0.53rem;
  text-transform: uppercase;
}

.archive-entry__project strong {
  overflow: hidden;
  color: rgba(242, 245, 239, 0.62);
  font-size: 0.59rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-entry__arrow {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--entry-accent-rgb), 0.18);
  color: rgba(var(--entry-accent-rgb), 0.44);
  place-items: center;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.archive-loading,
.archive-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 370px;
  color: rgba(242, 245, 239, 0.34);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-loading span {
  width: 4px;
  height: 4px;
  margin-right: 2px;
  background: var(--acid);
  animation: archive-loading 900ms ease-in-out infinite alternate;
}

.archive-loading span:nth-child(2) {
  animation-delay: 120ms;
}

.archive-loading span:nth-child(3) {
  margin-right: 12px;
  animation-delay: 240ms;
}

.archive-corrupt {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 116px;
  margin-top: 22px;
  padding: 22px 30px;
  overflow: hidden;
  border: 1px dashed rgba(var(--acid-rgb), 0.13);
  background: rgba(7, 10, 8, 0.48);
  color: rgba(242, 245, 239, 0.18);
  user-select: none;
}

.archive-corrupt::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(var(--acid-rgb), 0.015) 15px 16px);
  content: "";
  pointer-events: none;
}

.archive-corrupt__index,
.archive-corrupt__lock {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.archive-corrupt div {
  display: grid;
  gap: 7px;
}

.archive-corrupt strong {
  position: relative;
  width: fit-content;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  filter: blur(1.1px);
}

.archive-corrupt strong::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  color: rgba(var(--acid-rgb), 0.18);
  clip-path: inset(44% 0 38% 0);
  transform: translateX(5px);
  animation: archive-corrupt 2.4s steps(2, end) infinite;
}

.archive-corrupt small {
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
}

.archive-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 26px clamp(18px, 4vw, 58px);
  border-top: 1px solid rgba(242, 245, 239, 0.07);
  color: rgba(242, 245, 239, 0.25);
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(var(--acid-rgb), 0.7);
}

.post-main {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - clamp(32px, 8vw, 112px)));
  min-height: calc(100svh - 64px);
  margin: 0 auto;
  padding: clamp(74px, 8vw, 110px) 0 clamp(80px, 10vw, 130px);
}

.post-window__copy {
  justify-self: end;
  padding: 5px 7px;
  border: 1px solid rgba(var(--acid-rgb), 0.16);
  background: transparent;
  color: rgba(242, 245, 239, 0.32);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.post-window__copy:hover,
.post-window__copy:focus-visible {
  border-color: rgba(var(--acid-rgb), 0.62);
  outline: none;
  background: rgba(var(--acid-rgb), 0.06);
  color: var(--acid);
}

.post-loading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 62svh;
  color: rgba(242, 245, 239, 0.38);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-loading__cursor {
  width: 7px;
  height: 1em;
  background: var(--acid);
  animation: archive-caret 800ms steps(1, end) infinite;
}

.post-window {
  overflow: hidden;
  border: 1px solid rgba(var(--acid-rgb), 0.28);
  background: rgba(7, 10, 8, 0.94);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.56), 0 0 50px rgba(var(--acid-rgb), 0.04);
  animation: archive-window-in 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
}

.post-document {
  min-width: 0;
  padding: clamp(38px, 6vw, 80px) clamp(24px, 6vw, 84px) clamp(56px, 8vw, 100px);
}

.post-header {
  padding-bottom: clamp(42px, 6vw, 68px);
  border-bottom: 1px solid rgba(242, 245, 239, 0.09);
}

.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 24px;
  color: rgba(242, 245, 239, 0.32);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-header__meta span:first-child {
  color: var(--acid);
}

.post-header h1 {
  position: relative;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 0.92;
  text-wrap: balance;
}

.post-header h1::before,
.post-header h1::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
}

.post-header h1::before {
  color: var(--acid);
}

.post-header h1::after {
  color: #d6ffca;
}

.post-header h1:hover::before {
  animation: archive-title-glitch 420ms steps(2, end) both;
}

.post-header h1:hover::after {
  animation: archive-title-glitch-alt 420ms steps(2, end) both;
}

.post-header > p {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(242, 245, 239, 0.48);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.post-project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 12px;
  border: 1px solid rgba(var(--acid-rgb), 0.22);
  color: rgba(var(--acid-rgb), 0.72);
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.post-project-link:hover,
.post-project-link:focus-visible {
  border-color: var(--acid);
  outline: none;
  background: rgba(var(--acid-rgb), 0.06);
  color: var(--acid);
}

.markdown-body {
  max-width: 760px;
  padding-top: clamp(42px, 6vw, 70px);
  color: rgba(242, 245, 239, 0.73);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.82;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body h2,
.markdown-body h3 {
  color: var(--paper);
  letter-spacing: -0.045em;
  line-height: 1.12;
  scroll-margin-top: 90px;
  text-wrap: balance;
}

.markdown-body h2 {
  margin: 2.3em 0 0.72em;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.markdown-body h3 {
  margin: 2em 0 0.65em;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.markdown-body p {
  margin: 1.35em 0;
}

.markdown-body strong {
  color: var(--paper);
  font-weight: 700;
}

.markdown-body em {
  color: rgba(var(--acid-rgb), 0.75);
}

.markdown-body a {
  color: var(--acid);
  text-decoration-color: rgba(var(--acid-rgb), 0.35);
  text-underline-offset: 4px;
}

.markdown-body a:hover,
.markdown-body a:focus-visible {
  outline: none;
  text-decoration-color: var(--acid);
}

.markdown-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 2px solid var(--acid);
  background: rgba(var(--acid-rgb), 0.045);
  color: rgba(242, 245, 239, 0.84);
  font-size: 1.08em;
}

.markdown-body blockquote p {
  margin: 0;
}

.markdown-body ul,
.markdown-body ol {
  display: grid;
  gap: 9px;
  margin: 1.5em 0;
  padding-left: 1.35em;
}

.markdown-body li::marker {
  color: var(--acid);
  font-family: "DM Mono", monospace;
}

.markdown-body code {
  padding: 2px 6px;
  border: 1px solid rgba(var(--acid-rgb), 0.13);
  background: rgba(var(--acid-rgb), 0.045);
  color: rgba(var(--acid-rgb), 0.82);
  font-family: "DM Mono", monospace;
  font-size: 0.86em;
}

.markdown-body pre {
  margin: 2em 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid rgba(var(--acid-rgb), 0.16);
  background: #030504;
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.65;
}

.markdown-body hr {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: linear-gradient(90deg, rgba(var(--acid-rgb), 0.5), transparent);
}

.markdown-body figure {
  margin: 2.5em 0;
}

.markdown-body figure img {
  display: block;
  width: 100%;
  border: 1px solid rgba(var(--acid-rgb), 0.22);
  filter: saturate(0.78) contrast(1.06);
}

.markdown-body figcaption {
  margin-top: 9px;
  color: rgba(242, 245, 239, 0.3);
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.markdown-body .markdown-video {
  margin: 2.5em 0;
  padding: 7px;
  border: 1px solid rgba(var(--acid-rgb), 0.24);
  background: rgba(var(--acid-rgb), 0.035);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.markdown-body .markdown-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.post-rail {
  padding: 38px 25px;
  border-left: 1px solid rgba(242, 245, 239, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.post-rail__block {
  position: sticky;
  top: 92px;
}

.post-rail__block > span {
  display: block;
  margin-bottom: 17px;
  color: rgba(242, 245, 239, 0.28);
  font-family: "DM Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.post-rail nav {
  display: grid;
  gap: 12px;
}

.post-rail nav a {
  color: rgba(242, 245, 239, 0.38);
  font-size: 0.72rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.post-rail nav a:hover,
.post-rail nav a:focus-visible {
  outline: none;
  color: var(--acid);
  transform: translateX(3px);
}

.post-rail nav a[data-level="3"] {
  padding-left: 10px;
  color: rgba(242, 245, 239, 0.27);
  font-size: 0.65rem;
}

.post-rail__status {
  position: static;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 245, 239, 0.08);
}

.post-rail__status strong,
.post-rail__status small {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  font-weight: 400;
  text-transform: uppercase;
}

.post-rail__status strong {
  color: rgba(var(--acid-rgb), 0.65);
}

.post-rail__status strong i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(var(--acid-rgb), 0.65);
}

.post-rail__status small {
  margin-top: 7px;
  color: rgba(242, 245, 239, 0.23);
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(242, 245, 239, 0.08);
}

.post-pagination a {
  display: grid;
  gap: 7px;
  min-height: 106px;
  padding: 25px clamp(22px, 4vw, 48px);
  text-decoration: none;
  transition: background 180ms ease;
}

.post-pagination a + a {
  border-left: 1px solid rgba(242, 245, 239, 0.08);
  text-align: right;
}

.post-pagination a:hover,
.post-pagination a:focus-visible {
  outline: none;
  background: rgba(var(--acid-rgb), 0.045);
}

.post-pagination span {
  color: rgba(var(--acid-rgb), 0.55);
  font-family: "DM Mono", monospace;
  font-size: 0.51rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-pagination strong {
  color: rgba(242, 245, 239, 0.64);
  font-size: 0.85rem;
  font-weight: 500;
}

.post-error {
  display: grid;
  min-height: 65svh;
  padding: 70px 30px;
  border: 1px solid rgba(var(--acid-rgb), 0.2);
  place-items: center;
  align-content: center;
  text-align: center;
}

.post-error > span {
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}

.post-error h1 {
  margin: 22px 0 0;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  letter-spacing: -0.06em;
}

.post-error p {
  margin: 20px 0 0;
  color: rgba(242, 245, 239, 0.4);
}

.post-error a {
  margin-top: 30px;
  padding: 10px 13px;
  border: 1px solid rgba(var(--acid-rgb), 0.32);
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes archive-scan {
  from { transform: translateY(-120%); }
  to { transform: translateY(600%); }
}

@keyframes archive-pulse {
  50% { opacity: 0.35; }
}

@keyframes archive-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes archive-title-in {
  from { opacity: 0; filter: blur(9px); transform: translateY(22px) skewX(-3deg); }
  64% { filter: blur(0); transform: translateY(0) skewX(0); }
  72% { transform: translateX(5px); }
  78% { transform: translateX(-2px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes archive-window-in {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes archive-title-glitch {
  0%, 100% { opacity: 0; clip-path: inset(0); }
  18% { opacity: 0.7; clip-path: inset(12% 0 66% 0); transform: translate(5px, -2px); }
  42% { opacity: 0.45; clip-path: inset(68% 0 10% 0); transform: translate(-4px, 2px); }
  72% { opacity: 0.6; clip-path: inset(42% 0 43% 0); transform: translate(3px, 0); }
}

@keyframes archive-title-glitch-alt {
  0%, 100% { opacity: 0; clip-path: inset(0); }
  24% { opacity: 0.45; clip-path: inset(58% 0 18% 0); transform: translate(-5px, 1px); }
  54% { opacity: 0.6; clip-path: inset(20% 0 64% 0); transform: translate(4px, -1px); }
  80% { opacity: 0.4; clip-path: inset(78% 0 8% 0); transform: translate(-3px, 0); }
}

@keyframes archive-loading {
  to { opacity: 0.25; transform: translateY(-4px); }
}

@keyframes archive-corrupt {
  0%, 92%, 100% { opacity: 0; transform: translateX(0); }
  94% { opacity: 1; transform: translateX(7px); }
  97% { opacity: 0.7; transform: translateX(-4px); }
}

@keyframes archive-caret {
  50% { opacity: 0; }
}

@keyframes post-warning-glitch {
  0%, 91%, 100% { transform: none; }
  92% { transform: translateX(-2px); }
  93% { transform: translateX(3px); }
  94% { transform: none; }
}

@media (max-width: 880px) {
  .archive-entry {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .archive-entry__project {
    display: none;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  .post-age-gate {
    padding: 14px;
  }

  .post-age-gate__content {
    padding: 30px 22px;
  }

  .post-age-gate__actions {
    flex-direction: column;
  }

  .post-age-gate__confirm,
  .post-age-gate__leave {
    display: grid;
    width: 100%;
    place-items: center;
  }

  .archive-nav {
    grid-template-columns: 1fr auto;
    min-height: 58px;
  }

  .archive-nav__brand {
    display: none;
  }

  .archive-main,
  .post-main {
    width: calc(100% - 28px);
  }

  .archive-main {
    padding-top: 56px;
  }

  .archive-hero__meta {
    margin-bottom: 50px;
  }

  .archive-hero__title {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .archive-stats div {
    padding: 13px 10px;
  }

  .archive-stats span {
    font-size: 0.47rem;
  }

  .archive-browser__tools {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .archive-filters {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .archive-project-filters {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .archive-project-filters > div {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .archive-project-filters > div::-webkit-scrollbar,
  .archive-filters::-webkit-scrollbar {
    display: none;
  }

  .archive-project-filters button,
  .archive-filters button {
    flex: none;
  }

  .archive-entry {
    grid-template-columns: 1fr auto;
    gap: 15px;
    min-height: 142px;
  }

  .archive-entry__number {
    display: none;
  }

  .archive-entry__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .archive-corrupt {
    grid-template-columns: 1fr auto;
    padding: 20px;
  }

  .archive-corrupt__index {
    display: none;
  }

  .archive-footer {
    display: grid;
  }

  .post-document {
    padding-right: 21px;
    padding-left: 21px;
  }

  .post-header h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .post-pagination {
    grid-template-columns: 1fr;
  }

  .post-pagination a + a {
    border-top: 1px solid rgba(242, 245, 239, 0.08);
    border-left: 0;
  }
}

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