@font-face {
  font-family: 'Sister Spray';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/sister-spray.ttf') format('truetype');
}

:root {
  --ink: #292d30;
  --paper: #eee9db;
  --muted: #c5bfb0;
  --rule: #eee9db38;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  min-height: 100%;
  background: radial-gradient(ellipse at 48% 35%, #535650 0%, #303536 48%, #1e2427 100%) fixed;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(16px, 5vw, 72px);
  color: var(--paper);
  font: 400 15px/1.5 'DM Sans', Arial, sans-serif;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shirts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
  font: 800 42px/.9 'Barlow Condensed', Impact, sans-serif;
}
.wordmark sup { font: 10px/1 Arial, sans-serif; margin-left: 4px; }
.shirts-header nav { display: flex; align-items: center; gap: clamp(14px, 4vw, 36px); }
.shirts-header nav a, .shirts-header .shop-cart-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.shirts-main { flex: 1; padding-block: clamp(18px, 3vw, 36px) 30px; text-align: center; }
.shirts-intro { margin-bottom: 22px; }
.shirts-intro h1 {
  margin: 5px 0 8px;
  font: 800 clamp(48px, 8vw, 78px)/.9 'Barlow Condensed', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.shirt-gallery {
  display: grid;
  grid-template-columns: 1fr minmax(0, max-content) 1fr;
  grid-template-areas: ". stage upcoming" ". info .";
  align-items: center;
  column-gap: clamp(12px, 3vw, 32px);
}
.shirt-stage {
  grid-area: stage;
  display: grid;
  grid-template-columns: 44px minmax(0, min(48vw, 54svh, 460px)) 44px;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
}
.shirt-photo {
  grid-column: 2;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.06;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: zoom-in;
  filter: drop-shadow(4px 12px 12px #101517b0);
  touch-action: pan-y;
}
.shirt-photo:disabled { cursor: default; }
.shirt-photo:disabled .shirt-zoom-icon { display: none; }
.shirt-zoom-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: #292d30;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}
.shirt-photo:hover .shirt-zoom-icon { background: var(--paper); color: var(--ink); }
.shirt-photo img, .shirt-upcoming img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.shirt-photo img { position: absolute; inset: 0; pointer-events: none; }
.shirt-photo img[data-cutout="front"], .shirt-photo img[data-cutout="back"] {
  top: 50%;
  bottom: auto;
  height: auto;
  translate: 0 -50%;
}
/* Clip the backdrop in the gallery while displaying the original product photos. */
img[data-cutout="front"] {
  clip-path: polygon(
    2.1% 38%, 16% 24%, 20.8% 20%, 24.5% 18.1%, 31% 15.9%, 38.1% 14%,
    42.2% 15.3%, 46% 15.9%, 50% 16.1%, 54% 15.9%, 58% 15%, 61.1% 14%,
    68.2% 15.7%, 75.6% 18%, 79.3% 20.1%, 85% 25.1%, 97.5% 38%,
    79.8% 47.3%, 75.2% 45.2%, 75.3% 85.5%, 70% 85.7%, 60% 85.3%,
    50% 85.7%, 37% 85.4%, 28% 85.7%, 24.5% 85.4%, 24.5% 45.2%, 20.4% 47.2%
  );
}
img[data-cutout="back"] {
  clip-path: polygon(
    2.3% 38.2%, 16.5% 24%, 20.9% 20%, 24.8% 18%, 31% 16.1%, 38.7% 14.1%,
    42% 15.4%, 46% 16.1%, 50% 16.4%, 54% 16%, 58% 15.2%, 61.2% 14.1%,
    69.1% 16%, 75.3% 18.1%, 79.1% 20.1%, 84.5% 24.8%, 97.5% 38.2%,
    79.2% 47.4%, 75.5% 45.7%, 75.6% 85.3%, 69.3% 85.5%, 54% 86%,
    48% 86%, 36.8% 85.4%, 26.2% 85.5%, 24.4% 85.2%, 24.4% 45.7%, 20.7% 47.3%
  );
}
.shirt-arrow, .shirt-upcoming, .shirt-views button, .shirt-actions button {
  min-height: 44px;
  color: inherit;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.shirt-arrow { border-radius: 50%; padding: 0; font-size: 21px; }
#previousShirt { grid-column: 1; grid-row: 1; }
#nextShirt { grid-column: 3; grid-row: 1; }
.shirt-arrow:hover, .shirt-views button:hover { background: #eee9db18; }
.shirt-upcoming {
  grid-area: upcoming;
  justify-self: start;
  display: grid;
  gap: 10px;
  width: clamp(80px, 13vw, 160px);
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.shirt-upcoming img {
  height: auto;
  opacity: .6;
}
.shirt-upcoming:hover img, .shirt-upcoming:focus-visible img { opacity: 1; }
.shirt-info { grid-area: info; padding-top: 17px; }
.shirt-number { margin: 0 0 4px; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.shirt-info h2 {
  margin: 0 0 10px;
  font: 700 clamp(28px, 5vw, 46px)/.98 'Barlow Condensed', Impact, sans-serif;
}
.shirt-views, .shirt-actions { display: flex; justify-content: center; align-items: center; gap: 10px; }
.shirt-views button {
  min-width: 68px;
  padding: 4px 12px;
  font-size: 12px;
}
.shirt-views button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.shirt-actions { gap: 22px; margin-top: 15px; flex-wrap: wrap; }
.shirt-price { display: inline-flex; align-items: center; gap: 8px; padding: 6px; }
.shirt-price-prefix { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.shirt-currency { font: 700 .75em/1 'DM Sans', Arial, sans-serif; margin-right: 3px; }
.shirt-price-tag {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: #ff6158;
  font: 400 clamp(18px, 2.2vw, 24px)/1.5 'Sister Spray', 'Barlow Condensed', sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  rotate: -3deg;
  text-shadow: 1px 2px 0 #601b1b;
}
.shirt-price-tag::after {
  content: '';
  position: absolute;
  inset: auto -2% -3px -2%;
  height: 5px;
  background: currentColor;
  transform: skewX(-35deg) rotate(-2deg);
  clip-path: polygon(0 28%, 96% 0, 100% 40%, 16% 100%, 2% 77%);
}
.shirt-price-tag::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -6px -8px -10px;
  background:
    radial-gradient(circle at 4% 22%, currentColor 0 1px, transparent 2px),
    radial-gradient(circle at 8% 76%, currentColor 0 1px, transparent 2px),
    radial-gradient(circle at 93% 34%, currentColor 0 1px, transparent 2px),
    radial-gradient(circle at 96% 80%, currentColor 0 2px, transparent 3px),
    radial-gradient(circle at 88% 93%, currentColor 0 1px, transparent 2px);
}
.shirt-actions button { border: 0; text-decoration: underline; text-underline-offset: 4px; }
.shirt-actions button:disabled { opacity: .65; cursor: default; }

@media (max-width: 700px) {
  .shirts-header { min-height: 66px; }
  .wordmark { font-size: 34px; }
  .shirt-gallery { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "info" "upcoming"; }
  .shirt-stage { justify-content: center; grid-template-columns: 44px minmax(0, min(68vw, 52svh, 330px)) 44px; gap: 6px; }
  .shirt-upcoming {
    justify-self: center;
    grid-template-columns: 44px auto;
    align-items: center;
    width: auto;
    margin-top: 8px;
  }
}
.shirt-details-dialog { width: min(840px, calc(100vw - 32px)); }
.shirt-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 20px;
}
.shop-cart .shirt-details-photo {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0 12px 14px;
  background: #d9d4c6;
  cursor: zoom-in;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.shirt-details-photo img { display: block; width: min(100%, 250px); height: auto; }
.shirt-details-info h3 { margin: 0 0 5px; font: 700 23px/1.2 'Barlow Condensed', Impact, sans-serif; }
.shirt-details-info p, .shirt-details-info ul { font-size: 13px; line-height: 1.5; }
.shirt-details-info ul { margin: 0 0 15px; padding-left: 18px; }
#shirtDescription { margin: 0 0 12px; white-space: pre-line; }
.shirts-purchase {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid #292d3033;
}
.shirt-details-dialog .shirts-purchase #printBuy {
  flex-basis: 100%;
  min-height: 52px;
  margin: 4px 0 8px;
  padding: 14px 20px;
  border: 1px solid #8f211c;
  background: #b52b24;
  color: #fff7e8;
  box-shadow: 0 3px 0 #7c211c;
  font: 700 15px/1.3 'DM Sans', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.shirt-details-dialog .shirts-purchase #printBuy:hover:not(:disabled) { background: #96231e; }
.shirt-details-dialog .shirts-purchase #printBuy:active:not(:disabled) { translate: 0 2px; box-shadow: 0 1px 0 #7c211c; }
.shirt-details-dialog .shirts-purchase #printBuy:focus-visible { outline-offset: 5px; }
.shirt-details-dialog #printPrice.shirt-price-tag { color: #be2520; font-size: 18px; text-shadow: none; margin: 14px 6px; }
.shirt-delivery { margin: 4px 0 0; color: #525a58; }
.shirt-zoom-dialog { width: min(900px, calc(100vw - 28px)); }
.shirt-zoom-viewport {
  height: min(57svh, 560px);
  margin-top: 14px;
  overflow: auto;
  background: #353937;
  cursor: grab;
}
.shirt-zoom-viewport:active { cursor: grabbing; }
.shirt-zoom-surface { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; }
.shirt-zoom-surface img { display: block; height: auto; user-select: none; pointer-events: none; }
.shirt-zoom-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.shirt-zoom-controls output { min-width: 52px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.shirt-zoom-controls button { width: 44px; border: 1px solid #292d3066; font-size: 22px; }
.shirt-zoom-controls button:disabled { opacity: .4; cursor: default; }
.shirt-zoom-hint { margin: 8px 0 0; text-align: center; color: #525a58; font-size: 12px; }
@media (max-width: 640px) {
  .shirt-details-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shirt-details-photo img { width: min(100%, 130px); }
  .shirt-zoom-dialog .cart-heading h2 { font-size: 25px; }
}
