@font-face {
  font-family: 'Old Standard TT';
  src: url('./assets/old-standard-tt-cyrillic.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Old Standard TT';
  src: url('./assets/old-standard-tt-latin.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('./assets/roboto-condensed-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('./assets/roboto-condensed-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  font-family: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  color: #141414;
  background: #fff;
  font-synthesis: none;
  --gutter: clamp(1.125rem, 4.2vw, 5.5rem);
  --line: #dbdbd8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, a { color: inherit; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #687b52; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 20; top: .5rem; left: .5rem; background: white; padding: .75rem; }

.stage {
  --hero-height: max(100svh, 29rem);
  --catalog-top: clamp(9.5rem, 15vw, 13.25rem);
  --mark-width: clamp(28.75rem, 62vw, 56.875rem);
  --mark-height: calc(var(--mark-width) * 178 / 685);
  --mark-top: calc(var(--hero-height) * .44 - var(--mark-height) / 2);
  position: relative;
  isolation: isolate;
}
.hero { position: relative; height: var(--hero-height); background: #222; }
.stadium, .stadium img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stadium img { object-fit: cover; }

.mark-zone {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.mark-zone--light { clip-path: inset(0 0 calc(100% - var(--hero-height)) 0); }
.mark-zone--dark { clip-path: inset(var(--hero-height) 0 0 0); }
.travel-mark {
  position: sticky;
  top: var(--mark-top);
  width: var(--mark-width);
  height: auto;
  margin-inline: auto;
}
.mark-zone--dark img { filter: invert(1); }

.catalog { padding: var(--catalog-top) var(--gutter) clamp(3.5rem, 7vw, 7.5rem); }
.product-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card { min-width: 0; }
.card-visual {
  position: relative;
  aspect-ratio: 443 / 438;
}
.card-image-link { position: absolute; inset: 0; display: block; perspective: 55rem; }
/* A contact shadow stays on the ground while the hat turns. */
.card-image-link::before, .gallery-photo::before {
  content: '';
  position: absolute;
  inset: 90% 4% 1%;
  background: radial-gradient(ellipse at center, #0004, #0000 71%);
  pointer-events: none;
}
.turntable {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.22,.65,.28,1);
}
.turntable img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}
.turntable .back { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .card-image-link:hover .turntable { transform: rotateY(180deg); }
}
.card-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
  min-height: 2.75rem;
  padding: .75rem 0 0;
  background: #fff;
}
.card-caption h3 { font-weight: 560; font-size: 1rem; }
.card-caption a:hover { text-decoration: underline; text-underline-offset: .2em; }
.card-price { color: #555; font-size: .9375rem; white-space: nowrap; }

.intro {
  display: grid;
  place-items: center;
  min-height: min(65svh, 39rem);
  padding: clamp(4.5rem, 11vw, 10rem) var(--gutter);
  text-align: center;
  color: #f5f5f5;
  background-color: #4a4a4a;
  background-image:
    url('./assets/grain.webp'),
    radial-gradient(ellipse at 45% 32%, #656565 0%, #454545 51%, #262626 100%);
  background-blend-mode: soft-light, normal;
}
.intro h2 {
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: clamp(1.95rem, 5.05vw, 5.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.intro h2 > span { display: block; }
.intro h2 span span { display: inline-block; }
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: .875rem var(--gutter);
  border-top: 1px solid var(--line);
}
footer a { align-content: center; min-height: 2.75rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; column-gap: 1rem; }
.footer-logo img { width: 6.75rem; height: auto; filter: invert(1); }

.detail { max-width: 90rem; padding: 1.5rem var(--gutter) 5rem; margin-inline: auto; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-bottom: 1.25rem;
  font-size: .9375rem;
  color: #535353;
}
.breadcrumb .cart-link { margin-inline-start: auto; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .2em; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6.5rem);
}
.gallery-photo { position: relative; max-width: 30rem; margin-inline: auto; }
.gallery-photo img { position: relative; width: 100%; height: auto; }
.gallery-controls { display: flex; }
.gallery-controls button {
  flex: 1 0 50%;
  min-height: 2.875rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.gallery-controls button[aria-pressed="true"] { box-shadow: inset 0 -2px #141414; font-weight: 650; }
.detail-info { padding-top: clamp(.25rem, 3vw, 3rem); }
.detail-info h1 { font-size: clamp(2.5rem, 5.9vw, 5.85rem); font-weight: 640; line-height: .94; letter-spacing: -.035em; }
.detail-price { margin-top: 1rem; font-size: 1.25rem; }
.specs { border-top: 1px solid var(--line); margin-top: 1.75rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.detail-note { margin-top: .75rem; color: #555; font-size: .875rem; }
.primary-action {
  display: grid;
  place-items: center;
  min-height: 3rem;
  width: 100%;
  margin-top: 1.25rem;
  border: 0;
  padding: .625rem;
  background: #161616;
  color: #fff;
  text-align: center;
}

.cart-status { margin-top: .75rem; font-size: .9375rem; }
.cart-status:empty { margin: 0; }
.cart { max-width: 62rem; min-height: 64svh; }
.cart h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1; }
.cart-empty, .cart-items { margin: 1.5rem 0 0; }
.cart-items { padding: 0; list-style: none; }
.cart-item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .5rem 1.25rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 100%; height: auto; }
.cart-item-name { font-size: 1.125rem; }
.cart-item-name:hover { text-decoration: underline; }
.cart-quantity { display: flex; align-items: center; gap: .5rem; }
.cart-quantity button { width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); background: #fff; }
.cart-item-price { text-align: end; white-space: nowrap; min-width: 5rem; }
.cart-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; font-size: 1.25rem; }

@media (max-width: 520px) {
  .cart-item { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: .5rem .75rem; }
  .cart-item img { grid-row: span 2; }
  .cart-item-name { grid-column: 2 / -1; }
  .cart-item-price { min-width: 0; }
}

@media (max-width: 760px) {
  .stage {
    --hero-height: max(100svh, 25rem);
    --mark-width: min(88vw, 30.625rem);
    --catalog-top: 8.5rem;
  }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .625rem; }
  .card-caption { flex-direction: column; align-content: start; justify-content: start; padding-top: .55rem; }
  .detail { padding-top: .875rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mark-zone--light .travel-mark { position: relative; }
  .mark-zone--dark { display: none; }
  .turntable { transition: none; }
}
