:root {
  --bg: #0d0c0a;
  --surface: #181613;
  --text: #efe7d8;
  --muted: #aca291;
  --line: rgba(239, 231, 216, 0.18);
  --sand: #d9c9ae;
  --sand-edge: rgba(26, 21, 13, 0.32);
  --on-sand: #1a150d;
  --on-sand-muted: #5b4f3c;
  --gold: #bfa06a;
  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --ui: "Jost", "Century Gothic", "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--ui);
}

main { flex: 1; width: 100%; outline: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  padding: 8px 14px;
  background: var(--sand);
  color: var(--on-sand);
  z-index: 10;
}
.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-left, .nav-right { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.nav-right { justify-content: flex-end; }

.nav-link, .lang {
  padding: 6px 0;
  background: none;
  border: 0;
  color: inherit;
  font: 500 13px/1.4 var(--ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover, .lang:hover { color: var(--gold); }

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.wordmark b { font: 500 26px/1 var(--display); }
.wordmark span { margin-top: 3px; margin-right: -0.34em; font-size: 8px; font-weight: 500; letter-spacing: 0.34em; }

/* Home */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(76vh, 720px);
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  text-align: center;
}
.hero h1 { width: min(68vw, 460px); margin-bottom: clamp(30px, 5vw, 48px); }
.hero h1 img { width: 100%; height: auto; }
.hero .tagline { font: italic 500 clamp(23px, 3.2vw, 34px)/1.25 var(--display); }
.hero .intro { max-width: 34em; margin: 14px auto 30px; color: var(--muted); }

.statement {
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  background: var(--sand);
  color: var(--on-sand);
  text-align: center;
}
.statement p { font: 500 clamp(30px, 5vw, 54px)/1.15 var(--display); }
.statement .rule { width: 1px; height: 44px; margin: 26px auto; background: var(--on-sand); }
.statement b { font: 500 24px/1 var(--display); }

.section { padding: clamp(40px, 6vw, 80px) var(--gutter); border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.section-head h1, .section-head h2 { font: 500 clamp(30px, 4.5vw, 48px)/1.1 var(--display); }
.section-head a { flex: none; font-size: 15px; text-underline-offset: 4px; }

.button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--sand);
  border: 1px solid var(--sand);
  color: var(--on-sand);
  font: 500 13px/1.4 var(--ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.button:hover:not(:disabled) { background: transparent; color: var(--sand); }
.button:disabled { background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed; }

/* Jersey grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 3.5vw, 48px) clamp(14px, 2.5vw, 32px);
}
.card { display: block; text-decoration: none; }
.card h3, .card h2 { margin-top: 14px; font: 500 21px/1.2 var(--display); }
.card .meta { color: var(--muted); font-size: 15px; }
.card:hover h3, .card:hover h2 { color: var(--gold); }

.was { color: var(--muted); text-decoration: line-through; }
.now { color: var(--text); font-weight: 500; }
.price-line { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 2px; }

/* The image area: a real photo when there is one, otherwise an archive card. */
.plate {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: clamp(18px, 12%, 56px);
  background: var(--surface);
  overflow: hidden;
}
.plate.has-photo { padding: 0; }
.plate img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10% 8%;
  background: var(--sand);
  color: var(--on-sand);
  outline: 1px solid var(--sand-edge);
  outline-offset: -7px;
  text-align: center;
  container-type: inline-size;
  transition: transform 0.35s ease;
}
.card:hover .tag { transform: translateY(-4px); }
.tag-eyebrow { font-size: clamp(9px, 4.6cqi, 13px); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.tag-team { margin-top: 12%; font: 500 clamp(17px, 12cqi, 38px)/1.12 var(--display); }
.tag-rule { width: 18px; height: 1px; margin: 9% 0; background: var(--on-sand); }
.tag-player { color: var(--on-sand-muted); font: 500 clamp(13px, 7cqi, 21px)/1.25 var(--display); }
.tag-mark { margin-top: auto; font: 500 clamp(14px, 8cqi, 24px)/1 var(--display); }

/* Product */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(44px, 6vw, 80px);
}
.back { display: inline-block; margin-bottom: 20px; font-size: 15px; text-underline-offset: 4px; }
.collection-name { margin-bottom: 10px; color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.product h1 { font: 500 clamp(36px, 5vw, 58px)/1.05 var(--display); }
.product .player { margin-top: 8px; color: var(--sand); font: italic 500 clamp(21px, 2.5vw, 27px)/1.2 var(--display); }
.product .price-line { margin-top: 18px; font-size: 21px; gap: 0 12px; }
.product .saving { color: var(--gold); font-size: 15px; }
.notes { margin: 18px 0 0; padding: 0; color: var(--muted); list-style: none; }

fieldset { margin: 26px 0 22px; padding: 0; border: 0; }
legend { margin-bottom: 10px; padding: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; }
.size input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.size > span {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--text);
  cursor: pointer;
}
.size input:checked + span { background: var(--sand); border-color: var(--sand); color: var(--on-sand); }
.size input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.size input:disabled + span {
  border-color: var(--line);
  color: var(--muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

.product form .button { width: 100%; }
.status { min-height: 1.55em; margin-top: 12px; font-size: 15px; }
.status a { text-underline-offset: 3px; }
.fine { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* Cart */
.cart { max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(44px, 6vw, 80px); }
.cart h1 { margin-bottom: 26px; font: 500 clamp(36px, 5vw, 54px)/1.1 var(--display); }
.line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.line .plate { aspect-ratio: 1; padding: 0; background: var(--sand); color: var(--on-sand); }
.line .plate.has-photo { display: block; }
.line .plate.has-photo img { object-position: top; }
.line .plate .tag { padding: 0; justify-content: center; outline-offset: -5px; }
.line .plate .tag > :not(.tag-mark) { display: none; }
.line .plate .tag-mark { margin: 0; font-size: 18px; }
.line h2 { font: 500 20px/1.25 var(--display); }
.line .meta { color: var(--muted); font-size: 15px; }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--text); }
.stepper button { width: 36px; height: 36px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; }
.remove { padding: 8px 0; background: none; border: 0; color: inherit; font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.summary { padding-top: 20px; border-top: 1px solid var(--text); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.summary-row.total { font-size: 21px; }
.summary .button { width: 100%; margin-top: 18px; }
.summary .fine { margin-top: 10px; padding-top: 0; border: 0; text-align: center; }
.summary .fine.nudge { color: var(--gold); text-align: left; }

.empty { padding: clamp(60px, 10vw, 120px) var(--gutter); text-align: center; }
.empty h1 { margin-bottom: 22px; font: 500 clamp(30px, 4.5vw, 46px)/1.15 var(--display); }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer em { font-family: var(--display); font-size: 16px; }

.noscript { padding: 24px var(--gutter); text-align: center; }

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

@media (max-width: 520px) {
  .nav-link, .lang { font-size: 12px; letter-spacing: 0.1em; }
  .wordmark b { font-size: 22px; }
  .card h3, .card h2 { font-size: 18px; }
  .plate { padding: 12px; }
  .line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- History book ---------- */
html { scroll-padding-top: 90px; }

.eyebrow { color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }

.button.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.button.ghost:hover:not(:disabled) { border-color: var(--sand); color: var(--sand); }

/* Compact hero: copy beside three model panels. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  flex-direction: unset;
  align-items: center;
  justify-content: unset;
  gap: clamp(24px, 4vw, 56px);
  min-height: 0;
  padding: clamp(28px, 4vw, 48px) var(--gutter);
  text-align: left;
}
.hero h1 { width: auto; margin: 12px 0 0; font: 500 clamp(32px, 4vw, 52px)/1.08 var(--display); }
.hero .intro { max-width: 30em; margin: 16px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-panels img { width: 100%; height: clamp(280px, 34vw, 430px); object-fit: cover; object-position: top; }

.ticker { overflow: hidden; padding: 12px 0; background: var(--sand); color: var(--on-sand); }
.ticker-track { display: flex; width: max-content; gap: 44px; animation: ticker 60s linear infinite; }
.ticker span { font: 500 17px/1.2 var(--display); white-space: nowrap; }
.ticker i { margin-left: 8px; color: var(--on-sand-muted); font: 500 12px var(--ui); letter-spacing: 0.1em; }
@keyframes ticker { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  background: var(--surface);
}
.about > img { width: min(100%, 340px); height: auto; justify-self: center; }
.about h2 { margin: 12px 0 14px; font: 500 clamp(26px, 3.2vw, 40px)/1.15 var(--display); }
.about p:not(.eyebrow) { max-width: 38em; color: var(--muted); font-size: 18px; }

/* Cards */
.plate.swap { position: relative; aspect-ratio: 3 / 4; }
.plate.swap img { position: absolute; inset: 0; object-position: center 60%; transition: opacity 0.35s ease; }
.plate.swap img.alt { opacity: 0; object-position: top; }
.card:hover .plate.swap img.alt, .card:focus-visible .plate.swap img.alt { opacity: 1; }
.card-years { margin-top: 12px; color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; }
.card h3, .card h2 { margin-top: 2px; }

/* Product */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-self: start; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery img:first-child { grid-column: 1 / -1; height: auto; aspect-ratio: 4 / 5; object-position: center 60%; }
.gallery img:nth-child(4), .gallery img:nth-child(5) { aspect-ratio: 4 / 3; }
.buy { position: sticky; top: 88px; align-self: start; }

/* Archive page */
.archive-intro { padding: clamp(36px, 6vw, 72px) var(--gutter); text-align: center; }
.archive-intro h1 { margin: 10px 0 14px; font: 500 clamp(40px, 7vw, 76px)/1.05 var(--display); }
.archive-intro > p:not(.eyebrow) { max-width: 36em; margin: 0 auto; color: var(--muted); }
.archive-index { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.archive-index a { display: block; padding: 14px 8px; background: var(--bg); text-decoration: none; }
.archive-index a:hover { background: var(--surface); }
.archive-index b { display: block; font: 500 18px/1.2 var(--display); }
.archive-index span { color: var(--muted); font-size: 13px; }

/* Chapter */
.chapter { padding: clamp(40px, 7vw, 88px) var(--gutter); background: var(--surface); border-top: 1px solid var(--line); }
.chapter-head { max-width: 900px; margin-bottom: clamp(24px, 4vw, 44px); }
.chapter-years { margin-top: 6px; color: var(--sand); font: 500 clamp(52px, 10vw, 120px)/1 var(--display); }
.chapter-head h2 { margin-top: 8px; font: italic 500 clamp(25px, 3.4vw, 40px)/1.15 var(--display); }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.chapter-copy > p { max-width: 36em; margin-bottom: 16px; font-size: 18px; }
.moment { max-width: 40em; margin: 28px 0; padding: clamp(20px, 3vw, 32px); background: var(--sand); color: var(--on-sand); outline: 1px solid var(--sand-edge); outline-offset: -7px; }
.moment-label { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.moment-date { margin-top: 4px; color: var(--on-sand-muted); font-size: 15px; }
.moment h3 { margin: 10px 0 8px; font: 500 clamp(24px, 3vw, 32px)/1.15 var(--display); }
.moment a { display: inline-block; margin-top: 12px; font-weight: 500; text-underline-offset: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 40em; }
.stat b { display: block; font: 500 clamp(28px, 4vw, 44px)/1.1 var(--display); }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.35; display: block; margin-top: 4px; }
.history-photo { margin: 0; }
.history-photo img { width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: top; }
.history-photo figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.credit { display: block; margin-top: 3px; font-size: 13px; }
.credit a, .sources a { text-underline-offset: 3px; }
.chapter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(24px, 4vw, 40px); padding-top: 20px; border-top: 1px solid var(--line); }
.sources { flex: 1 1 320px; color: var(--muted); font-size: 13px; }

.footer-logo { width: 74px; height: auto; flex-basis: 100%; max-width: 74px; }

@media (max-width: 960px) {
  .archive-index { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about > img { width: min(60%, 240px); justify-self: start; }
  .chapter-body { grid-template-columns: 1fr; }
  .history-photo { max-width: 520px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panels img { height: clamp(190px, 52vw, 340px); }
  .buy { position: static; }
}

@media (max-width: 520px) {
  .nav-left { gap: 10px; }
  .nav-link, .lang { font-size: 11px; letter-spacing: 0.06em; }
  .site-header { gap: 6px; }
  .wordmark b { font-size: 20px; }
  .archive-index { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 10px; }
  .chapter-copy > p { font-size: 17px; }
  .hero-actions .button { flex: 1 1 100%; }
}
