/* playonceuponahand.com. Colours are the game's storybook roles (src/themes/storybook/theme.css). */
@font-face { font-family: "Goudy Bookletter 1911"; src: url("fonts/GoudyBookletter1911.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Sorts Mill Goudy"; src: url("fonts/SortsMillGoudy-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Sorts Mill Goudy"; font-style: italic; src: url("fonts/SortsMillGoudy-Italic.ttf") format("truetype"); font-display: swap; }

:root {
  --ground: #efe3c6;
  --surface: #f7efdc;
  --surface-warm: #ead9b4;
  --ink1: #2a2320;
  --ink2: #4a3f36;
  --ink3: #6e6052;
  --vermilion: #c8442a;
  --vermilion-dark: #9e3220;
  --gold: #d9a521;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink1);
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
h2 {
  font-family: "Goudy Bookletter 1911", Georgia, serif;
  font-weight: normal;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--vermilion-dark);
}

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: grid; place-items: center; padding: 32px 16px 48px; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(42,35,32,0) 40%, rgba(42,35,32,0.55)); }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 680px; width: 100%; }
.logo { margin: 0 auto; max-width: 640px; filter: drop-shadow(0 6px 14px rgba(42,35,32,0.35)); }
.lede {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--ink1);
  font-style: italic;
  font-size: 21px;
}
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { margin: 12px 0 0; color: var(--surface); font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-family: "Goudy Bookletter 1911", Georgia, serif;
  font-size: 21px;
  text-decoration: none;
  border: 2px solid var(--ink1);
  border-radius: 4px;
}
.btn-primary { background: var(--vermilion); color: #fff8ea; box-shadow: 0 3px 0 var(--ink1); }
.btn-primary:hover { background: var(--vermilion-dark); }
.btn-ghost { background: var(--surface); color: var(--ink1); box-shadow: 0 3px 0 var(--ink1); }
.btn-ghost:hover { background: var(--surface-warm); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Sections */
main { max-width: 960px; margin: 0 auto; padding: 40px 16px 24px; display: grid; gap: 32px; }
.plate { background: var(--surface); border: 1px solid var(--ink1); padding: 28px 24px; box-shadow: 0 2px 0 rgba(42,35,32,0.25); }
.plate p { margin: 0 0 12px; color: var(--ink2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--ink1);
  display: grid; place-items: center;
  font-family: "Goudy Bookletter 1911", Georgia, serif; font-size: 22px;
  border: 1px solid var(--ink1);
}
.steps p { margin: 4px 0 0; }
.steps strong { color: var(--ink1); }

.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 16px; }
.pair { margin: 0; }
.pair .cards { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.pair img { border-radius: 6px; box-shadow: 0 3px 8px rgba(42,35,32,0.3); }
.pair .arrow { font-size: 28px; color: var(--vermilion-dark); }
.pair figcaption { text-align: center; margin-top: 8px; font-style: italic; color: var(--ink3); }

.cast .row { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }
.cast .row img { width: min(40%, 200px); border-radius: 6px; box-shadow: 0 3px 8px rgba(42,35,32,0.3); }

.closing { text-align: center; padding: 8px 0 16px; }

footer { border-top: 1px solid rgba(42,35,32,0.3); padding: 20px 16px 32px; text-align: center; color: var(--ink3); font-size: 16px; }
footer p { margin: 0 0 8px; }
footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--ink2); }

@media (max-width: 700px) {
  body { font-size: 18px; }
  h2 { font-size: 27px; }
  .hero { min-height: 88vh; }
  .lede { font-size: 18px; }
  .plate { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* Added 2026-11-23: screenshots and the four card kinds. */
h3 { font-family: "Goudy Bookletter 1911", Georgia, serif; font-weight: normal; font-size: 24px; margin: 0 0 6px; color: var(--ink1); }
.plate .intro { font-size: 20px; color: var(--ink1); margin-bottom: 18px; }
.shot { margin: 8px 0 22px; }
.shot img { width: 100%; border: 1px solid var(--ink1); border-radius: 4px; box-shadow: 0 4px 12px rgba(42,35,32,0.3); }
.shot figcaption { margin-top: 8px; text-align: center; font-style: italic; color: var(--ink3); font-size: 17px; }
.steps { margin-bottom: 22px; }
.kind { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px dashed rgba(42,35,32,0.3); }
.kind:first-of-type { border-top: 0; }
.kind-art { display: flex; gap: 10px; justify-content: center; }
.kind-art img { width: 104px; border-radius: 6px; box-shadow: 0 3px 8px rgba(42,35,32,0.3); }
.kind-art:not(.two) img { width: 120px; }
.kind-text p { margin: 0; }
.demo-note { font-style: italic; text-align: center; margin-top: 4px; }
@media (max-width: 700px) {
  .kind { grid-template-columns: 1fr; gap: 12px; }
  .plate .intro { font-size: 18px; }
}

/* 2026-11-23 restructure, after arcanumsolitarius.com */
.presented { margin: 0 0 4px; color: var(--surface); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.logo { max-width: 560px; }
.hero-shot { margin: 4px auto 14px; max-width: 900px; }
.hero-shot img { width: 100%; border: 2px solid var(--ink1); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.sub { max-width: 620px; margin: 0 auto 18px; padding: 10px 16px; background: rgba(247,239,220,0.94); border: 1px solid var(--ink1); color: var(--ink1); font-size: 18px; }
.lede { margin: 0 0 10px; }
.eyebrow { margin: 0 0 4px !important; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3) !important; }
.points { margin: 4px 0 20px; padding-left: 20px; color: var(--ink2); }
.points li { margin-bottom: 8px; }
.points strong { color: var(--ink1); }
.split { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 28px; align-items: center; margin: 8px 0 20px; }
.pair-cards { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.pair-cards figure { margin: 0; }
.pair-cards img { border-radius: 6px; box-shadow: 0 3px 8px rgba(42,35,32,0.3); }
.pair-cards figcaption { text-align: center; margin-top: 6px; font-style: italic; color: var(--ink3); font-size: 16px; }
.arrow { font-size: 28px; color: var(--vermilion-dark); }
.quote { font-style: italic; color: var(--ink1) !important; }
.joker-row { display: flex; gap: 10px; justify-content: center; }
.joker-row img { width: 31%; border-radius: 6px; box-shadow: 0 3px 8px rgba(42,35,32,0.3); }
.closing.plate { text-align: center; }
.closing .ctas { margin-top: 16px; }
@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; gap: 16px; }
  .pair-cards { max-width: 320px; margin: 0 auto; }
  .sub { font-size: 16px; }
}

/* Carousel: the cart's screens and the album */
main { grid-template-columns: minmax(0, 1fr); } /* else the widest child sizes every plate: 483px on a 390px phone */
.carousel { margin: 8px 0 22px; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--ink1); border-radius: 4px; box-shadow: 0 4px 12px rgba(42,35,32,0.3); background: var(--ink1); }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: var(--surface); }
.car-slide img { width: 100%; }
.car-slide figcaption { padding: 10px 16px 12px; text-align: center; font-style: italic; color: var(--ink2); font-size: 17px; }
.car-slide figcaption strong { font-style: normal; color: var(--ink1); }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.car-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink1); background: var(--surface); color: var(--ink1); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 0 var(--ink1); }
.car-btn:hover { background: var(--surface-warm); }
.car-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.car-dots { display: flex; gap: 8px; }
.car-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink1); background: transparent; }
.car-dot.on { background: var(--vermilion); }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }

/* More from Arcanica Games */
.family { max-width: 960px; margin: 0 auto 24px; padding: 0 16px; text-align: center; }
.family .eyebrow { margin-bottom: 10px !important; }
.family-card { display: block; max-width: 560px; margin: 0 auto; padding: 16px 20px; background: var(--surface); border: 1px solid var(--ink1); text-decoration: none; color: var(--ink2); box-shadow: 0 2px 0 rgba(42,35,32,0.25); }
.family-card strong { display: block; font-family: "Goudy Bookletter 1911", Georgia, serif; font-weight: normal; font-size: 24px; margin-bottom: 4px; }
.family-card strong a { color: var(--vermilion-dark); }
.family-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.family-links a { color: var(--ink1); }
footer p a { color: var(--ink2); }
.family-art { display: block; margin: 6px 0 10px; }
.family-art img { width: 100%; border: 1px solid var(--ink1); border-radius: 4px; }
/* Hero screenshot matches the section screenshots (Greg, 2026-11-24): those are a plate's inner
   width, 878px on desktop; on a phone, 17px narrower each side than the hero's column. */
.hero-inner { max-width: 878px; }
.hero-shot { max-width: none; }
.hero-shot img { border-width: 1px; }
@media (max-width: 700px) { .hero-shot { margin-left: 17px; margin-right: 17px; } }
.sub p { margin: 0; }
.sub p + p { margin-top: 8px; }
/* Hero text boxes span the screenshot's width (Greg, 2026-11-25), so the Play box wraps to fewer
   lines and the demo button sits higher. Desktop only: on a phone the screenshot is the narrower of
   the two, so matching it would add lines and push the button down. */
.hero .lede, .hero .sub { display: block; max-width: none; }
/* The buttons sit between the tagline and the Play box (Greg, 2026-11-25), so the box needs room above
   it and none below, where the hero ends. */
.hero .sub { margin-top: 20px; margin-bottom: 0; }
