/* Layout: one centered column; each game is a wide card (screenshot left, info right)
   that stacks on phones. All colors and fonts are tokens here so the page can be
   re-themed to match latlas.lol by editing this block. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1b2a34;
  --muted: #5d6b74;
  --line: #e2ded4;
  --accent: #c91a09;
  --accent-ink: #ffffff;
  --highlight: #f2cd37;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12191e;
    --surface: #1b252c;
    --ink: #eef1f2;
    --muted: #9fadb5;
    --line: #2b3841;
    --accent: #e8402c;
    --highlight: #f2cd37;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

a {
  color: inherit;
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  max-width: 1080px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  font: 800 24px/1 var(--display);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 20px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a[aria-current='page'] {
  color: var(--ink);
  box-shadow: 0 3px 0 var(--highlight);
}

.intro {
  padding-block: 40px 32px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font: 800 clamp(34px, 6vw, 56px) / 1.05 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
}

.games {
  display: grid;
  gap: 24px;
  padding-bottom: 48px;
}

.game {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot {
  position: relative;
  display: block;
  min-width: 0;
  background: #9fd0ff;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.shot .hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}

.shot:hover .hover,
.shot:focus-visible .hover {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--highlight);
  color: #1b2a34;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.info {
  min-width: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info h2 {
  margin: 0;
  font: 800 30px/1.1 var(--display);
  letter-spacing: -0.02em;
}

.info p {
  margin: 0;
}

.tagline {
  font-weight: 700;
}

.info p:not(.tagline) {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.chips li {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.phone-note {
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--line);
  transition: transform 0.1s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.how {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.how h3 {
  margin: 0 0 16px;
  font: 800 22px/1.2 var(--display);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 20px;
  align-items: start;
}

figure {
  margin: 0;
  min-width: 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.keys {
  min-width: 0;
  font-size: 15px;
}

.keys p {
  margin: 0 0 8px;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 12px;
}

dt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

dd {
  margin: 0;
  color: var(--muted);
}

.tip {
  border-left: 4px solid var(--highlight);
  padding-left: 10px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 24px 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 6px;
}

.credit {
  font-size: 12px;
}

@media (max-width: 860px) {
  .game {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .info {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot .hover,
  .btn {
    transition: none;
  }
}
