*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f8;
  color: #2c333a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.cover {
  height: 220px;
  background: linear-gradient(180deg, #9aa8b5 0%, #7d8c9a 55%, #6e7e8d 100%);
}

.sheet {
  width: min(960px, 100%);
  margin: 0 auto;
  min-height: calc(100vh - 220px);
  padding: 2.75rem 2.25rem 4.5rem;
  background: #fff;
}

h1 {
  margin: 0 0 1.75rem;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  color: #24303a;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin: 0 0 2rem;
  border-bottom: 1px solid #e3e7ec;
}

.tabs button {
  margin: 0 0 -1px;
  padding: 0.7rem 0.15rem 0.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #66727c;
  font: 500 0.98rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  color: #24303a;
  border-bottom-color: #5c6e80;
}

.tabs button:focus-visible {
  outline: 2px solid #5c6e80;
  outline-offset: 3px;
}

.panel {
  min-height: 8rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  margin: 0;
}

.card img,
.card video {
  display: block;
  width: 100%;
}

.card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef1f4;
}

.card video {
  background: #1c2228;
}

@media (max-width: 40rem) {
  .cover {
    height: 140px;
  }

  .sheet {
    min-height: calc(100vh - 140px);
    padding: 1.75rem 1.1rem 3rem;
  }

  .tabs {
    gap: 1.15rem;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
