:root {
  --bg: #0a0a0a;
  --sheet: #141414;
  --text: #f5f5f5;
  --muted: #949090;
  --accent: #e31c24;
  --dock-h: 64px;
  --serif: "Iowan Old Style", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: calc(var(--dock-h) + 1rem);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2rem;
}

.hero.editorial {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid #222;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}

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

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #222;
}

.section h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

.prose-col article {
  margin-bottom: 1.5rem;
}

.prose-col h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.prose-col p {
  margin: 0;
  color: var(--muted);
}

.carousel-wrap .carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.car-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.car-track::-webkit-scrollbar { display: none; }

.car-track figure {
  flex: 0 0 72%;
  scroll-snap-align: center;
  margin: 0;
}

.car-track img {
  border-radius: 16px;
  border: 1px solid #333;
  width: 100%;
}

.car-btn {
  background: var(--sheet);
  border: 1px solid #333;
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.25rem;
}

.centered-band {
  text-align: center;
}

.centered-band p {
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery img {
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
}

.tabs .updated {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.5rem 0 1rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tab-list button {
  background: var(--sheet);
  border: 1px solid #333;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.tab-list button[aria-selected="true"] {
  color: var(--text);
  border-color: var(--accent);
}

.panel {
  background: var(--sheet);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  color: var(--muted);
}

.panel p { margin: 0; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1rem 0;
}

.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--dock-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(5, 5, 5, 0.92);
  border-top: 1px solid #2a2a2a;
  backdrop-filter: blur(8px);
  z-index: 20;
}

.bottom-dock a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  text-align: center;
  padding: 0.25rem;
}

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

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}
