.intro,
.topic-nav,
.site-footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.intro {
  max-width: 52rem;
  margin: 2.5rem 0 0;
}

.intro__title {
  max-width: 16ch;
  margin: 0;
  border: 0;
  padding: 0;
  color: #1f2328;
  font-family: inherit;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.intro__copy {
  max-width: 46rem;
  margin: 1.25rem 0 1.5rem;
  color: #57606a;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

.intro__cta {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: #1f2328;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.intro__cta:hover {
  background: #0969da;
  color: #fff;
  text-decoration: none;
}

.topic-nav {
  display: grid;
  max-width: 24rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 2.25rem 0 3rem;
}

.topic-nav a {
  display: block;
  border-bottom: 1px solid #eef0f2;
  padding: 0.55rem 0;
  color: #57606a;
  font-size: 0.9rem;
  text-decoration: none;
}

.topic-nav a:hover,
.social-link:hover {
  color: #0969da;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #d8dee4;
  padding: 1.5rem 0 2rem;
  color: #6e7781;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: #57606a;
  transition: background-color 160ms ease, color 160ms ease;
}

.social-link:hover {
  background: #f6f8fa;
  text-decoration: none;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.social-link--website svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.intro a:focus-visible,
.topic-nav a:focus-visible,
.social-link:focus-visible {
  outline: 3px solid #218bff;
  outline-offset: 3px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  align-items: stretch;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

.video-card {
  position: relative;
  display: flex;
  align-self: stretch;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8dee4;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(31 35 40 / 8%);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.video-card:hover {
  box-shadow: 0 8px 24px rgb(31 35 40 / 12%);
  transform: translateY(-2px);
}

.video-card__thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f0f3f6;
}

.video-card__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.video-card:hover .video-card__thumbnail img {
  transform: scale(1.025);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(20 24 28 / 78%);
  color: #fff;
  font-size: 1rem;
  padding-left: 0.15rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.video-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1rem 1rem 4.5rem;
}

.video-card__title {
  margin: auto 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.video-card__links {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-card__link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.video-card__link--primary {
  background: #0969da;
  color: #fff;
}

.video-card__link--primary:hover {
  background: #0757b5;
  color: #fff;
  text-decoration: none;
}

.video-card__link--secondary {
  border-color: #d0d7de;
  background: #fff;
  color: #24292f;
}

.video-card__link--secondary:hover {
  background: #f6f8fa;
  color: #0969da;
  text-decoration: none;
}

.video-card a:focus-visible {
  outline: 3px solid #218bff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-card__thumbnail img {
    transition: none;
  }

  .video-card:hover,
  .video-card:hover .video-card__thumbnail img {
    transform: none;
  }
}
