:root {
  --font-family-base: "Inter", sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;

  --font-size-h1: 32px;
  --font-size-paragraph: 14px;

  --grid-columns: 4;
  --grid-column-width: 68px;
  --grid-gutter: 16px;
  --grid-offset: 0px;

  --page-bg: #f5efe8;
  --surface: #fdf8f3;
  --surface-strong: #ffffff;
  --surface-border: rgba(52, 40, 31, 0.1);
  --text-main: #1f1b18;
  --text-muted: #6b6158;
  --accent: #c86b3c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(200, 107, 60, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf6f1 0%, var(--page-bg) 100%);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

.home-page {
  min-height: 100vh;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.videos-section {
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 90px;
}

.videos-section .container {
  display: flex;
  justify-content: center;
}

.videos-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  width: 100%;
  padding-inline: 16px;
}

.type-h1 {
  font-size: 32px;
  font-weight: var(--font-weight-semibold);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
  max-width: 14ch;
}

.type-paragraph {
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--text-muted);
  margin-top: 32px;
  text-align: center;
  text-wrap: balance;
}

.videos-gallery {
  margin-top: 60px;
  width: 100%;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 32px;
  width: min(100%, 1504px);
  margin: 0 auto;
}

.video-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.video-frame,
.video-placeholder {
  width: 100%;
  height: 100%;
}

.video-frame {
  border: 0;
  border-radius: 16px;
}

.video-placeholder {
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top, rgba(200, 107, 60, 0.22), transparent 35%);
}

.video-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 27, 24, 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.05;
}

.video-hint {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .videos-copy {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .type-h1 {
    font-size: 48px;
  }

  .type-paragraph {
    font-size: 22px;
  }
}

@media (min-width: 1440px) {
  .videos-copy {
    padding-inline: 0;
  }

  .type-h1 {
    font-size: 64px;
  }

  .type-paragraph {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .videos-gallery {
    margin-top: 48px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
