:root {
  --blue: #1591D2;        /* Simonis Tournament Blue, sampled from the cloth */
  --blue-light: #179EE5;  /* a touch lighter, for alternating sections */
  --blue-deep: #0B5F8F;   /* the "Get a Nice Rack" band */
  --ink: #0A1E2B;         /* secondary text */
  --yellow: #F4B400;      /* Buy now */
  --line: rgba(0, 0, 0, 0.28);
  --pad: 80px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--blue);
  color: #000;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #000; }
a:hover { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
a:focus-visible, button:focus-visible, select:focus-visible, canvas:focus-visible {
  outline: 3px solid #000; outline-offset: 3px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band { background: var(--blue); padding: 112px 0; }
.band-light { background: var(--blue-light); }
.band-deep { background: var(--blue-deep); color: #fff; }

h1, h2 { margin: 0; font-weight: 800; font-style: italic; font-stretch: 125%; letter-spacing: -0.01em; }
h1 { font-size: 60px; line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: 48px; line-height: 1.05; }
p { margin: 0; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.brand img { width: 469px; }
.main-nav { display: flex; gap: 40px; font-size: 16px; font-weight: 600; }
.main-nav a { text-decoration: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  grid-template-areas: "copy photo" "buy photo";
  column-gap: 64px; row-gap: 28px;
  align-items: center;
  padding-top: 48px; padding-bottom: 96px;
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 28px; align-self: end; }
.hero-photo { grid-area: photo; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero-buy { grid-area: buy; display: flex; flex-direction: column; gap: 16px; align-self: start; padding-top: 12px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 30em; text-wrap: pretty; }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.price { font-size: 40px; font-weight: 800; font-style: italic; font-stretch: 125%; }
.ship { font-size: 15px; font-weight: 600; }

.buy-btn {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 24px; border-radius: 12px;
  background: var(--yellow); color: #000; text-decoration: none;
  font-size: 19px; font-weight: 800; font-style: italic; font-stretch: 125%;
}
.buy-btn:hover { color: #000; background: #FFC21A; }

/* Pickers */
.picker { display: flex; flex-direction: column; gap: 12px; }
.picker-label { font-size: 16px; font-weight: 700; }
.picker-label span { font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ring-bg, var(--blue)), 0 0 0 5px #000; }
.chip {
  min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 2px solid #000;
  background: transparent; color: #000; font-size: 14px; font-weight: 700; line-height: 1.2;
}
.chip[aria-pressed="true"] { background: #000; color: #fff; }
.note { font-size: 14px; line-height: 1.45; color: var(--ink); }

/* Specs */
.band-light { --ring-bg: var(--blue-light); }
#specs h2 { font-size: 40px; margin-bottom: 24px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin: 0; font-size: 20px; line-height: 1.45; }
.specs > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.specs > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--ink); }

/* 3D preview */
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-head p { font-size: 19px; line-height: 1.5; color: var(--ink); max-width: 34em; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 64px; align-items: start; }
.stage { position: relative; height: 720px; border-radius: var(--radius); overflow: hidden; background: #0d3a55; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.stage-caption { position: absolute; left: 24px; bottom: 20px; font-size: 15px; font-weight: 700; color: #fff; pointer-events: none; }
.stage-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px; text-align: center; color: #fff; font-size: 16px; }
.stage-msg[hidden] { display: none; }
.viewbar { position: absolute; top: 16px; left: 16px; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.5); }
.viewbar button { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 14px; font-weight: 700; }
.viewbar button[aria-pressed="true"] { background: #fff; color: #000; }
.stage-hint { margin-top: 10px; font-size: 13px; color: var(--ink); text-align: right; }
.controls { display: flex; flex-direction: column; gap: 28px; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brand-grid .chip { text-align: left; }
.cloth-grid { display: grid; grid-template-columns: repeat(8, 44px); gap: 10px; }
.ball-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.logo-head { display: flex; align-items: center; gap: 16px; }
.toggle {
  height: 44px; min-width: 72px; padding: 0 14px; border-radius: 10px; border: 2px solid #000;
  background: transparent; color: #000; font-size: 14px; font-weight: 700;
}
.toggle[aria-pressed="true"] { background: #000; color: #fff; }

/* Photos */
#photos h2 { margin-bottom: 48px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 254px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.g-main { grid-column: span 2; grid-row: span 2; object-position: 50% 60%; }
.g-corner { grid-row: span 2; object-position: 50% 60%; }
.g-table { grid-column: span 2; object-position: 50% 32%; }
.g-side { object-position: 60% 60%; }

/* Call to action */
.cta { padding: 96px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 64px; }
.cta h2 { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.cta-copy p { font-size: 19px; line-height: 1.5; max-width: 30em; }
.cta a:not(.buy-btn) { color: #fff; }
.cta-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }
.cta-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cta-row { display: flex; gap: 12px; }
.cta .buy-btn { width: 280px; height: 60px; font-size: 20px; }
.select-wrap { position: relative; display: flex; }
.select-wrap select {
  height: 60px; width: 150px; padding: 0 40px 0 16px; border: 2px solid #000; border-radius: 12px;
  background: #fff; color: #000; font-family: inherit; font-size: 17px; font-weight: 700;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.select-wrap svg { position: absolute; right: 16px; top: 50%; margin-top: -4px; pointer-events: none; fill: none; stroke: #000; stroke-width: 2; }

/* Returns */
#returns { padding: 96px 0 64px; }
.returns { display: flex; flex-direction: column; gap: 20px; }
.returns h2 { font-size: 40px; line-height: 1.08; }
.returns p { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 42em; }
.returns strong { color: #000; }

/* Footer */
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 374px; }
.footer-brand p { font-size: 14px; color: var(--ink); }
.site-footer nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }

/* Medium screens */
@media (max-width: 1199px) {
  :root { --pad: 48px; }
  h1 { font-size: 52px; }
  .hero { column-gap: 48px; }
  .preview-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
  .stage { height: 600px; }
  .cloth-grid { grid-template-columns: repeat(6, 44px); justify-content: space-between; }
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-last-child(2) { border-bottom: 0; }
}

/* Phones and small tablets */
@media (max-width: 899px) {
  :root { --pad: 24px; --radius: 20px; }
  .band { padding: 56px 0; }
  h1 { font-size: 36px; line-height: 1.04; font-stretch: 112%; }
  h2 { font-size: 30px; line-height: 1.08; font-stretch: 115%; }

  .site-header { padding-top: 16px; padding-bottom: 8px; }
  .brand img { width: min(342px, 100%); }
  .main-nav { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo" "buy";
    row-gap: 20px; padding-top: 20px; padding-bottom: 48px;
  }
  .hero-copy { gap: 20px; }
  .lede { font-size: 17px; }
  .hero-buy { gap: 12px; padding-top: 4px; }
  .price-line { flex-direction: column; align-items: flex-start; }
  .price { font-size: 32px; }

  #specs h2 { font-size: 30px; margin-bottom: 16px; }
  .specs { font-size: 18px; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }

  .section-head { gap: 12px; margin-bottom: 24px; }
  .section-head p { font-size: 17px; }
  .preview-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stage { height: 360px; overflow: visible; background: transparent; }
  .stage canvas { border-radius: var(--radius); background: #0d3a55; height: 360px; }
  .stage-caption { left: 16px; bottom: auto; top: 324px; font-size: 14px; }
  .stage-msg { height: 360px; border-radius: var(--radius); }
  .viewbar { position: static; margin-top: 10px; background: #2E3338; }
  .viewbar button { flex: 1 1 0; padding: 0 6px; }
  .stage-col { display: flex; flex-direction: column; }
  .stage { height: auto; }
  .stage-hint { text-align: center; }
  .brand-grid .chip { min-height: 52px; }
  .cloth-grid { grid-template-columns: repeat(6, 44px); justify-content: space-between; row-gap: 12px; }
  .logo-head { justify-content: space-between; }
  .controls .swatches { justify-content: space-between; gap: 8px; }
  .hero-buy .swatches { gap: 12px; }

  #photos h2 { margin-bottom: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .g-main { grid-column: span 2; grid-row: auto; height: 260px !important; }
  .g-corner { grid-row: auto; height: 220px !important; }
  .g-side { height: 220px !important; object-position: 75% 60%; }
  .g-table { grid-column: span 2; height: 170px !important; object-position: 50% 0%; }
  .gallery .g-side { order: 3; }
  .gallery .g-table { order: 4; }

  .cta { padding: 56px 0; }
  .cta-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta h2 { font-size: 40px; margin-bottom: 12px; }
  .cta-copy p { font-size: 16px; }
  .cta-buy, .cta-price { align-items: flex-start; }
  .cta-buy { align-items: stretch; }
  .cta .price { font-size: 32px; }
  .cta-row { gap: 10px; }
  .select-wrap select { width: 128px; height: 56px; font-size: 16px; }
  .cta .buy-btn { width: auto; flex-grow: 1; height: 56px; font-size: 18px; }

  #returns { padding: 56px 0 24px; }
  .returns { gap: 16px; }
  .returns h2 { font-size: 30px; }
  .returns p { font-size: 17px; }

  .site-footer { flex-direction: column; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
  .footer-brand img { width: min(304px, 100%); }
  .site-footer nav { gap: 24px; }
}
