/*
Theme Name: Winning Team
Theme URI: http://winningteam2026.com
Author: Winning Team 2026
Description: Showroom for the Winning Team trophy shop. Bags work. Checkout does not.
Version: 1.0.0
Text Domain: winningteam
*/

:root {
  --ink: #1c140f;
  --paper: #f3eadc;
  --paper-2: #fffaf3;
  --gold: #8d6424;
  --gold-bright: #e6d2a6;
  --deep: #16110d;
  --muted: #6e6256;
  --line: rgba(28, 20, 15, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(230, 210, 166, 0.45), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, input { font: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--deep);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 1rem; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 6vw;
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(243, 234, 220, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-year {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-header nav a[href*="/bag"] {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

[data-bag-count] {
  display: inline-block;
  min-width: 1.1rem;
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
  padding: 1.6rem 6vw 3rem;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.3rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button, .add {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep);
  color: #f6f1e7;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.button:hover, .add:hover { transform: translateY(-1px); }

.trophy-stage {
  background: var(--deep);
  border-radius: 28px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.85rem;
  padding: 0.85rem 0.85rem 1.15rem;
  box-shadow: 0 30px 70px rgba(28, 20, 15, 0.18);
}

.trophy-stage svg { width: min(280px, 70%); height: auto; }

.trophy-spin {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  background: #101820;
}

.stage-caption {
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0 1.5rem;
  margin: 2.2rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.facts div { padding: 0; }

.facts div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.facts span { color: var(--muted); font-size: 0.92rem; }

.section { padding: 4.5rem 6vw; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2, .page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--paper-2);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.card-media {
  background: #231c16;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 1.2rem 1rem 0.4rem;
  text-decoration: none;
}

.card-media:has(.photo) {
  padding: 0;
  min-height: 0;
}

.card-media svg { width: 150px; height: auto; }

.card-media .photo, .single-visual .photo {
  display: block;
  width: 100%;
  height: 100%;
}

.card-media .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.shelf-banner {
  width: 100%;
  height: auto;
  border-radius: 22px;
  margin: 0 0 1.1rem;
  display: block;
}

.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.card-body h2, .card-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.card-body h2 a, .card-body h3 a { text-decoration: none; }

.excerpt { margin: 0.2rem 0 0.6rem; color: var(--muted); flex: 1; }

.card-row, .buy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.held {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule {
  margin: 0 6vw 4rem;
  background: var(--deep);
  color: #f6f1e7;
  border-radius: 28px;
  padding: 2.4rem 2.2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.rule h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.rule p { margin: 0; color: rgba(246, 241, 231, 0.78); }

.rule ol { margin: 0; padding-left: 1.1rem; }

.rule li + li { margin-top: 0.45rem; }

.page-wrap { padding: 3rem 6vw 4rem; }

.page-wrap .lede { margin-top: 0.8rem; }

.single {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.single-visual {
  background: var(--deep);
  border-radius: 28px;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.single-visual svg { width: min(300px, 80%); height: auto; }

.single-visual:has(.photo) {
  padding: 0.75rem;
  min-height: 0;
}

.single-visual .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  margin: 1rem 0 0.2rem;
}

.specs div { display: grid; gap: 0.15rem; }

.specs dt {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specs dd { margin: 0; }

.site-footer a { color: inherit; }

.prose { max-width: 40rem; font-size: 1.08rem; }

.prose p:first-child { margin-top: 0; }

.fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-wrap .lede,
.bag-list,
.check-list,
.check-form,
.page-wrap .total,
.page-wrap .actions {
  max-width: 40rem;
}

.bag-list, .check-list { display: grid; gap: 0.7rem; margin: 1.4rem 0; }

.bag-line, .check-line {
  display: grid;
  grid-template-columns: 1.4fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.qty button, .text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.check-form {
  display: grid;
  gap: 0.8rem;
  max-width: 32rem;
}

.check-form label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 600; }

.check-form input {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.refusal {
  margin-top: 1.2rem;
  background: var(--deep);
  color: #f6f1e7;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.3rem;
}

.refusal h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.refusal p { margin: 0; color: rgba(246, 241, 231, 0.8); }

.site-footer {
  padding: 1.4rem 6vw 2rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer p { margin: 0; max-width: 40rem; }

.toast {
  position: fixed;
  left: 1rem;
  top: 1rem;
  background: var(--deep);
  color: #f6f1e7;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  z-index: 6;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero, .single, .rule, .grid, .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 1.2rem; }
  .single-visual { min-height: 320px; }
  .site-footer { flex-direction: column; }
  .bag-line, .check-line { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .display { font-size: 3.1rem; }
  .site-header { padding-inline: 1.1rem; }
  .hero, .section, .page-wrap { padding-inline: 1.1rem; }
  .rule { margin-inline: 1.1rem; }
}
