* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  background: #f4f4f2;
  color: #111;
}

/* ================= HEADER ================= */

.site-header {
  width: 100%;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

.site-header a,
.site-header .nav-item {
  pointer-events: auto;
}

.site-header--dark .htitle,
.site-header--dark .hero-subtitle,
.site-header--dark .nav-item {
  color: #111;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.htitle {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 128px;
  line-height: 0.8;
  text-decoration: none;
}

.hero-subtitle {
  margin: 12px 0 0;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-item {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-item.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ================= GRID ================= */

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 18px;
  padding: 180px 38px 40px;
}

.short-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.short-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  background: #ddd;
}

.short-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-meta {
  padding-top: 14px;
}

.short-meta h2 {
  margin: 0 0 6px 0;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
}

.short-meta p {
  margin: 0 0 3px 0;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #666;
}

.short-card:hover .short-video {
  transform: scale(1.015);
  transition: transform 0.35s ease;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
  .shorts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px;
  }

  .htitle {
    font-size: 64px;
  }

  .hero-subtitle {
    max-width: 250px;
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .nav-item {
    font-size: 12px;
  }

  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    padding: 130px 12px 24px;
  }

  .short-meta h2,
  .short-meta p {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .shorts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .short-media {
    aspect-ratio: 9 / 14;
  }
}