:root {
  color-scheme: light;
  --start-color: #eeeeee;
  --end-color: #4d4d4d;
  --gutter: clamp(16px, 3.2vw, 64px);
  --gap: clamp(10px, 1.45vw, 28px);
  --tile-size: 24vw;
  --grid-bottom: 100%;
  --font-stack: "Swiss 721", "Swiss721", "Helvetica Neue", "Segoe UI Light", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  margin: 0;
  color: #090909;
  font-family: var(--font-stack);
  font-synthesis: none;
  background: var(--end-color);
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.landing {
  min-height: 100vh;
  padding-bottom: var(--tile-size);
  background: linear-gradient(
    to bottom,
    var(--start-color) 0,
    var(--start-color) var(--tile-size),
    var(--end-color) var(--grid-bottom)
  );
}

.masthead {
  height: var(--tile-size);
  min-height: 120px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.name {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-stack);
  font-size: 240px;
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding-inline: var(--gutter);
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #858585;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.tile:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  z-index: 1;
}

.tile-art,
.tile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile-art {
  background:
    linear-gradient(135deg, hsla(var(--hue, 0), 10%, 84%, 0.52), transparent 56%),
    linear-gradient(35deg, #777777, #ababab 60%, #858585);
}

.tile--placeholder .tile-art {
  background:
    linear-gradient(135deg, #a1a1a1, #747474 68%, #858585);
}

.tile-image {
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

.tile.has-thumbnail .tile-image {
  opacity: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.modal-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.64);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: 100vw;
  height: min(1200px, 100dvh);
  max-height: 100dvh;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}

.modal-body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

.modal-media {
  width: min(100%, 1920px);
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  margin-inline: auto;
  background: #000000;
}

.modal-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

.modal-caption {
  width: min(100%, 1920px);
  min-height: clamp(64px, 7vh, 104px);
  flex: 0 0 auto;
  padding: 20px var(--gutter);
  color: #ffffff;
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.close-button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 14px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.54);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 35px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.close-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.mock-player {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #000000;
}

.mock-play {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.mock-play::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 17px solid rgba(255, 255, 255, 0.72);
  content: "";
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) and (min-width: 601px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .modal-panel {
    width: 100vw;
    height: 100dvh;
  }

  .close-button {
    top: 8px;
    right: 8px;
  }
}

