:root {
  --bg: #090b0e;
  --surface: #11151a;
  --surface-raised: #171c22;
  --ink: #f3f1eb;
  --muted: #aaa79f;
  --line: #292f36;
  --line-strong: #59616b;
  --accent-a: #c65353;
  --accent-b: #4f9fb8;
  --danger: #ff8787;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
video {
  font: inherit;
}

a {
  color: #d7e7ed;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 0%, rgba(79,159,184,.08), transparent 35%),
    radial-gradient(circle at 10% 0%, rgba(198,83,83,.07), transparent 32%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  max-width: 900px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.035em;
}

.dek {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.controls {
  padding: 30px 0 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.filter-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.filter-button:hover,
.filter-button:focus-visible {
  background: var(--surface-raised);
  outline: none;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.timeline-panel {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 0 12px;
  background: rgba(9, 11, 14, .94);
  backdrop-filter: blur(12px);
}

.timeline-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  height: 104px;
  margin-top: 8px;
  overflow: visible;
}

.timeline-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 57px;
  height: 1px;
  background: var(--line-strong);
}

.year-label {
  position: absolute;
  top: 72px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

.year-tick {
  position: absolute;
  top: 51px;
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.timeline-marker {
  position: absolute;
  top: var(--marker-top, 23px);
  width: 13px;
  height: 13px;
  padding: 0;
  transform: translateX(-50%);
  border: 2px solid var(--bg);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
}

.timeline-marker.creator-a {
  background: var(--accent-a);
}

.timeline-marker.creator-b {
  background: var(--accent-b);
}

.timeline-marker:hover,
.timeline-marker:focus-visible,
.timeline-marker.is-active {
  transform: translateX(-50%) scale(1.35);
  outline: none;
  box-shadow: 0 0 0 2px var(--ink);
}

.video-feed {
  padding: 14px 0 100px;
}

.video-card {
  scroll-margin-top: 132px;
  padding: 52px 0 58px;
  border-bottom: 1px solid var(--line);
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.video-date {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.creator-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creator-pill.creator-a {
  background: #983d3d;
}

.creator-pill.creator-b {
  background: #2f7185;
}

.video-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.video-frame-wrap {
  width: min(100%, 780px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 18px 55px rgba(0,0,0,.26);
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-caption {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.video-caption a {
  color: #d7e7ed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.video-error {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: .92rem;
}

.empty-state {
  padding: 70px 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 48px;
  }

  .timeline {
    height: 92px;
  }

  .year-label {
    font-size: .66rem;
  }

  .video-card {
    padding: 40px 0 44px;
  }

  .video-frame-wrap {
    width: calc(100% + 32px);
    margin-left: -16px;
    border-left: 0;
    border-right: 0;
  }
}
