:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-strong: #edf1f3;
  --text: #182026;
  --muted: #64717a;
  --line: #d7dee3;
  --accent: #1d6f72;
  --shadow: 0 12px 32px rgba(24, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

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

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-links a:hover {
  border-color: var(--accent);
}

.iteration {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
}

.video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-card video,
.missing-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111;
}

.video-card h3 {
  margin: 0;
  padding: 11px 12px 12px;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.video-card.missing {
  background: #fbfcfc;
}

.missing-video {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(29, 111, 114, 0.08), rgba(24, 32, 38, 0.04)),
    var(--surface-strong);
}

.missing-video::after {
  content: "Missing MP4";
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.video-card p {
  margin: -4px 12px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }
}

@media (max-width: 720px) {
  .page {
    padding: 18px;
  }

  .masthead,
  .section-head {
    display: block;
  }

  .header-links {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .section-head span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
