@font-face {
  font-family: "D-DIN";
  src: url("/brand/fonts/DDIN-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN";
  src: url("/brand/fonts/DDIN-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #241533;
  --paper: #fff8ef;
  --sun: #ffd23f;
  --coral: #ff5d73;
  --sky: #3ec6ff;
  --leaf: #0f9f6e;
  --card: #fffdf8;
  --red: #be123c;
  --blue: #1d4ed8;
  --grape: #6d28d9;
  --green: #047857;
  --focus: #241533;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, #ffe14a 0 18%, transparent 19%),
    radial-gradient(circle at 110% 8%, #7ee0ff 0 16%, transparent 17%),
    radial-gradient(circle at 80% 120%, #ffb4c8 0 18%, transparent 19%),
    var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 12px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  z-index: 5;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip:focus,
.skip:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  top: 12px;
}

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

.site-header,
.site-footer,
.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 20px 0 8px;
}

.home-top .site-header { padding-bottom: 4px; }

.brand {
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 6px 12px;
  box-shadow: 4px 4px 0 var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
}

nav a:hover { background: rgba(255, 210, 63, 0.7); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 12px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.home-logo { margin: 0; line-height: 0; }

.home-logo a { display: inline-block; }

.home-logo img {
  width: min(520px, 86vw);
  height: auto;
}

.home-logo-small img { width: min(280px, 70vw); }

.hero-slot {
  position: relative;
  margin-top: 0;
}

.hero-slot.wrap {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.hero-still img,
.hero-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff8ef;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: transparent;
}

.hero-slot.is-live .hero-canvas { opacity: 1; }

.hero-slot.is-live .hero-still { visibility: hidden; }

.set-slot { margin: 8px 0 18px; }

.set-slot picture { display: block; }

.set-slot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: transparent;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.intro { padding-block: 22px 8px; }

.book-slot {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #fff8ef;
  box-shadow: 0 16px 28px rgba(36, 21, 51, 0.18);
}

.book-slot picture { display: block; height: 100%; }

.book-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.book-slot:hover img,
.book-slot:focus-visible img {
  transform: translateY(-8px) scale(1.03);
}

.creators {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.creators img {
  width: 100%;
  height: auto;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
}

.creators-copy { max-width: 68ch; }

.creators-copy h3 { margin: 0 0 6px; font-size: 28px; }

.creators-copy h3 + p { margin-top: 0; }

.pub-tag {
  margin: 0 0 18px;
  color: #1a1813;
  font-family: "D-DIN", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(22px, 6.4vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hp-lock {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  color: #1a1813;
}

.hp-lock__mark {
  display: block;
  flex: none;
  width: 42px;
  height: 40px;
}

.hp-lock__type { margin: 0; }

.hp-lock__type b,
.hp-lock__type small {
  display: block;
  font-family: "D-DIN", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
}

.hp-lock__type b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.hp-lock__type small {
  margin-top: 8px;
  color: #3e3a32;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.kicker {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--red);
}

.lede { margin: 0 0 12px; font-size: 22px; }

.price-line { margin: 0; font-weight: 800; }

.crew {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.crew figure {
  margin: 0;
  text-align: center;
}

.crew img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero .btn + .btn { margin-left: 8px; }

.crew figcaption {
  margin-top: 6px;
  font-weight: 800;
  font-size: 16px;
}

.section { padding-block: 18px 8px; }

.section h2,
.card h3,
.gift-copy h3 {
  overflow-wrap: anywhere;
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 8vw, 44px);
}

.section > p { margin-top: 0; }

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

.card {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.card.red { background: #ffe4e8; }
.card.blue { background: #e0ecff; }
.card.grape { background: #efe7ff; }
.card.green { background: #d9ffef; }

.card h3 { margin: 10px 0 6px; font-size: clamp(22px, 6vw, 28px); line-height: 1.15; }

.cover {
  width: 100%;
  aspect-ratio: 2000 / 742;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: white;
}

.card p { margin: 0 0 12px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 48px;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.cta-row .btn,
.actions .btn,
.gift-copy .btn,
.singles .btn,
.legal .btn {
  width: 100%;
}

.btn.sun { background: var(--sun); color: var(--ink); }

.btn[aria-disabled="true"] {
  background: #efe7dc;
  color: #5c5348;
  cursor: not-allowed;
}

.gift {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  margin: 8px 0 28px;
}

.gift .set-slot { margin: 0; }

.gift-copy h3 { margin: 0 0 4px; font-size: 32px; }

.price {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.ship-note { margin: 0 0 12px; font-weight: 800; }

.gift-copy p { margin: 0; font-weight: 700; }

.gift-copy p + p { margin-top: 8px; font-weight: 600; }

.gift-copy .btn,
.singles .btn { margin-top: 12px; }

.test-note {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.test-note[hidden],
.cutoff-banner[hidden] { display: none; }

.cutoff-banner {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff3b0;
  font-weight: 800;
}

.singles { margin-top: 8px; }

.bundle {
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--sun);
  box-shadow: 6px 6px 0 var(--ink);
}

.bundle .cover { width: min(320px, 42vw); flex: none; }
.bundle h2 { margin: 0 0 4px; font-size: 32px; }
.bundle p { margin: 0; font-weight: 700; }
.bundle p + p { margin-top: 8px; font-weight: 600; }

.games { grid-template-columns: 1fr; }

.game-kicker {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal {
  width: min(760px, 100%);
  margin: 12px auto 32px;
  padding-left: 16px;
  padding-right: 16px;
}

.legal h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }

.draft {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fde68a;
  font-weight: 800;
}

.site-footer {
  padding-block: 36px 40px;
  font-weight: 700;
}

.site-footer nav { margin: 0 0 14px; }

.game-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: white;
}

.play-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 48px;
  margin-top: 10px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .book-slot img,
  .book-slot:hover img,
  .book-slot:focus-visible img {
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
  .hero-slot.is-live .hero-still { visibility: visible; }
}

@media (min-width: 700px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cta-row .btn,
  .actions .btn,
  .gift-copy .btn,
  .singles .btn,
  .legal .btn { width: auto; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .games { grid-template-columns: 1fr 1fr; }
  .crew img { width: 108px; height: 108px; }
  .hp-lock__type b { font-size: 18px; letter-spacing: 0.2em; }
  .hero-slot.wrap {
    width: min(1120px, 100%);
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 16px;
  }
}

@media (min-width: 768px) {
  .hero-still img,
  .hero-canvas { aspect-ratio: 2 / 1; }
}

@media (min-width: 900px) {
  .gift {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
    gap: 22px;
  }
  .creators {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
    gap: 28px;
  }
  .game-frame { height: 420px; aspect-ratio: auto; }
}

@media (min-width: 1100px) {
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
