/* Sista Labs site. Colours and fonts come from the card games' shared
   tokens (card-games-tokens/tokens.css), so the site looks like the games.
   Bright gold means "tap this": buttons and links on felt. On cream, links
   are ink and underlined, because bright gold is never text on cream.
   Red is not used: in the games it means danger. */

@font-face { font-family: 'Fraunces'; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/work-sans.woff2) format('woff2'); }

:root {
  --felt-table: #163D2C;
  --felt-deep: #0F281D;
  --felt-glow: #24583F;
  --felt-home: radial-gradient(ellipse at 50% 0%, #1D4130 0%, #0F2419 45%, #070F0B 100%);
  --cream: #F4EFE1;
  --cream-dark: #EDE8DF;
  --cream-border: #D4C8AC;
  --gold: #EAC873;
  --gold-muted: #C9A24B;
  --gold-hero: linear-gradient(135deg, #D4941A 0%, #F5C842 50%, #D4941A 100%);
  --ink: #1E1C14;
  --ink-2: #3D3428;
  --cream-soft: rgba(244, 239, 225, 0.78);
  --cream-faint: rgba(244, 239, 225, 0.14);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1080px;
  --gutter: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #070F0B;
  color: var(--cream);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--cream-faint); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--cream); text-decoration: none; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
@media (max-width: 520px) { .site-nav { gap: 14px; font-size: 14px; } .site-head .wrap { padding-top: 10px; padding-bottom: 10px; } }

/* Hero */
.hero { background: var(--felt-home); padding: 72px 0 80px; text-align: center; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); max-width: 15ch; margin: 0 auto; }
.hero .lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--cream-soft); max-width: 40ch; margin: 20px auto 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-soft); }

/* Game hero */
.game-hero { background: var(--felt-home); padding: 56px 0 64px; }
.game-hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .game-hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.game-hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 28px rgba(0,0,0,.45); margin-bottom: 24px; }
.game-hero h1 { font-size: clamp(38px, 6.5vw, 58px); }
.game-hero .sub { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-soft); margin-top: 10px; }
.game-hero .lede { font-family: var(--display); font-size: clamp(22px, 3.2vw, 28px); line-height: 1.3; margin-top: 22px; max-width: 24ch; }
.game-hero .body { color: var(--cream-soft); margin-top: 14px; max-width: 46ch; }
.praise { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--cream-soft); max-width: 44ch; }
.praise blockquote { margin: 0; }
.praise p { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.45; color: var(--cream); }
.praise figcaption { margin-top: 8px; font-size: 14px; color: var(--cream-soft); }
.praise cite { font-style: normal; font-weight: 600; color: var(--cream); }
.game-hero .hero-shot { justify-self: center; width: min(300px, 78vw); }
.buy { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 28px; }
.buy .facts { font-size: 14px; color: var(--cream-soft); }
.badge img { height: 48px; width: auto; }
.soon { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--cream-faint); font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }

/* Phone screenshots */
.shot { border-radius: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.5); border: 1px solid var(--cream-faint); background: var(--felt-table); }
.gallery { padding: 56px 0 64px; background: var(--felt-deep); }
.gallery h2 { font-size: clamp(26px, 4vw, 34px); }
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--gutter) 12px; margin: 0 auto; max-width: calc(var(--wrap) + 2 * var(--gutter)); scrollbar-color: var(--gold-muted) transparent; }
.strip figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.strip figcaption { font-size: 14px; color: var(--cream-soft); margin-top: 12px; }
.strip-hint { font-size: 14px; color: var(--cream-soft); margin-top: 6px; }
@media (min-width: 720px) { .strip figure { width: 240px; } }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 4.4vw, 38px); }
.section .intro { color: var(--cream-soft); margin-top: 12px; max-width: 56ch; }
.felt { background: var(--felt-table); }
.deep { background: var(--felt-deep); }

/* Cream paper sections: ink on cream, as in the games' sheets */
.paper { background: var(--cream); color: var(--ink); }
.paper .intro, .paper .muted { color: var(--ink-2); }
.paper a { color: var(--ink); text-decoration: underline; }
.paper .eyebrow { color: var(--ink-2); }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 36px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.step { background: #FFFDF7; border: 1px solid var(--cream-border); border-radius: 14px; padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--felt-table); color: var(--cream); font: 600 15px var(--body); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16px; }
.suits { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.suits .r { color: #C23B30; }

/* Score table */
.scoring { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 860px) { .scoring { grid-template-columns: 1fr 1fr; align-items: start; } }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cream-border); vertical-align: top; }
th { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
td.pts { font-weight: 600; white-space: nowrap; }
.note { background: #FFFDF7; border: 1px solid var(--cream-border); border-radius: 14px; padding: 20px 22px; }
.note h3 { font-size: 20px; margin-bottom: 6px; }
.note p { color: var(--ink-2); font-size: 16px; }

/* Feature grid */
.features { display: grid; gap: 28px 32px; margin-top: 36px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features.three { grid-template-columns: repeat(3, 1fr); } }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--cream-soft); font-size: 16px; }
.paper .feature p { color: var(--ink-2); }

/* Key insight block, as in the Coach */
.insight { background: var(--felt-deep); border-radius: 14px; padding: 24px; margin-top: 36px; max-width: 760px; }
.insight .eyebrow { color: var(--gold); }
.insight p { margin-top: 8px; font-size: 18px; }

/* Levels */
.levels { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { border: 1px solid var(--cream-faint); border-radius: 14px; padding: 20px 22px; background: rgba(0,0,0,.18); }
.level h3 { font-size: 22px; }
.level p { color: var(--cream-soft); font-size: 16px; margin-top: 6px; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px 32px; }
@media (min-width: 720px) { .ticks { grid-template-columns: repeat(2, 1fr); } }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .8; }

/* Game cards (home and cross-promotion) */
.games { display: grid; gap: 24px; margin-top: 36px; }
@media (min-width: 820px) { .games { grid-template-columns: 1fr 1fr; } }
.game-card { background: var(--felt-table); border: 1px solid var(--cream-faint); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
/* The lead game: full width, its endorsement beside the button (Ninety-Nine, with David Parlett's quote). */
.game-card.featured { grid-column: 1 / -1; display: grid; gap: 28px; align-items: center; padding: 32px; }
.game-card.featured .feature-copy { display: flex; flex-direction: column; gap: 14px; }
.game-card .tag { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-soft); }
.game-card.featured h3 { font-size: 34px; }
.feature-shot { display: none; }
@media (min-width: 820px) {
  .game-card.featured { grid-template-columns: 1fr 260px; gap: 48px; padding: 40px 48px; }
  .feature-shot { display: block; width: 260px; height: auto; }
}
.endorse { margin: 10px 0 4px; padding: 22px 24px; border-radius: 14px; background: var(--felt-deep); border: 1px solid var(--cream-faint); }
.endorse blockquote { margin: 0; }
.endorse p { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.6vw, 24px); line-height: 1.4; color: var(--cream); }
.endorse figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.endorse cite { font-style: normal; font-weight: 600; color: var(--cream); }
.endorse figcaption span { color: var(--cream-soft); font-size: 14px; }
.game-card .top { display: flex; gap: 18px; align-items: center; }
.game-card img.icon { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.game-card h3 { font-size: 28px; }
.game-card .kind { font-size: 14px; color: var(--cream-soft); margin-top: 2px; }
.game-card .hook { font-family: var(--display); font-size: 21px; line-height: 1.35; }
.game-card p.desc { color: var(--cream-soft); font-size: 16px; }
.game-card .facts { font-size: 14px; color: var(--cream-soft); }
.game-card .actions { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* App Store bundle */
.bundle { display: grid; gap: 24px; align-items: center; background: var(--felt-table); border: 1px solid var(--cream-faint); border-radius: 18px; padding: 28px; }
@media (min-width: 760px) { .bundle { grid-template-columns: auto 1fr; gap: 36px; padding: 36px; } }
.bundle-icons { display: flex; }
.bundle-icons img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.bundle-icons img + img { margin-left: -18px; transform: rotate(6deg) translateY(6px); }
.bundle-icons img:first-child { transform: rotate(-4deg); }
.bundle h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 8px; }
.bundle-copy p { color: var(--cream-soft); margin-top: 10px; max-width: 58ch; }
.bundle-copy p.other strong { color: var(--cream); font-weight: 600; }
.bundle .actions { margin-top: 20px; }
.bundle-strip { margin-top: 24px; padding: 22px 24px; }
@media (min-width: 760px) { .bundle-strip { grid-template-columns: auto 1fr auto; padding: 24px 28px; } }
.bundle-strip .bundle-icons img { width: 64px; height: 64px; border-radius: 15px; }
.bundle-strip h3 { font-size: 24px; }
.bundle-strip .bundle-copy p { margin-top: 6px; font-size: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font: 700 16px var(--body); text-decoration: none; background: var(--gold); color: var(--ink); }
.btn:hover { filter: brightness(1.05); }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Promises (home) */
.promises { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .promises { grid-template-columns: repeat(5, 1fr); } }
.paper .about table a { color: var(--ink); }
.promise { background: #FFFDF7; border: 1px solid var(--cream-border); border-radius: 14px; padding: 22px; }
.promise h3 { font-size: 20px; margin-bottom: 6px; }
.promise p { color: var(--ink-2); font-size: 16px; }

.about > * { max-width: 680px; }
.about p { margin-top: 16px; color: var(--cream-soft); }
.about p:first-of-type { margin-top: 20px; }

.credit { font-size: 15px; color: var(--cream-soft); margin-top: 28px; }
.paper .credit { color: var(--ink-2); }

/* Footer */
.site-foot { border-top: 1px solid var(--cream-faint); padding: 48px 0 40px; font-size: 15px; color: var(--cream-soft); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.site-foot h2 { font-family: var(--body); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-soft); font-weight: 600; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .brand { font-family: var(--display); font-size: 22px; color: var(--cream); }
.site-foot .brand + p { margin-top: 8px; max-width: 32ch; }
.legal { margin-top: 36px; font-size: 13px; }

/* Not found */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--felt-home); padding: 64px 0; }
.notfound h1 { font-size: clamp(32px, 6vw, 48px); }
.notfound p { color: var(--cream-soft); margin-top: 14px; }
