:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --fg: #f3ecdd;
  --muted: #a39e91;
  --line: #2a2a2a;
  --max: 40rem;
  --pad: 1.25rem;
  font-family: "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.45;
}

.top, .jump, main, .foot {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: var(--pad);
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  margin: 0 0 0.35rem;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.jump {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-block: 0.75rem;
}

.jump a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.jump a:hover, .jump a:focus { color: var(--fg); }

section {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

figure { margin: 0 0 0.85rem; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #111;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

p { margin: 0 0 0.65rem; max-width: 36rem; }
p:last-child { margin-bottom: 0; }

audio {
  display: block;
  width: 100%;
  max-width: 24rem;
  margin-top: 0.5rem;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 0.85rem;
}
.row img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.foot {
  color: var(--muted);
  font-size: 0.85rem;
  padding-bottom: 3rem;
}
.foot a { color: var(--fg); }

details {
  margin-top: 0.5rem;
  color: var(--muted);
}
details summary {
  cursor: pointer;
  color: var(--fg);
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }

.thumbs {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 0.5rem;
}
.thumb {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.3;
}
.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-bottom: 0.35rem;
  background: #111;
}
.thumb:hover span, .thumb:focus span { color: var(--fg); }
.top p { color: var(--muted); margin: 0.5rem 0 0; max-width: 36rem; }
strong { font-weight: 600; color: var(--fg); }
