:root {
  color-scheme: dark;
  --ink: #07060e;
  --panel: #161224;
  --line: #3f2e59;
  --muted: #eedde3;
  --teal: #00a4b1;
  --display: Impact, "Arial Narrow", system-ui, sans-serif;
  font-family: Inter, system-ui, sans-serif;
  color: #fafafb;
  background: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
a:hover, .tools button:hover { color: var(--teal); }

header {
  height: clamp(64px, 6.9vw, 106px);
  display: flex;
  align-items: center;
  padding: 0 3%;
  background: #030303;
  border-bottom: 1px solid #3f2e59;
}

.brand img { display: block; width: clamp(60px, 7.5vw, 115px); height: auto; max-height: 100px; object-fit: contain; }
header nav { border-left: 1px solid #686678; margin-left: 2.7vw; padding-left: 2.5vw; }
header nav a, h1, h2, .arena-cta {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}
.shop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem clamp(.8rem, 2.1vw, 2.25rem);
}
.shop-nav a { font-size: clamp(.9rem, 1.35vw, 1.25rem); white-space: nowrap; }
.shop-nav a[aria-current=true] { color: var(--teal); text-decoration: underline; text-underline-offset: .35em; }
.tools { margin-left: auto; display: flex; align-items: center; gap: clamp(.65rem, 1.6vw, 1.5rem); }
.tools button, .tools a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.tools button { border: 0; padding: 0; color: inherit; background: transparent; }
.tools svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }

#searchPanel { background: var(--panel); border-bottom: 1px solid var(--line); padding: 1rem 4%; font-weight: 700; }
#searchPanel input { display: block; width: min(100%, 550px); margin-top: .4rem; }
input, select { color: inherit; background: #0d0b1d; border: 1px solid #686678; border-radius: .35rem; padding: .65rem; }

main { background: var(--ink); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 2rem);
  overflow: hidden;
  padding: clamp(2.25rem, 4.5vw, 5rem) max(4%, calc((100% - 1480px) / 2));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #07060ee8, #07060e47 60%, #07060e88),
    linear-gradient(0deg, var(--ink), transparent 30%),
    url('assets/charlotte-skyline-wide.webp') center 60% / cover no-repeat;
}
.hero h1 {
  margin: 0 0 clamp(1.2rem, 2.5vw, 2.5rem);
  font-size: clamp(2.15rem, 5.7vw, 6.1rem);
  line-height: .94;
  letter-spacing: -.045em;
  max-width: 10ch;
}
.hero h1 span { display: block; font-size: 1.22em; }
.hero h1::after {
  content: "";
  display: block;
  width: 45%;
  height: 5px;
  margin-top: .24em;
  background: var(--teal);
  transform: skewX(-25deg);
}
.arena-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1.45rem;
  background: var(--teal);
  color: var(--ink);
}
.arena-cta:hover { background: #fafafb; color: var(--ink); }
.hero-products {
  position: relative;
  min-width: 0;
  height: clamp(280px, 34vw, 510px);
}
.hero-product {
  position: absolute;
  display: block;
  width: 65%;
  height: 112%;
  bottom: -12%;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 68% 59% at 50% 47%, #000 47%, #000d 65%, transparent 93%);
}
.hero-product img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-hoodie { left: -4%; z-index: 1; }
.hero-tee { right: -3%; width: 59%; height: 103%; }
.hero-product:hover, .hero-product:focus-visible { filter: brightness(1.14); }
.hero-products::after {
  position: absolute;
  z-index: 2;
  inset: auto -10% -13%;
  height: 28%;
  background: linear-gradient(0deg, var(--ink), transparent);
  pointer-events: none;
  content: "";
}

.shop {
  max-width: 1700px;
  margin-inline: auto;
  padding: clamp(.75rem, 2vw, 2rem) clamp(.75rem, 1.75vw, 1.75rem) clamp(2.5rem, 5vw, 5rem);
}
#count { margin: .75rem 0 1rem; color: var(--muted); font-size: .875rem; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.25vw, 1.25rem); }
.card { min-width: 0; background: var(--panel); border-radius: .55rem; border: 1px solid var(--line); }
.card:hover, .card:focus-within { border-color: #00a4b1; }
.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  background: #110e20;
  border-radius: .5rem .5rem 0 0;
  text-align: center;
}
.photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center bottom; }
.info { padding: clamp(.65rem, 1.25vw, 1.2rem); }
.info p { margin: 0; color: var(--muted); font-size: .875rem; }
.info h3 { margin: .3rem 0 .5rem; font-size: clamp(1rem, 1.4vw, 1.3rem); }
.info strong { color: var(--teal); }
.info .swatch-name { margin-top: .75rem; color: var(--muted); }
.swatch-name span { color: #fafafb; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.swatches button, .swatch-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.swatches button::before, .swatch-dot::before {
  content: "";
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--swatch);
}
.swatches button:hover::before { outline: 1px solid var(--muted); outline-offset: 3px; }
.swatches button[aria-pressed=true]::before { outline: 2px solid var(--teal); outline-offset: 3px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: #030303;
  color: var(--muted);
  padding: 1.5rem 4%;
  font-weight: 700;
}
footer > img { width: 64px; }
.footer-credit {
  flex: 1 1 15rem;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  text-align: right;
}
.footer-credit a { color: #fafafb; font-weight: 800; }
.footer-credit a:hover { text-decoration: underline; }

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

@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.75rem 5% 2rem; }
  .hero h1 { max-width: none; font-size: clamp(1.85rem, 7vw, 2.9rem); }
  .hero h1::after { width: 25%; }
  .hero-products { height: clamp(245px, 68vw, 345px); }
  header { display: grid; grid-template-columns: 1fr auto; height: auto; padding: .25rem 3% 0; }
  .tools { grid-row: 1; grid-column: 2; }
  header .shop-nav {
    grid-column: 1 / -1;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
    padding: .55rem 0;
    gap: .1rem .85rem;
  }
  .shop-nav a { min-height: 32px; display: flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.shop-nav a[aria-current=page] { color: var(--teal); text-decoration: underline; text-underline-offset: .35em; }
#searchPanel button { margin-top: .6rem; min-height: 44px; padding-inline: 1rem; background: var(--teal); color: var(--ink); border: 0; font-weight: 800; }
.hero h1 { max-width: 12ch; }
.featured-gear, .features {
  max-width: 1550px;
  margin: 0 auto;
  padding-inline: 4%;
}
.featured-gear { padding-top: clamp(1rem, 3vw, 2.5rem); }
.featured-gear h2 {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 3vw, 2.5rem);
  margin: 0 0 clamp(.75rem, 2vw, 1.65rem);
  font-size: clamp(1.55rem, 4.1vw, 3.65rem);
  text-align: center;
}
.featured-gear h2::before, .featured-gear h2::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--teal);
}
.featured-gear-grid, .features { display: grid; gap: clamp(.55rem, 1.25vw, 1.25rem); }
.featured-gear-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.featured-gear-card { min-width: 0; text-align: center; }
.featured-gear-card a { display: block; }
.featured-gear-photo {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  aspect-ratio: 1.55;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.featured-gear-photo:has(img:not(.featured-gear-crest)) { display: block; }
.featured-gear-photo img { width: 100%; height: 100%; object-fit: contain; }
.featured-gear-photo .featured-gear-crest { width: clamp(44px, 7vw, 95px); height: auto; }
.featured-gear-photo span { color: var(--muted); font-size: .75rem; }
.featured-gear-card h3 { margin: .6rem 0 .25rem; font-size: clamp(.85rem, 1.5vw, 1.2rem); }
.featured-gear-card strong { color: var(--teal); }
.features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: clamp(1rem, 2.5vw, 2rem);
}
.feature {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  gap: .35rem;
  min-width: 0;
  min-height: clamp(110px, 13vw, 205px);
  padding: clamp(.55rem, 1.6vw, 1.4rem);
  border: 1px solid var(--line);
  background: var(--panel) center / cover no-repeat;
  text-align: right;
}
.feature h2 { margin: 0; font-size: clamp(.9rem, 2.25vw, 2.2rem); line-height: 1; }
.feature span { color: var(--teal); font-size: clamp(.65rem, 1.1vw, .95rem); font-weight: 800; }
.feature:hover h2 { text-decoration: underline; text-underline-offset: .16em; }
.feature-new { background-image: linear-gradient(0deg, var(--ink), transparent), url('assets/charlotte-skyline-wide.webp'); }
.feature-sideline { background-image: linear-gradient(0deg, var(--ink), transparent), url('assets/gameday.webp'); }
.feature-team { background-image: linear-gradient(0deg, var(--ink), transparent), url('assets/lifestyle.webp'); }
.shop h1 { font-size: clamp(2rem, 5vw, 4rem); margin: .35rem 0; }
@media (max-width: 620px) {
  .featured-gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer { flex-wrap: wrap; }
}
