@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url("fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --mustard: #e5c05e;
  --purple: #3f3073;
  --ink: #0c1013;
  --purple-dark: #2a2050;
  --lavender: #c3bae6;
  --mustard-light: #f3dfa6;
  --cream: #fff7e6;
  --card: #fffdf8;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body:not(.is-ready) main { visibility: hidden; }

img { max-width: 100%; }

a { color: var(--purple); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.chip input:focus-visible + span {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--mustard);
  color: var(--purple);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 50;
  font-weight: 600;
}

.skip:focus { transform: none; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 48px;
  height: 48px;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 8px;
}

.site-header nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header nav a:hover { background: var(--purple-dark); }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--purple);
  color: var(--cream);
  padding: 36px 0 88px;
}

.hero-inner { position: relative; z-index: 1; }

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mustard);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.kicker-die {
  width: 28px;
  height: 28px;
  flex: none;
}

h1, h2, .price, .placeholder p, .total-bar strong {
  font-family: "Lilita One", Poppins, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0;
  max-width: 11em;
  color: var(--mustard);
  font-size: clamp(2rem, 10vw, 3.5rem);
  line-height: 1.05;
}

.lede {
  max-width: 38em;
  margin: 16px 0 0;
  font-size: 1.02rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.pill:hover { background: var(--mustard-light); }

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-die {
  width: 64px;
  height: 64px;
  left: 18px;
  bottom: 16px;
  color: var(--mustard);
  opacity: 0.9;
}

.deco-meeple {
  width: 92px;
  height: 120px;
  right: -6px;
  bottom: -18px;
  color: var(--lavender);
  opacity: 0.85;
}

.about { padding: 28px 0 8px; }

.about-card {
  background: var(--card);
  border: 2px solid var(--lavender);
  border-radius: 20px;
  padding: 22px 18px 20px;
}

.about-kicker {
  margin: 0;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-card h2 {
  margin: 6px 0 10px;
  color: var(--purple);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
}

.about-card p { margin: 0; }

.about-card a {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 600;
}

.tees { padding: 12px 0 8px; }

.section-head h2 {
  margin: 18px 0 4px;
  color: var(--purple);
  font-size: clamp(2rem, 8vw, 2.8rem);
}

.section-head p {
  margin: 0 0 16px;
}

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 2px solid var(--lavender);
  border-radius: 22px;
  overflow: hidden;
}

.card.is-selected { border-color: var(--purple); }

.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--purple-dark);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(229, 192, 94, 0.35), transparent 42%),
    var(--purple);
  color: var(--cream);
}

.placeholder .meeple {
  width: 76px;
  height: 100px;
  color: var(--mustard);
}

.placeholder p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--cream);
}

.last-few {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--purple);
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
}

.card-body { padding: 14px 14px 16px; }

.card-body h3 {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
}

.blurb {
  margin: 6px 0 0;
  color: var(--purple);
  font-size: 0.95rem;
}

.colour {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--purple);
  font-weight: 600;
  font-size: 0.85rem;
}

.price {
  margin: 10px 0 0;
  color: var(--purple);
  font-size: 1.7rem;
  line-height: 1;
}

.sizes-label {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
}

.size-row, .size-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-button, .chip span, .order-this, .submit {
  font: inherit;
  cursor: pointer;
}

.chip-button, .chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--lavender);
  color: var(--purple);
  font-weight: 600;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
}

.chip input:checked + span {
  background: var(--purple);
  color: var(--cream);
}

.chip-button:hover, .order-this:hover, .submit:hover { background: var(--mustard-light); }

.order-this, .submit {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--purple);
  font-weight: 600;
}

.catalog-message {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--mustard-light);
}

.order { padding: 8px 0 28px; }

.order-card {
  background: var(--purple-dark);
  color: var(--cream);
  border-radius: 24px;
  padding: 22px 16px 20px;
}

.order-card h2 {
  margin: 0;
  color: var(--mustard);
  font-size: clamp(2rem, 8vw, 2.8rem);
}

.order-card > p { margin: 8px 0 0; }

.ordering-note {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(229, 192, 94, 0.16);
  color: var(--mustard);
  font-weight: 600;
}

.field { margin-top: 14px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--lavender);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

textarea { min-height: 96px; resize: vertical; }

.size-hint { margin: 0; color: var(--lavender); }

.field-error, .form-alert {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--mustard-light);
  color: var(--ink);
  font-size: 0.92rem;
}

.each-price {
  margin: 16px 0 0;
  color: var(--lavender);
}

.total-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--mustard);
  color: var(--purple);
}

.total-bar span {
  font-weight: 600;
}

.total-bar strong {
  font-size: 2rem;
  line-height: 1;
}

.sent-note { margin: 12px 0 0; }

.fallback {
  display: inline-flex;
  margin-top: 8px;
  color: var(--mustard);
  font-weight: 600;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 28px 0 112px;
}

.site-footer p { margin: 0; }

.site-footer a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--mustard);
  font-weight: 600;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(12, 16, 19, 0.28);
}

.wa-float svg { flex: none; }

#tees, #order { scroll-margin-top: 76px; }

@media (min-width: 720px) {
  .catalog { grid-template-columns: 1fr 1fr; }
  .order-card { padding: 28px 24px; }
  h1 { max-width: 12em; }
}

@media (min-width: 1040px) {
  .catalog { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
