@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}

.home-feature {
  --feature-ink: #142c46;
  --feature-cream: #fff4e6;
  --feature-art-start: #cedae5;
  --feature-art-middle: #edf2f6;
  --feature-art-end: #dde6ef;
  display: grid;
  max-width: 1600px;
  margin: clamp(16px, 2vw, 28px) auto 0;
  background: var(--feature-ink);
  color: var(--feature-cream);
}

.home-feature-art {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 180px;
  padding: clamp(12px, 4vw, 48px);
  background: linear-gradient(
    128deg,
    var(--feature-art-start) calc(28% - 1px),
    var(--feature-art-middle) calc(28% + 1px) calc(73% - 1px),
    var(--feature-art-end) calc(73% + 1px)
  );
}

.home-feature-art img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgb(20 44 70 / 22%));
}

.home-feature-copy {
  align-self: center;
  padding: 26px 20px 30px;
  text-align: center;
}

.home-feature-title {
  margin: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(54px, 13vw, 76px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.022em;
}

.home-feature-title em {
  font-size: 1.12em;
}

.home-feature-copy p {
  margin: 12px 0 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-feature .home-feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--feature-link-background, var(--feature-cream));
  color: var(--feature-link-color, var(--feature-ink));
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .home-feature .home-feature-link:hover {
    background: var(--feature-art-start);
    color: var(--feature-ink);
  }
}

.home-feature .home-feature-link:focus-visible {
  outline-color: var(--feature-cream);
}

.home-feature--nba {
  --feature-ink: #173930;
  --feature-art-start: #d2e0d8;
  --feature-art-middle: #edf3ef;
  --feature-art-end: #dce7e0;
  --feature-image-offset: clamp(6px, 1.5vw, 26px);
}

.home-feature--mlb {
  --feature-ink: #7d3123;
  --feature-cream: #f8f3df;
  --feature-link-background: #fff;
  --feature-link-color: #000;
  --feature-art-start: #e2d4d3;
  --feature-art-middle: #f1eae6;
  --feature-art-end: #e8dad4;
}

.home-feature--nhl {
  --feature-ink: #302e3d;
  --feature-cream: #f6f3ef;
  --feature-art-start: #d8dae5;
  --feature-art-middle: #eeeff4;
  --feature-art-end: #e1e3ed;
}

.home-feature-image {
  width: min(100%, 420px);
}

.home-feature--nba .home-feature-image {
  position: relative;
}

.home-feature--nba .home-feature-image:first-child:not(:only-child) {
  inset-inline-start: var(--feature-image-offset);
}

.home-feature--nba .home-feature-image:last-child:not(:only-child) {
  inset-inline-end: var(--feature-image-offset);
}

.home-feature--nba .home-feature-image img {
  filter: url(#home-nba-white-background) drop-shadow(0 8px 9px rgb(23 57 48 / 20%));
}

.home-feature-image img:not([src]) {
  visibility: hidden;
}

.home-team-cards,
.home-brands {
  max-width: 1600px;
  margin-inline: auto;
  padding: clamp(28px, 3vw, 48px) 16px 20px;
}

.home-team-cards > h2,
.home-brands h2 {
  margin: 0 0 20px;
  line-height: 1.3;
}

.home-team-cards > h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 400;
  text-transform: uppercase;
}

.home-brands h2 {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
}

.home-card-carousel {
  position: relative;
  container-type: inline-size;
}

.home-card-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-card-list > li {
  min-width: 0;
  scroll-snap-align: start;
}

.home-team-card {
  display: block;
  text-decoration: none;
}

.home-team-card:focus-visible {
  outline-offset: -3px;
}

.home-team-card:hover .home-team-card-name,
.featured-jerseys-card:hover .featured-jerseys-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-team-card-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 10%;
  background: linear-gradient(145deg, #f3f6f9 36%, #e3ecf4 36%);
  border-radius: 8px;
}

.home-team-card-art img,
.featured-jerseys-art img {
  display: block;
  width: 100%;
  height: auto;
}

.home-team-cards--nba .home-team-card-art {
  background: linear-gradient(145deg, #f1f5f2 calc(36% - 1px), #e1ebe4 calc(36% + 1px));
}

.home-team-cards--mlb .home-team-card-art {
  background: linear-gradient(145deg, #f2eae5 calc(36% - 1px), #e8dbd4 calc(36% + 1px));
}

.home-team-cards--nhl .home-team-card-art {
  background: linear-gradient(145deg, #f1f2f6 calc(36% - 1px), #e3e5ee calc(36% + 1px));
}

.home-team-cards--nba .home-team-card-art img,
.home-team-cards--mlb .home-team-card-art img {
  filter: drop-shadow(0 5px 6px rgb(23 57 48 / 13%));
}

.home-team-card-art img:not([src]) {
  display: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-team-card-art {
    position: relative;
  }

  .home-team-card-art::before {
    content: "";
    position: absolute;
    inset-inline: 16% 12%;
    inset-block-end: 12%;
    block-size: 11%;
    pointer-events: none;
    background: radial-gradient(ellipse, rgb(20 44 70 / 33%), rgb(20 44 70 / 14%) 42%, transparent 73%);
    opacity: 0;
    transition: opacity 180ms ease-out;
  }

  .home-team-card-art img {
    position: relative;
    transition: transform 180ms ease-out, filter 180ms ease-out;
  }

  .featured-jerseys-art img {
    transition: transform 180ms ease-out;
  }

  .home-team-card:hover .home-team-card-art::before {
    opacity: 1;
  }

  .home-team-card:hover .home-team-card-art img {
    filter: none;
  }

  :is(.home-team-card, .featured-jerseys-card):hover :is(.home-team-card-art, .featured-jerseys-art) img {
    transform: scale(1.04);
  }
}

.home-team-card-name {
  display: block;
  margin-block-start: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 1024px) {
  .home-team-cards,
  .home-brands {
    padding-inline: 24px;
  }

  .home-team-cards-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.6vw, 30px);
    overflow: visible;
    scroll-snap-type: none;
  }

  .home-team-card-name {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .home-feature {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .home-feature-art {
    grid-column: 2;
    grid-row: 1;
  }

  .home-feature-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 38px clamp(30px, 5vw, 80px);
  }

  .home-feature-title {
    font-size: clamp(54px, 5.85vw, 112px);
  }

  .home-feature-copy p {
    margin: 16px 0 24px;
    font-size: clamp(12px, 1.2vw, 13px);
  }

  .home-feature .home-feature-link {
    min-height: 40px;
  }
}

.featured-jerseys {
  max-width: 1600px;
  margin: clamp(28px, 3vw, 52px) auto 0;
  scroll-margin-top: 24px;
}

.featured-jerseys-banner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(148px, 14.875vw, 238px);
  padding: 22px clamp(18px, 4vw, 60px);
  overflow: hidden;
  background: #141517;
  color: #fff;
}

.featured-jerseys-banner-art {
  position: absolute;
  inset: 0 0 0 46%;
  isolation: isolate;
  background: radial-gradient(ellipse at 54% 53%, #30353d 0%, transparent 72%);
}

.featured-jerseys-banner-item {
  position: absolute;
  bottom: 6%;
  height: 76%;
  aspect-ratio: 1;
  translate: -50%;
}

.featured-jerseys-banner-item--left {
  left: 34%;
  rotate: -7deg;
}

.featured-jerseys-banner-item--center {
  left: 52%;
  bottom: 4%;
  z-index: 1;
  height: 90%;
}

.featured-jerseys-banner-item--right {
  left: 70%;
  rotate: 7deg;
}

.featured-jerseys-banner-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 35%));
}

.featured-jerseys-banner-art img:not([src]),
.featured-jerseys-art img:not([src]) {
  display: none;
}

.featured-jerseys-copy {
  position: relative;
  justify-self: start;
  max-width: 55%;
}

.featured-jerseys-copy h2 {
  margin: 0;
  color: #fff4e6;
  font: 400 clamp(28px, 4.1vw, 68px) / 1.06 'DM Serif Display', Georgia, serif;
  letter-spacing: -.018em;
}

.featured-jerseys-copy p {
  margin: 12px 0 0;
  color: #e5dbce;
  font: 400 clamp(11px, 1vw, 13px) / 1.5 'IBM Plex Mono', monospace;
  letter-spacing: .045em;
  text-align: center;
}

.featured-jerseys-list {
  margin: clamp(14px, 1.5vw, 24px) 16px 0;
}

.home-card-arrow {
  display: none;
}

.home-brands-carousel {
  --home-card-arrow-offset: 50%;
  --home-card-arrow-background: #f5f6f8;
}

.home-brands-list {
  --brand-card-gap: clamp(16px, 1.6vw, 30px);
  gap: var(--brand-card-gap);
  padding: 0;
}

.home-brand-card {
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border: 1px solid #e0e3e9;
  border-radius: 10px;
  background: #f5f6f8;
}

.home-brand-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .home-brands-list {
    grid-auto-columns: calc((100% - var(--brand-card-gap)) / 2);
  }
}

.featured-jerseys-card {
  display: grid;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.featured-jerseys-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 8%;
  border: 1px solid #ebedf0;
  border-radius: 8px;
  background: #fff;
}

.featured-jerseys-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.35;
}

.featured-jerseys-price {
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .featured-jerseys-copy {
    max-width: 48%;
    text-align: center;
  }

  .featured-jerseys-copy p {
    letter-spacing: 0;
    white-space: nowrap;
  }

  .featured-jerseys-banner-item--left {
    display: none;
  }

  .featured-jerseys-banner-item--center {
    left: 42%;
    height: 82%;
  }

  .featured-jerseys-banner-item--right {
    left: 76%;
    height: 68%;
  }
}

@media (max-width: 1023px) {
  .home-team-cards--nfl {
    --home-card-arrow-color: #284864;
    --home-card-arrow-border: #ccd8e4;
    --home-card-arrow-background: #eaf1f7;
    --home-card-arrow-disabled-color: #8496a9;
    --home-card-arrow-disabled-background: #f0f5f9;
  }

  .home-team-cards--nba {
    --home-card-arrow-color: #2b5041;
    --home-card-arrow-border: #cbdad0;
    --home-card-arrow-background: #e8f0ea;
    --home-card-arrow-disabled-color: #82998a;
    --home-card-arrow-disabled-background: #eff5f0;
  }

  .home-team-cards--mlb {
    --home-card-arrow-color: #634239;
    --home-card-arrow-border: #dac9bf;
    --home-card-arrow-background: #eee3dc;
    --home-card-arrow-disabled-color: #9b857a;
    --home-card-arrow-disabled-background: #f3ebe6;
  }

  .home-team-cards--nhl {
    --home-card-arrow-color: #3e4a66;
    --home-card-arrow-border: #ced2e0;
    --home-card-arrow-background: #e9ebf3;
    --home-card-arrow-disabled-color: #838ca2;
    --home-card-arrow-disabled-background: #f0f1f7;
  }

  .featured-jerseys .home-card-carousel {
    margin: clamp(14px, 1.5vw, 24px) 16px 0;
  }

  .home-team-card-art {
    aspect-ratio: 1;
  }

  .featured-jerseys-list {
    margin: 0;
  }

  .featured-jerseys-name {
    display: block;
    overflow-wrap: anywhere;
  }
}

.home-card-arrow:not([hidden]) {
  position: absolute;
  z-index: 1;
  inset-block-start: var(--home-card-arrow-offset, 50cqi);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: var(--home-card-arrow-color, #26292d);
  background: transparent;
  translate: 0 -50%;
  cursor: pointer;
}

.home-card-arrow:disabled {
  color: var(--home-card-arrow-disabled-color, #9da2a9);
  cursor: default;
}

.home-card-arrow::before,
.home-card-arrow::after {
  grid-area: 1 / 1;
  content: "";
}

.home-card-arrow::before {
  box-sizing: border-box;
  width: 26px;
  height: 42px;
  border: 1px solid var(--home-card-arrow-border, #dfe2e6);
  background: var(--home-card-arrow-background, #f3f4f6);
}

.home-card-arrow:disabled::before {
  background: var(--home-card-arrow-disabled-background, #f8f9fa);
}

.home-card-arrow::after {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  rotate: 45deg;
  translate: 9px;
}

.home-card-arrow--previous {
  inset-inline-start: 0;
}

.home-card-arrow--next {
  inset-inline-end: 0;
}

.home-card-arrow--previous::before {
  justify-self: start;
  border-inline-start: 0;
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
}

.home-card-arrow--next::before {
  justify-self: end;
  border-inline-end: 0;
  border-start-start-radius: 8px;
  border-end-start-radius: 8px;
}

.home-card-arrow--previous::after,
.home-card-arrow--next:dir(rtl)::after {
  rotate: -135deg;
  translate: -9px;
}

.home-card-arrow--previous:dir(rtl)::after {
  rotate: 45deg;
  translate: 9px;
}

@media (min-width: 1024px) {
  .home-card-carousel:not(.home-brands-carousel) > .home-card-arrow {
    display: none;
  }

  .home-brands-list {
    grid-auto-columns: calc((100% - 3 * var(--brand-card-gap)) / 4);
  }

  .featured-jerseys-list {
    grid-auto-flow: row;
    margin-inline: 24px;
  }
}

.home-store-intro {
  max-width: 1600px;
  margin-inline: auto;
  padding: clamp(40px, 4vw, 64px) 36px clamp(36px, 4vw, 64px);
  color: #242424;
}

.home-store-intro-scroll {
  max-block-size: min(44svh, 284px);
  padding-inline-end: 16px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #7d8793 #eef0f3;
}

.home-card-list:focus,
.home-store-intro-scroll:focus { outline: none; }

:is(.home-team-cards, .home-brands):has(.home-card-list:focus-visible) > h2,
.featured-jerseys:has(.home-card-list:focus-visible) .featured-jerseys-copy h2,
.home-store-intro-scroll:focus-visible > h2 {
  text-decoration: underline;
  text-decoration-color: var(--focus-ring-color);
  text-underline-offset: 0.2em;
}

.home-store-intro-scroll:focus-visible {
  scrollbar-color: var(--focus-ring-color) #eef0f3;
}

.home-store-intro-frame {
  --home-store-intro-handle-height: 28px;
  --home-store-intro-dot-size: 8px;
  position: relative;
}

.home-store-intro-frame:has(> .home-store-intro-thumb:not([hidden]))::before {
  position: absolute;
  inset-block: calc(var(--home-store-intro-handle-height) / 2);
  inset-inline-end: calc((var(--home-store-intro-dot-size) - 1px) / 2);
  inline-size: 1px;
  background: #d7dce3;
  pointer-events: none;
  content: "";
}

.home-store-intro-frame[data-enhanced] .home-store-intro-scroll {
  padding-inline-end: 22px;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.home-store-intro-frame[data-enhanced] .home-store-intro-scroll::-webkit-scrollbar {
  display: none;
}

.home-store-intro-thumb {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  inline-size: 22px;
  block-size: var(--home-store-intro-handle-height);
  cursor: grab;
  touch-action: none;
}

.home-store-intro-thumb::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0;
  inline-size: var(--home-store-intro-dot-size);
  block-size: var(--home-store-intro-dot-size);
  translate: 0 -50%;
  border-radius: 50%;
  background: #637185;
  content: "";
}

.home-store-intro-scroll:focus-visible + .home-store-intro-thumb::after {
  background: var(--focus-ring-color);
}

.home-store-intro-thumb:hover::after,
.home-store-intro-thumb.is-dragging::after {
  background: #3f4c5d;
}

.home-store-intro-thumb.is-dragging {
  cursor: grabbing;
}

.home-store-intro h2 {
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.home-store-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .home-store-intro {
    padding-inline: 44px;
  }

  .home-store-intro-scroll {
    max-block-size: min(44svh, 216px);
  }
}
