:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101114;
  color: #f4f4f5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 80px;
}

.page__header {
  margin-bottom: 36px;
}

.page__eyebrow {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 28px 24px;
}

.card {
  min-width: 0;
}

.card__title {
  overflow: hidden;
  margin: 0 0 12px;
  color: #e4e4e7;
  font-size: 15px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #303137;
  border-radius: 12px;
  background: #18191e;
  box-shadow: 0 8px 26px rgb(0 0 0 / 18%);
}

.card__download {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 9px;
  background: rgb(24 25 30 / 88%);
  color: #f4f4f5;
  box-shadow: 0 2px 8px rgb(0 0 0 / 24%);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.card__download:hover {
  background: #303137;
}

.card__download:focus-visible {
  outline: 2px solid #f4f4f5;
  outline-offset: 2px;
}

.card__download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card__preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #18191e;
}

.empty {
  color: #a1a1aa;
  font-size: 15px;
}

.empty strong {
  color: #e4e4e7;
  font-weight: 550;
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 32px, 400px);
    padding-top: 48px;
  }
}
