:root {
  color-scheme: light;
  --cream: #f9ecd6;
  --gold: #f0c77d;
  --wine: #641d2d;
  --ink: #301818;
  font: 17px/1.55 system-ui, sans-serif;
  background: #f6e7cf;
  color: var(--ink);
}

body, figure, h1, h2, p { margin: 0; }
h1, h2, .download, .print-steps strong { font-family: Georgia, serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }

.cabaret {
  color: var(--cream);
  background:
    linear-gradient(90deg, #23080b 4%, #26070be8 35%, #2e070b38 72%, #20050775),
    linear-gradient(0deg, #2c080d 2%, transparent 45%),
    #3c0a10 url("/print-landing/velvet.webp") center 36% / cover;
  border-top: 4px solid #b98a49;
}

.hero {
  max-width: 78rem;
  margin: auto;
  padding: clamp(2rem, 6vw, 5.4rem) clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.hero h1 {
  color: var(--gold);
  font-size: clamp(1.4rem, 2.65vw, 2.25rem);
  font-style: italic;
  font-weight: normal;
  margin-bottom: 1.45rem;
}

.hero h2 {
  font-size: clamp(2.45rem, 4.3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  max-width: 12em;
  text-wrap: balance;
}

.hero h2 em { color: var(--gold); }
.hero-copy > p { max-width: 31rem; margin-top: 1.15rem; }
.hero-copy .game-details { color: var(--gold); font: 1rem/1.5 Georgia, serif; }
.game-details span { margin-inline: .35rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.35rem;
  margin-top: 1.35rem;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .48rem 1.32rem;
  box-sizing: border-box;
  color: #350f10;
  font-size: 1.23rem;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(#ffe6ac, #e1ab58);
  border: 1px solid #e8bb70;
  border-radius: .35rem;
  box-shadow: inset 0 0 0 3px #72421972, 0 .35rem 1rem #18040265;
}

.download:hover { background: #ffe6ac; }
.download:focus-visible { outline-color: var(--gold); }

.deck {
  position: relative;
  width: 100%;
  min-width: 0;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1.14;
  align-self: center;
}

.tuck-box {
  /* The folded box depth is about 31% of the front panel width. */
  --depth: 13.45cqw;
  position: absolute;
  left: 50%;
  top: 1%;
  width: 43%;
  aspect-ratio: 520 / 719;
  transform: translateX(-50%) perspective(180cqw) rotateX(-29deg) rotateY(24deg);
  transform-style: preserve-3d;
}

.box-front {
  width: 100%;
  transform: translateZ(calc(var(--depth) / 2));
  box-shadow: 0 .55rem 1.4rem #16050595;
}

.tuck-box::before, .tuck-box::after {
  content: "";
  position: absolute;
  top: 0;
  backface-visibility: hidden;
}

.tuck-box::before {
  left: 0;
  width: var(--depth);
  height: 100%;
  transform-origin: left;
  transform: translateZ(calc(var(--depth) / -2)) rotateY(-90deg);
  background: linear-gradient(#24060725, #24060755),
    #481016 url("/print-landing/box-side.webp") center / 100% 100%;
}

.tuck-box::after {
  left: 0;
  width: 100%;
  height: var(--depth);
  transform-origin: top;
  transform: translateZ(calc(var(--depth) / -2)) rotateX(90deg);
  background: linear-gradient(#14020355, #14020300),
    #481016 url("/print-landing/box-top.webp") center / 100% 100%;
}

.card-fan {
  position: absolute;
  width: 99%;
  left: 1%;
  bottom: 0;
  filter: drop-shadow(0 .62rem .6rem #180406aa);
}

.paper {
  background: radial-gradient(ellipse at 50% 0, #fff8eb, #f4e3c7 84%);
  border-top: 4px double #ad7139;
}

.print-guide {
  max-width: 72rem;
  margin: auto;
  padding: clamp(1.7rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
}

.print-guide h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--wine);
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  line-height: 1.1;
  text-align: center;
}

.print-guide h2::before, .print-guide h2::after {
  content: "";
  height: 1px;
  background: #b88953;
  flex: 1;
  max-width: 11rem;
}

.print-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.2rem 0 1.5rem;
  padding: 0;
  counter-reset: steps;
  gap: 1.7rem;
}

.print-steps li {
  counter-increment: steps;
  padding-left: 3.4rem;
  position: relative;
}

.print-steps li::before {
  content: counter(steps);
  position: absolute;
  top: .04rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--wine);
  color: var(--cream);
  border-radius: 50%;
  font: 1.25rem Georgia, serif;
}

.print-steps strong { color: var(--wine); font-size: 1.4rem; }
.print-steps p { font-size: .93rem; line-height: 1.55; margin-top: .2rem; }
.box-download, .online-note { font-size: .9rem; max-width: 56rem; margin-inline: auto; text-align: center; }
.box-download a, .online-note a { color: var(--wine); font-weight: 650; }
.online-note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #b88953; color: #5d3b32; }

@media (max-width: 760px) {
  .cabaret {
    background:
      linear-gradient(180deg, #24080bee 2%, #26080bed 42%, #2f080d60 79%, #2a080e),
      #3c0a10 url("/print-landing/velvet.webp") 61% bottom / auto 79% no-repeat;
  }

  .hero { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero-copy { width: min(100%, 33rem); margin: auto; }
  .hero h1 { margin-bottom: 1rem; }
  .hero h2 { max-width: 15em; text-wrap: wrap; font-size: clamp(2.12rem, 7.4vw, 3.65rem); }
  .hero-copy > p { margin-top: .9rem; }
  .hero-actions { margin-top: 1rem; }
  .deck { width: min(100%, 29rem); margin-inline: auto; }
  .print-steps { max-width: 28rem; margin: 1.6rem auto; grid-template-columns: 1fr; gap: 1.25rem; }
  .print-guide h2 { gap: .65rem; }
}
