:root {
  --bg: #141210;
  --bg-2: #1c1916;
  --ink: #f4efe6;
  --muted: #a79d90;
  --line: rgba(244, 239, 230, 0.14);
  --accent: #ff5a36;
  --paid: #e2b657;
  --free: #8fbf9f;
  --cams: #ff5a36;
  --credits: #8eb4d4;
  --max: 760px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
}
a { color: inherit; }
a:hover { color: var(--accent); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: rgba(20, 18, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.search { flex: 1; }
.search input, .stack input, .stack textarea, .stack select {
  width: 100%;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}
.search input:focus, .stack input:focus, .stack textarea:focus, .stack select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.mark {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 3px 6px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 20px 80px; }
.intro h1, .prose h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.kicker, .lede, .shelf-head p, .meta, .foot, .blurb, .prose p, .log, .jump a {
  color: var(--muted);
}
.kicker { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.kicker a { color: var(--muted); }
.intro p:last-child { margin: 0; max-width: 38em; }

.jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 0 8px;
  scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: 0 0 auto;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.jump a:hover { border-color: var(--accent); color: var(--ink); }

.shelf { padding-top: 34px; }
.shelf-head, .name-line, .foot nav, .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.shelf-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.shelf-head h2 { margin: 0; font-size: 22px; font-family: var(--serif); font-weight: 500; }
.shelf-head h2 a { text-decoration: none; }
.shelf-head p { margin: 4px 0 0; }
.all { color: var(--accent); text-decoration: none; white-space: nowrap; font-size: 14px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rank {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  padding-top: 1px;
}
.name { font-size: 18px; text-decoration: none; }
.review { margin-left: auto; color: var(--muted); font-size: 13px; }
.blurb { margin: 4px 0 0; }
.badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
}
.badge-free { color: var(--free); }
.badge-paid { color: var(--paid); }
.badge-cams { color: var(--cams); }
.badge-credits { color: var(--credits); }

.prose h1 { margin-top: 8px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 22px 0 8px; }
.prose a { color: var(--accent); }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }
.lede { font-size: 18px; }
.visit {
  display: inline-block;
  background: var(--accent);
  color: #1a0d09 !important;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 650;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.log { width: 100%; border-collapse: collapse; margin-top: 18px; }
.log th, .log td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.log a { text-decoration: none; }
.stack { display: grid; gap: 12px; max-width: 40em; }
.stack label { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
button, .texty {
  font: inherit;
  background: var(--accent);
  color: #1a0d09;
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  width: fit-content;
  cursor: pointer;
}
.texty { background: transparent; color: var(--muted); padding: 0; }
.warn { color: var(--accent); }
.ok { color: var(--free); }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px 40px;
  font-size: 14px;
}
.foot nav { justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
.foot a { color: var(--muted); text-decoration: none; }

.agebar[hidden] { display: none !important; }
.agebar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.agebar p { margin: 0; }

@media (max-width: 640px) {
  .intro h1, .prose h1 { font-size: 34px; }
  .top { padding: 12px; gap: 10px; }
  .search { min-width: 0; }
  .name-line { flex-wrap: wrap; }
  .review { margin-left: 0; }
  .split { grid-template-columns: 1fr; }
  .agebar:not([hidden]) { display: grid; }
  .shelf-head { align-items: flex-start; }
}
