/* bingo-md site. A bingo-hall poster: deep navy, five ball colours, chunky type.
   Fonts: Bricolage Grotesque (display), Hanken Grotesk (text), DM Mono (code). */
:root {
  --navy: #12163a;
  --navy-2: #1b2150;
  --ice: #eef1f7;
  --paper: #ffffff;
  --ink: #12163a;
  --muted: #4d5473;
  --line: #d6dbe9;
  --blue: #2c6fd6;
  --red: #e5384a;
  --yellow: #ffc233;
  --green: #1f9d55;
  --purple: #8a63f0;
  --display: "Bricolage Grotesque", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --text: "Hanken Grotesk", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.6 var(--text); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, section:not(.hero) :focus-visible, .foot :focus-visible { outline-color: var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: 22px; letter-spacing: -.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .88em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -56px; background: var(--yellow); color: var(--navy); padding: 10px 16px; z-index: 20; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Header and hero: navy */
.top { background: var(--navy); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.wordmark .dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.8) 0 9%, rgba(255,255,255,0) 26%), var(--yellow); display: grid; place-items: center; color: var(--navy); font-size: 16px; }
.nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: #dfe3f6; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }

.hero { background: var(--navy); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: auto -10% -42% 30%; height: 70%; background: radial-gradient(closest-side, rgba(44,111,214,.35), rgba(44,111,214,0)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.balls { display: flex; gap: 10px; margin-bottom: 28px; }
.ball { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 24px/1 var(--display); color: #fff; box-shadow: inset 0 -5px 8px rgba(0,0,0,.25), 0 6px 14px rgba(0,0,0,.28);
  background: radial-gradient(circle at 34% 27%, rgba(255,255,255,.85) 0 8%, rgba(255,255,255,0) 24%), var(--c); }
.ball:nth-child(1) { --c: var(--blue); }
.ball:nth-child(2) { --c: var(--red); }
.ball:nth-child(3) { --c: #f4f2ea; color: var(--navy); }
.ball:nth-child(4) { --c: var(--green); }
.ball:nth-child(5) { --c: var(--yellow); color: var(--navy); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #aeb6e6; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); margin-top: 14px; }
.mark { background: linear-gradient(transparent 62%, rgba(255,194,51,.9) 62% 92%, transparent 92%); padding: 0 .05em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #cbd1ef; margin-top: 22px; max-width: 54ch; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--yellow); color: var(--navy); text-decoration: none; padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 17px; border: 2px solid var(--yellow); box-shadow: 0 5px 0 #b98400; transition: transform .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #b98400; text-decoration: none; }
.btn-quiet { background: transparent; color: #fff; border-color: #6c76b8; box-shadow: none; }
.btn-quiet:hover { border-color: #fff; box-shadow: none; }
.one-liner { margin-top: 26px; }
.one-liner code { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #f1f3ff; padding: 9px 14px; border-radius: 10px; overflow-wrap: anywhere; }

.fan { position: relative; aspect-ratio: 1 / 1.02; }
.sheet { position: absolute; width: 56%; background: #fff; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 28px 50px rgba(0,0,0,.4); transition: transform .25s; }
.sheet a { display: block; }
.sheet img { border-radius: 3px; }
.sheet-a { left: 0; top: 7%; transform: rotate(-7deg); z-index: 1; }
.sheet-b { left: 22%; top: 0; transform: rotate(2deg); z-index: 2; }
.sheet-c { right: 0; top: 11%; transform: rotate(9deg); z-index: 1; }
.sheet:hover { z-index: 5; transform: rotate(0) translateY(-6px); }

/* Sections */
section { padding: clamp(64px, 8vw, 112px) 0; }
.ice { background: var(--ice); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-lede { color: var(--muted); margin-top: 14px; max-width: 62ch; font-size: 19px; }

.pack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.pack figure { margin: 0; }
.pack img { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(18,22,58,.15), 0 14px 30px rgba(18,22,58,.16); }
.pack figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.pack figcaption b { display: block; font-family: var(--display); font-size: 21px; color: var(--ink); margin-bottom: 4px; }

.steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: 28px 26px 30px; box-shadow: 6px 6px 0 var(--ink); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font: 800 24px/1 var(--display); color: #fff; margin-bottom: 18px;
  background: radial-gradient(circle at 34% 27%, rgba(255,255,255,.8) 0 8%, rgba(255,255,255,0) 24%), var(--c); box-shadow: inset 0 -4px 6px rgba(0,0,0,.22); }
.steps li:nth-child(1)::before { --c: var(--blue); }
.steps li:nth-child(2)::before { --c: var(--red); }
.steps li:nth-child(3)::before { --c: var(--green); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 17px; }
.ask { margin: 40px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; max-width: 30em; border-left: 6px solid var(--yellow); padding-left: 24px; }

.facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.facts li { border-top: 4px solid var(--ink); padding-top: 16px; color: var(--muted); font-size: 17px; }
.facts li:nth-child(1) { border-color: var(--blue); }
.facts li:nth-child(2) { border-color: var(--red); }
.facts li:nth-child(3) { border-color: var(--green); }
.facts b { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.themes figure { margin: 0; }
.themes a { display: block; }
.themes img { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(18,22,58,.15), 0 12px 26px rgba(18,22,58,.16); transition: transform .2s; }
.themes a:hover img { transform: translateY(-5px) rotate(-.6deg); }
.themes figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.themes figcaption b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); }
.themes figcaption code { color: var(--blue); }

.examples { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.examples li { border-bottom: 2px solid var(--line); }
.examples a { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: baseline; padding: 20px 4px; text-decoration: none; color: var(--ink); }
.examples a:hover { background: var(--ice); }
.examples b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.examples span { color: var(--muted); font-size: 16px; grid-column: 1; }
.examples em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--blue); align-self: center; background: #e3ebfb; border-radius: 999px; padding: 5px 12px; }

.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.install h3 { font-size: 20px; }
.install pre { margin: 12px 0 0; background: var(--navy); color: #eef0ff; padding: 18px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.6; border: 2px solid var(--navy); }
.note { color: var(--muted); margin-top: 22px; font-size: 16px; }

.foot { background: var(--navy); color: #c3c9ea; padding: 48px 0 64px; font-size: 16px; }
.foot a { color: #fff; }
.foot .wordmark { margin-bottom: 14px; }
.foot-row { display: grid; gap: 10px; }

.lost { min-height: 62vh; display: flex; align-items: center; background: var(--ice); }
.lost h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 12px; }
.lost .lede { color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fan { max-width: 560px; width: 100%; margin: 0 auto; }
  .pack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps, .facts, .install { grid-template-columns: minmax(0, 1fr); }
  .examples { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 16px; }
  .ball { width: 44px; height: 44px; font-size: 20px; }
  .pack { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .steps li { box-shadow: 4px 4px 0 var(--ink); }
}
