:root {
  color-scheme: light;
  --ivory: #f6f3ec;
  --charcoal: #252620;
  --ink-soft: #605d52;
  --gold: #9c7d48;
  --rule: #d7cfc0;
  font-family: Futura, "Century Gothic", "Avenir Next", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1760px; padding: 0 clamp(24px, 5.25vw, 88px); }
a { color: inherit; }
.site-header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header {
  min-height: 84px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: block;
  width: clamp(142px, 19vw, 216px);
  padding: 12px 0;
  flex-shrink: 0;
}
.wordmark img { display: block; width: 100%; height: auto; filter: brightness(.2); }
.header-link, .eyebrow, label, figcaption, footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.header-link { text-decoration: none; padding: 12px 0; }
.header-link span { margin-left: 7px; color: var(--gold); }
.header-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: center;
  padding: clamp(32px, 4.2vw, 70px) 0;
}
.intro { padding: 8px 0 36px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 29px; line-height: 1.5; }
.eyebrow span { width: 24px; height: 1px; background: var(--gold); flex: none; }
h1 {
  margin: 0;
  font: 400 clamp(43px, 5.6vw, 96px)/1.04 Futura, "Century Gothic", "Avenir Next", Arial, sans-serif;
  letter-spacing: -.055em;
}
h1 em { font-style: normal; color: #816941; }
.description {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  max-width: 340px;
  margin: 28px 0 33px;
}
form { max-width: 440px; scroll-margin: 28px; }
label { display: block; margin-bottom: 11px; }
.signup { display: flex; }
input, button { font: inherit; min-height: 52px; }
input {
  min-width: 0;
  flex: 1;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid #a79e8d;
  border-radius: 0;
  padding: 0 13px;
  font-size: 16px;
}
input::placeholder { color: var(--ink-soft); opacity: 1; }
button {
  border: 1px solid var(--charcoal);
  border-radius: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0 15px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
button span { color: #dcc393; margin-left: 7px; }
button:hover { background: #414239; }
:focus-visible { outline: 2px solid #816941; outline-offset: 4px; }
#signup-note { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 11px 0 0; }

.product { width: 100%; max-width: 650px; margin: 0; min-width: 0; justify-self: center; }
footer { border-top: 1px solid var(--rule); padding: 21px 0; color: var(--ink-soft); }

@media (max-width: 740px) {
  .site-header { min-height: 68px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 32px; }
  .intro { padding: 0; }
  h1 { font-size: clamp(36px, 10vw, 72px); }
  .eyebrow { margin-bottom: 22px; }
  .description { margin: 22px 0 28px; }
  figcaption { font-size: 9px; }
}

@media (max-width: 350px) {
  .signup { flex-direction: column; gap: 8px; }
}

.jersey-window {
  overflow: hidden;
  background: #ebded1;
}
.jersey-track {
  display: flex;
  aspect-ratio: 1;
  transition: transform 1.35s ease-in-out;
}
.jersey-track img {
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ebded1;
}
.jersey-controls, .jersey-controls div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.jersey-controls {
  justify-content: space-between;
  margin-top: 8px;
}
#jersey-colour {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.jersey-controls button {
  min-width: 40px;
  min-height: 44px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  color: var(--charcoal);
}
.jersey-controls button:hover { border-color: var(--rule); }
@media (prefers-reduced-motion: reduce) {
  .jersey-track { transition: none; }
}

@media (min-width: 741px) and (min-height: 450px) {
  body {
    --header-height: 56px;
    --footer-height: 38px;
    --hero-inset: clamp(8px, 2dvh, 20px);
    --carousel-controls-height: 52px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
  }
  .site-header { min-height: var(--header-height); }
  .hero { padding-block: var(--hero-inset); }
  .intro { padding: 0; }
  .eyebrow { margin-bottom: clamp(12px, 2.7dvh, 24px); }
  h1 { font-size: clamp(38px, min(5.6vw, 10.5dvh), 96px); }
  .description { margin-block: clamp(14px, 3dvh, 25px); }
  .product {
    max-width: min(650px, calc(100dvh - var(--header-height) - var(--footer-height) - 2 * var(--hero-inset) - var(--carousel-controls-height)));
  }
  footer {
    min-height: var(--footer-height);
    padding-block: 6px;
  }
}
