:root {
  color-scheme: dark;
  --bg: #070708;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #2c2c31;
  --link: #ff4d63;
  --accent: #e31937;
  --mark: #5a1822;
  --mark-text: #ffffff;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f5;
  --text: #18181b;
  --muted: #52525b;
  --line: #d4d4d8;
  --link: #c01030;
  --accent: #e31937;
  --mark: #f6c9d0;
  --mark-text: #18181b;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.25rem;
  padding: 1.75rem 0 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--accent);
  display: inline-block;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  align-items: baseline;
}

.nav a,
.text-button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.15rem 0;
  font: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover,
.text-button:hover { color: var(--text); }

main { padding-bottom: 1rem; }

h1, h2, h3 {
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
}

h1 a { color: inherit; text-decoration: none; }

h1 a:hover { color: var(--link); }

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.kicker a { color: inherit; text-decoration: none; }

.kicker a:hover { color: var(--text); }

.kicker-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 650;
  margin-right: 0.55rem;
}

.covers {
  margin: 0;
  color: var(--muted);
}

.lede {
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.coming {
  margin: 2rem 0 0.5rem;
  padding: 1.35rem 0 0.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coming h2 {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coming ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coming li {
  margin: 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.coming li:first-child {
  border-top: 0;
  padding-top: 0;
}

.coming li.unconfirmed {
  box-shadow: inset 2px 0 0 var(--accent);
  padding-left: 0.85rem;
}

.coming li[hidden],
.coming[hidden] { display: none; }

.prose {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: 1.2rem;
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose p { margin: 1rem 0; }

.prose ul,
.prose ol { padding-left: 1.2rem; }

.prose li { margin: 0.55rem 0; padding-left: 0.2rem; }

.prose li::marker { color: var(--muted); }

.prose a {
  color: var(--link);
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
}

.permalink { margin: 2rem 0 0; }

.permalink a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

.archive { margin-top: 3.5rem; }

.archive > h2,
.stats > h2 {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.archive-item time {
  color: var(--muted);
  font-size: 0.88rem;
}

.archive-item h2,
.archive-item h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 620;
}

.archive-item a { color: inherit; text-decoration: none; }

.archive-item a:hover { color: var(--link); }

.archive-item p { margin: 0; }

.snippet {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

mark {
  background: var(--mark);
  color: var(--mark-text);
  padding: 0 0.12em;
}

.empty { color: var(--muted); }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
}

.pager-slot.next { text-align: right; }

.pager-slot.next a { align-items: flex-end; }

.pager-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pager-title { font-weight: 620; }

.pager time { color: var(--muted); font-size: 0.88rem; }

.pager a:hover .pager-title { color: var(--link); }

.stats {
  margin: 2rem 0;
  padding: 0.2rem 0 0.4rem;
}

.stat-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 10rem) 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0;
}

.stat-name { font-size: 0.95rem; }

.stat-track {
  display: block;
  height: 0.35rem;
  background: var(--line);
}

.stat-fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.stat-value {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-table th,
.stat-table td {
  text-align: left;
  padding: 0.45rem 0.8rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 450;
  vertical-align: top;
}

.stat-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-form { margin: 1.25rem 0 0.5rem; }

.search-form input {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 1.35rem;
  padding: 0.55rem 0;
}

.search-form input::placeholder { color: var(--muted); opacity: 1; }

.search-status {
  min-height: 1.4em;
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.4rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p { margin: 0; }

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

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .wrap { width: min(44rem, calc(100% - 1.5rem)); }

  .masthead { padding-top: 1.25rem; }

  .nav { margin-left: 0; width: 100%; }

  .pager { grid-template-columns: 1fr; gap: 1rem; }

  .pager-slot.next,
  .pager-slot.next a { text-align: left; align-items: flex-start; }

  .stat-row { grid-template-columns: 1fr auto; }

  .stat-track { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .wrap { width: min(46rem, calc(100% - 4rem)); }
  .masthead { padding-top: 2.25rem; }
}
