/* snapshotplay.com. The colours are the join page's (public/join/index.html),
   so a visitor moving between them sees one site. Light only, like the join
   and delete-account pages. */

:root {
  --canvas: #F6F1EA;
  --surface: #FFFFFF;
  --ink: #1B1416;
  --ink-secondary: #3A2E2E;
  --muted: #4D4344;
  --maroon: #7C1224;
  --maroon-dark: #5E0D1B;
  --fill: #E6DDD2;
  --stroke: #948981;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--canvas); color: var(--ink); }

body {
  font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--maroon); text-underline-offset: 2px; }
a:hover { color: var(--maroon-dark); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: 34px; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 32px 0 10px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin: 0 0 8px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.page { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 12px 16px; z-index: 10; }

/* Header and footer ---------------------------------------------------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--fill); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 800; font-size: 21px; color: var(--maroon); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--maroon); text-decoration: underline; }

.site-footer { background: var(--surface); border-top: 1px solid var(--fill); padding: 24px 0 32px; font-size: 16px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-secondary); }

/* Shared pieces --------------------------------------------------------- */

.lead { font-size: 20px; color: var(--ink-secondary); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.note { color: var(--muted); font-size: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 20px; margin: 20px 0; }
.card h2 { margin-top: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; min-width: 48px; padding: 12px 22px;
  border-radius: 16px; border: 2px solid var(--ink); background: var(--surface);
  color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.button:hover { background: var(--fill); color: var(--ink); }
.button.primary { background: var(--maroon); border-color: var(--maroon); color: #FFFFFF; }
.button.primary:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #FFFFFF; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.stores .note { margin: 0; flex-basis: 100%; }

/* Home ------------------------------------------------------------------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--fill); }
.hero-row { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; align-items: center; }
.hero h1 { font-size: 38px; }
.hero-art { justify-self: center; max-width: 360px; width: 100%; }

.band { padding-top: 16px; padding-bottom: 8px; }
.band.last { padding-bottom: 56px; }
.steps li, .rules li { padding-left: 4px; }
.columns { display: grid; gap: 0 20px; }
.columns .card { margin: 12px 0; }

/* Snapshot Capture --------------------------------------------------------- */

.game { display: grid; gap: 24px; }
.game-card { max-width: 280px; justify-self: center; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 24px 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* Legal pages: long text, read on a phone. ------------------------------- */

.legal h2 { font-size: 22px; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px; border: 1px solid var(--fill); }
.legal th { background: var(--surface); }
.legal p, .legal li { overflow-wrap: anywhere; }

/* Wider screens ------------------------------------------------------------ */

@media (min-width: 760px) {
  h1 { font-size: 40px; }
  .hero h1 { font-size: 48px; }
  .hero-row { grid-template-columns: 1.2fr 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art { max-width: 440px; }
  .columns { grid-template-columns: repeat(3, 1fr); }
  .game { grid-template-columns: 280px 1fr; align-items: start; }
}
