:root {
  color-scheme: dark;
  --bg: #141414;
  --ink: #f2f2f2;
  --body: #c8c8c8;
  --muted: #8d8d8d;
  --line: #2c2c2c;
  --rule: #f2f2f2;
  --red: #ff4a4a;
  --well: #242424;
  --dot: #5a5a5a;
  --max: 1440px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --ink: #121212;
  --body: #333;
  --muted: #727272;
  --line: #e2e2e2;
  --rule: #121212;
  --red: #c40000;
  --well: #f4f4f4;
  --dot: #b5b5b5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
}
button, input { font-family: inherit; color: inherit; }
a { color: inherit; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 4;
  width: 100%;
  background: var(--bg);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line);
}
.dateline, .header-tools { margin: 0; }
.dateline { justify-self: start; }
.header-tools {
  display: flex;
  align-items: baseline;
  justify-self: end;
  gap: 16px;
}
.theme { display: flex; gap: 10px; }
.theme button {
  background: none;
  border: 0;
  padding: 0 0 2px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
:root[data-theme="light"] .theme [data-theme-value="light"],
:root[data-theme="dark"] .theme [data-theme-value="dark"] {
  color: var(--ink);
}
.theme button:hover { text-decoration: underline; }
.dateline, .refresh {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.brand {
  justify-self: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.refresh {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.refresh:disabled { opacity: 0.45; cursor: default; }
.refresh:hover:not(:disabled) { text-decoration: underline; }

main {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 0 0 12px;
}
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 0;
}
@media (min-width: 800px) {
  .toolbar {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  .search { flex: 0 1 200px; }
  .chips { flex: 1; justify-content: flex-end; gap: 20px; }
}
.search input {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 6px 0 8px;
  font-size: 14px;
  outline: none;
}
.search input::placeholder { color: var(--muted); }
.chips {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.chip[aria-pressed="true"] { color: var(--ink); }
.chip:hover { text-decoration: underline; }
.status {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.board { min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 480px);
  gap: 18px 28px;
  align-items: stretch;
  margin: 20px 0 16px;
}
.hero-photo {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 210px;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 18%;
}
.hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero.no-photo { grid-template-columns: minmax(0, 1fr); }
.hero.no-photo .hero-copy { grid-column: 1; }
.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.kicker span { color: var(--red); }
.hero h1, .story h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.02;
}
.dek {
  max-width: 40em;
  margin: 12px 0 0;
  color: var(--body);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}
.blurb {
  max-width: 42em;
  margin: 8px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero .blurb {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
}
.outlet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.outlet-row li:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--dot);
}
.outlet-row a { text-decoration: none; }
.outlet-row a:hover { color: var(--ink); text-decoration: underline; }

.releases {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.rail { margin: 18px 0 8px; min-width: 0; max-width: 100%; }
.rail h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.rail-scroll {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 14px;
  width: 100%;
}
.poster { min-width: 0; text-decoration: none; }
.poster img, .poster .ph {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--well);
  display: block;
}
.poster .ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 28px;
}
.poster small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.story { border-top: 1px solid var(--line); }
.story summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.story summary::-webkit-details-marker { display: none; }
.story summary > div { min-width: 0; }
.thumb, .thumb-ph {
  width: 92px;
  height: 62px;
  object-fit: cover;
  background: var(--well);
}
.thumb-ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
}
.story h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}
.story .dek {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--body);
}
.meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.takes {
  margin: 0;
  padding: 0 0 14px 106px;
  list-style: none;
}
.takes a {
  display: block;
  padding: 5px 0;
  color: var(--body);
  font-size: 14px;
  text-decoration: none;
}
.takes a:hover { text-decoration: underline; }
.takes strong {
  display: inline-block;
  min-width: 11em;
  color: var(--muted);
  font-weight: 600;
}
.more {
  margin: 4px 0 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.more:hover { text-decoration: underline; }
.empty {
  padding: 28px 0 12px;
  color: var(--muted);
}

footer {
  width: min(100% - 48px, var(--max));
  margin: 8px auto 0;
  padding: 16px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer p { margin: 0 0 6px; }
footer a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .rail-scroll { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo, .hero-copy { grid-column: 1; grid-row: auto; }
  .hero-photo { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 640px) {
  .header-inner, main, footer { width: min(100% - 32px, var(--max)); }
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date tools" "brand brand";
    justify-items: start;
    padding-top: 12px;
  }
  .dateline { grid-area: date; }
  .header-tools { grid-area: tools; justify-self: end; }
  .brand { grid-area: brand; justify-self: center; font-size: 36px; padding: 4px 0 2px; }
  .dateline { font-size: 11px; }
  .chips { gap: 14px; }
  .chip { font-size: 13px; }
  .hero h1 { font-size: 32px; }
  .dek { font-size: 16px; }
  .story summary { grid-template-columns: 76px 1fr; gap: 12px; }
  .thumb, .thumb-ph { width: 76px; height: 52px; }
  .story h2 { font-size: 18px; }
  .takes { padding-left: 0; }
  .takes strong { min-width: 0; display: block; }
  .rail-scroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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