:root {
  --bg: #ffffff;
  --text: #545454;
  --quiet: #a3a3a3;
  --font-body: "Cholla Sans PT", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Cholla Sans PT";
  src: url("assets/fonts/chollasans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  overflow: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a.is-current {
  color: #111111;
}

.index-page {
  display: grid;
  grid-template-columns: 46vw 44vw;
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 4vw;
  row-gap: 54px;
  width: 100%;
  height: 100vh;
  padding: 92px 60px 0;
  background: #ffffff;
}

.brand-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 46vw 44vw;
  column-gap: 4vw;
  align-items: start;
  transform: none;
}

.left-panel {
  position: relative;
  display: block;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  height: 100%;
  overflow: visible;
}

.brand-link,
.index-label,
.texture-label,
.intro-copy {
  font-size: 16px;
}

.brand-link {
  justify-self: start;
}

.index-label {
  justify-self: start;
  margin: 0;
}

.video-frame {
  display: block;
  width: 480px;
  max-width: 100%;
  aspect-ratio: 342 / 241;
  overflow: hidden;
  background: #cfcfcf;
  justify-self: start;
}

.preview-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.28);
  transform-origin: center;
}

.intro-copy {
  position: absolute;
  top: 440px;
  left: 0;
  width: min(620px, 100%);
  margin: 0;
  color: var(--text);
  line-height: 1.05;
}

.right-panel {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.texture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  grid-auto-rows: 430px;
  align-content: start;
  gap: 10px 11px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 0 0 56px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.texture-grid::-webkit-scrollbar {
  display: none;
}

.texture-card {
  display: grid;
  grid-template-areas: "texture";
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.texture-card::before {
  display: none;
}

.texture-card:focus-visible {
  outline: 1px solid #111111;
  outline-offset: 3px;
}

.texture-thumb {
  display: block;
  grid-area: texture;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.texture-label {
  grid-area: texture;
  align-self: start;
  justify-self: start;
  z-index: 1;
  display: inline-block;
  width: max-content;
  margin: 0 0 0 10px;
  padding: 0 24px 0 8px;
  background: #ffffff;
  color: var(--text);
  line-height: 1;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .index-page {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 26px;
    height: auto;
    min-height: 100vh;
    padding: 28px 18px 42px;
  }

  .brand-row {
    grid-column: 1;
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .left-panel,
  .right-panel {
    grid-column: 1;
    grid-row: auto;
    height: auto;
    overflow: visible;
  }

  .video-frame {
    width: 100%;
    max-width: none;
  }

  .intro-copy {
    position: static;
    width: 100%;
    margin-top: 18px;
  }

  .right-panel {
    margin-top: 8px;
  }

  .texture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 58vw;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
    gap: 8px;
  }

  .brand-link,
  .index-label,
  .texture-label,
  .intro-copy {
    font-size: 14px;
  }

  .texture-label {
    margin-left: 6px;
    padding-right: 16px;
    padding-left: 5px;
  }
}

@media (max-width: 480px) {
  .texture-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 128vw;
  }

  .index-page {
    padding-right: 14px;
    padding-left: 14px;
  }
}
