/* Gigbuilder Games — the host-facing sales page (gigbuildergames.com).
 *
 * SAME IDENTITY AS THE PLAYER SITE, DIFFERENT WEATHER. home.css already commits to a lane:
 * Ultra + Karla, cream stock, navy ink, a red dauber mark, paper grain. That is an American
 * bar-game print vocabulary and it is good, so this page extends it rather than inventing a
 * second brand. The tokens below are lifted from home.css deliberately — when the two files
 * eventually share a tokens file, these are what move.
 *
 * The one deliberate divergence: this page is LIGHT ONLY. The player app is dark because it is
 * used in a dark room on a phone. This page is read at a kitchen table on a Tuesday morning by
 * someone deciding whether to pitch a game night. Paper in daylight, like a printed rate card.
 */

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/karla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ultra";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ultra-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper:      oklch(0.965 0.010 85);
  --paper-deep: oklch(0.925 0.016 82);
  --ink-deep:   oklch(0.185 0.040 262);
  --ink:        oklch(0.255 0.045 260);
  --ink-soft:   oklch(0.430 0.038 260);
  --on-ink:     oklch(0.965 0.010 85);
  --dauber:     oklch(0.575 0.195 27);
  --dauber-lit: oklch(0.655 0.185 30);
  --on-dauber:  oklch(0.965 0.010 85);
  --brass:      oklch(0.760 0.115 78);
  --rule:       oklch(0.255 0.045 260 / 0.16);
  --rule-firm:  oklch(0.255 0.045 260 / 0.32);
  --grain:      oklch(0.255 0.045 260 / 0.030);

  --slab: "Ultra", "Rockwell", "Clarendon", Georgia, serif;
  --sans: "Karla", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Wide scale on purpose. A timid ramp is what makes a page read as a template. */
  --fs-body: clamp(1.02rem, 0.97rem + 0.24vw, 1.14rem);
  --fs-lede: clamp(1.16rem, 1.05rem + 0.55vw, 1.44rem);
  --fs-h2:   clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  /* Held down deliberately: at 6.4vw this rendered 112px on a 1440 laptop and pushed both
     CTAs below the fold. A hero that lands the pitch but hides the button has failed. */
  --fs-h1:   clamp(2.6rem, 1.5rem + 3.9vw, 5.3rem);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --measure: 62ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  /* Paper grain. Two offset dot layers, not an image — it survives any viewport and costs
     nothing. Without it the cream reads as "beige div" instead of stock. */
  background-image:
    radial-gradient(var(--grain) 0.5px, transparent 0.5px),
    radial-gradient(var(--grain) 0.5px, transparent 0.5px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--slab); font-weight: 400; line-height: 0.98; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--on-ink); padding: 0.7rem 1rem; z-index: 99;
}
.skip:focus { left: 1rem; top: 1rem; }

:where(a, button):focus-visible {
  outline: 3px solid var(--dauber);
  outline-offset: 3px;
}

/* ── The mark ──────────────────────────────────────────────────────────────────── */
.mark, .foot-brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.mark-b {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--dauber); color: var(--on-dauber);
  font-family: var(--slab); font-size: 1.35rem; line-height: 1;
  padding-bottom: 0.1em;
}
.mark-words { display: flex; flex-direction: column; line-height: 1; }
.mark-name { font-family: var(--slab); font-size: 1.3rem; color: var(--ink-deep); }
.mark-sub {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dauber); font-weight: 700; margin-top: 0.22rem;
}

/* ── Masthead ─────────────────────────────────────────────────────────────────── */
.mast {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.965 0.010 85 / 0.92);
  backdrop-filter: blur(8px);
}
.mast-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.9rem); }
.mast-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.mast-nav a:not(.btn) { color: var(--ink-soft); }
.mast-nav a:not(.btn):hover { color: var(--dauber); }
@media (max-width: 46rem) { .mast-nav a:not(.btn) { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  padding: 0.62rem 1.15rem; border: 2px solid transparent;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
}
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.06rem; }
.btn-ink { background: var(--ink-deep); color: var(--on-ink); }
.btn-ink:hover { background: var(--dauber); }
.btn-dauber { background: var(--dauber); color: var(--on-dauber); box-shadow: 4px 4px 0 var(--ink-deep); }
.btn-dauber:hover { background: var(--dauber-lit); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-deep); }
.btn-dauber:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-deep); }
.btn-ghost { border-color: var(--rule-firm); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-deep); background: var(--paper-deep); }

/* ── Hero ─────────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4.2rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  max-width: 92rem; margin-inline: auto;
}
.kicker {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--dauber); margin-bottom: 1.1rem;
}
.hero h1 { font-size: var(--fs-h1); color: var(--ink-deep); }
/* The one italic in the design. Ultra has no italic cut, so this is a deliberate synthetic
   slant used exactly once, on the payoff line — a sign-painter's flourish, not a typeface. */
.hero h1 em { font-style: normal; display: inline-block; color: var(--dauber); transform: skewX(-7deg); }
.lede {
  font-size: var(--fs-lede); color: var(--ink-soft);
  max-width: 34ch; margin-top: 1.5rem; line-height: 1.45;
}
.hero-do { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.1rem; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1.15rem; }

.hero-shot { margin: 0; position: relative; }
.hero-shot img {
  width: 100%; border-radius: 2px;
  border: 1px solid var(--rule-firm);
  box-shadow: 14px 14px 0 var(--paper-deep), 14px 14px 0 1px var(--rule);
  /* Warm the photo toward the paper so it sits in the palette instead of on top of it. */
  filter: saturate(0.88) contrast(1.04);
}
.hero-shot figcaption {
  font-size: 0.8rem; color: var(--ink-soft); margin-top: 1.4rem;
  padding-left: 0.9rem; border-left: 1px solid var(--dauber);
}
@media (max-width: 60rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: -1; max-width: 26rem; }
}

/* ── The one-line strip ───────────────────────────────────────────────────────── */
.strip {
  background: var(--ink-deep); color: var(--on-ink);
  padding: clamp(2.2rem, 5vw, 3.4rem) var(--gutter);
}
.strip p {
  max-width: 52rem; margin-inline: auto;
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.7rem);
  line-height: 1.4; color: oklch(0.965 0.010 85 / 0.78);
}
.strip strong { color: var(--on-ink); font-weight: 700; }

/* ── Section furniture ────────────────────────────────────────────────────────── */
.sec-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head h2 { font-size: var(--fs-h2); color: var(--ink-deep); }
.sec-head p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.06rem; }

.games, .night, .kit {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  max-width: 92rem; margin-inline: auto;
}
.games { border-bottom: 1px solid var(--rule); }

/* ── Games ────────────────────────────────────────────────────────────────────── */
.games-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.game-lead { display: grid; gap: 1.3rem; }
/* The art is portrait and would otherwise set the height of the whole section, leaving a void
   beside the set list. Fixed ratio + cover: the image serves the layout, not the reverse. */
.game-lead img {
  width: 100%; max-width: 24rem; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%;
  border-radius: 2px; border: 1px solid var(--rule-firm);
  box-shadow: 10px 10px 0 var(--paper-deep);
}
.game-lead h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--ink-deep); }
.game-lead p { margin-top: 0.7rem; color: var(--ink-soft); max-width: 40ch; }

.game-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.game-list li { padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.game-list li:last-child { border-bottom: 1px solid var(--rule); }
.game-list h3 { font-size: 1.5rem; color: var(--ink-deep); }
.game-list p { margin-top: 0.45rem; color: var(--ink-soft); max-width: 44ch; }
@media (max-width: 60rem) { .games-body { grid-template-columns: 1fr; } }

/* ── A night ──────────────────────────────────────────────────────────────────── */
.tv-shot { margin: 0 0 clamp(2.4rem, 5vw, 3.6rem); }
.tv-shot img {
  width: 100%; border-radius: 3px;
  border: 1px solid var(--rule-firm);
  box-shadow: 0 24px 50px -24px oklch(0.185 0.040 262 / 0.55);
}
.tv-shot figcaption {
  font-size: 0.8rem; color: var(--ink-soft); margin-top: 1rem;
  padding-left: 0.9rem; border-left: 1px solid var(--dauber);
}

.beats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(1.6rem, 4vw, 3rem); }
.beats li { position: relative; padding-top: 1.4rem; border-top: 3px solid var(--ink-deep); }
.beat-n {
  font-family: var(--slab); font-size: 3.2rem; line-height: 1;
  color: var(--dauber); display: block; margin-bottom: 0.5rem;
}
.beats h3 { font-size: 1.4rem; color: var(--ink-deep); }
.beats p { margin-top: 0.6rem; color: var(--ink-soft); }
.beats strong { color: var(--ink-deep); font-weight: 700; }

/* ── Kit ──────────────────────────────────────────────────────────────────────── */
.kit { border-top: 1px solid var(--rule); }
.kit-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.kit-list > div { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.kit-list dt { font-family: var(--slab); font-size: 1.2rem; color: var(--ink-deep); }
.kit-list dd { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ── Close ────────────────────────────────────────────────────────────────────── */
.close {
  background: var(--ink-deep); color: var(--on-ink);
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  text-align: center;
}
.close h2 { font-size: var(--fs-h2); color: var(--on-ink); }
.close p { max-width: 46ch; margin: 1.1rem auto 0; color: oklch(0.965 0.010 85 / 0.74); }
.close-do { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2.2rem; }
.close .btn-ghost { border-color: oklch(0.965 0.010 85 / 0.34); color: var(--on-ink); }
.close .btn-ghost:hover { border-color: var(--on-ink); background: oklch(0.965 0.010 85 / 0.08); }
.close .btn-dauber { box-shadow: 4px 4px 0 oklch(0.965 0.010 85 / 0.28); }
.close .btn-dauber:hover { box-shadow: 6px 6px 0 oklch(0.965 0.010 85 / 0.28); }

/* ── Foot ─────────────────────────────────────────────────────────────────────── */
.foot {
  padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  border-top: 1px solid var(--rule);
}
.foot-brand { font-family: var(--slab); color: var(--ink-deep); font-size: 1.05rem; }
.foot-brand .mark-b { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-left: auto; }
.foot-nav a { font-size: 0.94rem; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--dauber); }
.foot-fine { flex-basis: 100%; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.8; }

/* ── Entrance ─────────────────────────────────────────────────────────────────────
   One orchestrated load, staggered, then nothing. The page does not twitch afterwards. */
@media (prefers-reduced-motion: no-preference) {
  .hero-type > *, .hero-shot { animation: rise 720ms var(--ease) both; }
  .hero-type > *:nth-child(1) { animation-delay: 40ms; }
  .hero-type > *:nth-child(2) { animation-delay: 110ms; }
  .hero-type > *:nth-child(3) { animation-delay: 190ms; }
  .hero-type > *:nth-child(4) { animation-delay: 270ms; }
  .hero-type > *:nth-child(5) { animation-delay: 340ms; }
  .hero-shot { animation-delay: 220ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
