@font-face {
  font-family: "Archivo Black";
  src: url("/static/fonts/archivo-black-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/static/fonts/literata-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/static/fonts/literata-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #14090d;
  --bg-2: #241018;
  --ink: #f6e7df;
  --muted: #cbb2ad;
  --pink: #ff4d8d;
  --pink-2: #ff8fb9;
  --paper: #f6e7df;
  --ink-2: #1a0c10;
  --yellow: #ffe566;
  --mint: #c6ff4a;
  --line: rgba(255, 77, 141, 0.55);
  --shadow: 6px 6px 0 #ff4d8d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 77, 141, 0.16), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(255, 229, 102, 0.08), transparent 24%),
    var(--bg);
  color: var(--ink);
  font-family: "Literata", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.55;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.35;
}
a { color: var(--pink-2); }
a:hover { color: var(--yellow); }
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(3rem, 8vw, 6.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 0.8em; }
.skip {
  position: absolute;
  left: -999px;
  background: var(--yellow);
  color: var(--ink-2);
  padding: 0.4rem 0.7rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 5; }

.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(20, 9, 13, 0.9);
  border-bottom: 2px solid var(--pink);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}
.gum { width: 42px; height: 42px; }
.nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; }
.nav a, .text {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav a:hover, .text:hover { color: var(--pink); }
main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 3rem; }
.foot {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.kicker, .meta, .fine {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-2);
}
.lede, .pitch { font-size: 1.2rem; max-width: 42rem; }
.question { font-style: italic; color: var(--paper); }
.question.big { font-size: clamp(1.4rem, 3vw, 2rem); max-width: 40rem; }
.hero { padding: 1.5rem 0 0.5rem; }
.hero-actions, .split-auth { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-block;
  background: var(--pink);
  color: #1a0c10;
  text-decoration: none;
  border: 2px solid var(--pink);
  padding: 0.65rem 0.9rem;
  font-family: "Archivo Black", sans-serif;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: #1a0c10; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 0.4rem 0.65rem; box-shadow: 3px 3px 0 var(--pink); font-size: 0.95rem; }
.stack-line { margin-top: 1rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin: 0.15rem 0.2rem 0.15rem 0;
  text-decoration: none;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.badge i { width: 0.55rem; height: 0.55rem; border-radius: 50%; display: inline-block; background: var(--pink); }
.band { margin-top: 2rem; }
.band-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card {
  background: var(--bg-2);
  border: 2px solid var(--pink);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.1rem;
  min-height: 100%;
}
.card .index { font-family: "Archivo Black", sans-serif; font-size: 2rem; color: var(--pink); margin: 0; }
.card h3 { font-size: 1.7rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--yellow); }
.fit { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.fit.yes, .check.yes .verdict { color: var(--mint); }
.fit.no, .check.no .verdict { color: var(--yellow); }
.panel, .empty {
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.verdict { font-family: "Archivo Black", sans-serif; font-size: 2rem; line-height: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li { margin: 0.35rem 0; }
.pill, .stamp, .sample, .ever {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill, .stamp {
  display: inline-block;
  border: 1px solid var(--pink);
  padding: 0.1rem 0.4rem;
  transform: rotate(-2deg);
}
.pill.ready, .pill.library, .pill.alternate, .pill.other_provider, .stamp.yes { border-color: var(--mint); color: var(--mint); }
.pill.rent, .pill.needs_library, .pill.needs_provider, .stamp.ghost { border-color: var(--yellow); color: var(--yellow); }
.sample { color: var(--yellow); font-style: normal; }
.ever { color: var(--mint); font-style: normal; }
.chapters { list-style: none; padding: 0; }
.chapters a {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.chapters .num { font-family: "Archivo Black", sans-serif; color: var(--pink); font-size: 1.4rem; }
.chapters em { display: block; font-style: normal; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; }
.paper {
  background: var(--paper);
  color: var(--ink-2);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.paper .kicker { color: var(--pink); }
.paper a, .next a { margin-right: 0.4rem; }
.item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  border-top: 2px solid var(--line);
  padding: 1.1rem 0;
}
.item.done { opacity: 0.82; }
.poster {
  background: hsl(var(--h) 45% 22%);
  min-height: 180px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  color: var(--paper);
}
.poster span, .poster em { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; text-transform: uppercase; }
.poster strong { font-family: "Archivo Black", sans-serif; font-size: 1.15rem; line-height: 1; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.by { color: var(--muted); }
blockquote {
  margin: 0.4rem 0 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--pink);
}
.ladder { background: rgba(0,0,0,0.25); padding: 0.7rem 0.8rem; margin-bottom: 0.7rem; }
.ladder ol { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.ladder li { margin: 0.35rem 0; }
.ladder .blocked { opacity: 0.7; }
.out { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
.bar { height: 8px; background: #3a222c; margin: 0.3rem 0 0.6rem; }
.bar span { display: block; height: 100%; background: var(--pink); }
.narrow { max-width: 46rem; }
.stack-list { list-style: none; padding: 0; }
.stack-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}
.stack-form label, .inline-form { display: block; margin: 0.55rem 0; }
.stack-form input, .stack-form textarea, .stack-form select, .inline-form input, .inline-form select {
  width: 100%;
  margin-top: 0.25rem;
  background: #10080b;
  color: var(--ink);
  border: 2px solid var(--line);
  padding: 0.45rem 0.5rem;
  font: inherit;
}
.inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: end; }
.inline-form input, .inline-form select { width: auto; margin-top: 0; }
.check { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; }
.split-auth { align-items: start; }
.split-auth > div { flex: 1 1 260px; }
.plain { padding-left: 1.1rem; }
.edit-chapter { border-top: 2px solid var(--pink); margin-top: 1.5rem; padding-top: 1rem; }
.edit-item { margin: 0.6rem 0; background: var(--bg-2); padding: 0.6rem 0.8rem; }
.flash { width: min(1120px, calc(100% - 2rem)); margin: 0.6rem auto; padding: 0.5rem 0.7rem; background: var(--bg-2); border: 2px solid var(--mint); }
.flash-bad { border-color: var(--yellow); }
button.text { color: var(--pink-2); }

@media (max-width: 720px) {
  .item { grid-template-columns: 1fr; }
  .poster { min-height: 120px; }
  .top { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 2.7rem; }
  .stack-list li { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
