/* Songbird Games — songbirdgames.com
   Exactly's look: warm paper, ink, DM Serif Display for headings, DM Mono for labels.
   Fonts are served from this site (OFL licences in assets/fonts), so no page talks to a third party. */

@font-face { font-family: "DM Serif Display"; src: url("fonts/DMSerifDisplay-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/DMMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --paper: #faf9f6; --card: #ffffff; --ink: #1a1a1a; --muted: #6f6a63; --faint: #e2ddd5;
  --accent: #b5762a; --accent-ink: #ffffff; --soft: #f3ede4;
  --tile: #f0ede8; --tile-ink: #c8c4be;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1d1b; --card: #262522; --ink: #ece8e1; --muted: #a39e96; --faint: #3a3833;
    --accent: #e3b55f; --accent-ink: #1e1d1b; --soft: #2c2925;
    --tile: #2e2c29; --tile-ink: #6f6a63;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
main, .wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { padding: 22px 20px; max-width: 860px; margin: 0 auto; }
/* The mark (light/dark versions swapped by <picture>) beside the name; the eye is a cut-out, so it shows the paper */
.site-head .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: "DM Mono", monospace; font-weight: 500; letter-spacing: .02em; }
.site-head img { width: 44px; height: auto; }
.hero-logo img { width: 240px; max-width: 70%; height: auto; margin: 0 0 32px -6px; }

/* Type */
.eyebrow { font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(44px, 9vw, 72px); margin: 6px 0 12px; }
h2 { font-size: clamp(28px, 5vw, 36px); margin: 0 0 10px; }
h3 { font-size: 30px; margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0; }
.muted { color: var(--muted); }

section { padding: 44px 0; }
.hero { padding: 40px 0 28px; }

/* Game card */
.game {
  display: grid; grid-template-columns: 112px 1fr; gap: 22px; align-items: start;
  background: var(--card); border: 1px solid var(--faint); border-radius: 20px; padding: 24px;
}
.game + .game { margin-top: 16px; }
.game .icon { width: 112px; height: 112px; border-radius: 24px; }
.game p { margin: 8px 0 0; }
.status {
  display: inline-block; font-family: "DM Mono", monospace; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--faint); border-radius: 999px; padding: 2px 10px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font: 500 15px "DM Mono", monospace; text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.disabled { border-color: var(--faint); color: var(--muted); pointer-events: none; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Official store badges (used as supplied: never recoloured or cropped). Google Play: at least 28px tall, clear space of
   a quarter of the height all round (14px at 56px: 4px margin + the row's 10px gap); other store badges no bigger. */
.store-badge { display: inline-block; margin: 4px; line-height: 0; }
.store-badge img { height: 56px; width: auto; }
.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Screenshots */
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 14px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; flex: 0 0 auto; border-radius: 16px; border: 1px solid var(--faint); scroll-snap-align: start; }

/* Section labels, like the game's small caps labels (TARGET, TODAY'S GOALS) */
.label { font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
p.label { margin: 0 0 4px; }

/* Lists of features: each marker is a small free tile */
.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.features li { padding-left: 34px; position: relative; }
.features li::before {
  content: "→"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; box-sizing: border-box;
  display: grid; place-items: center; border: 1.5px solid var(--accent); border-radius: 6px;
  color: var(--accent); font: 500 12px/1 "DM Mono", monospace;
}
.note { margin: 28px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); max-width: 640px; }

/* Game pieces (Exactly page). Free tiles: accent outline and arrow, ink number; blocked tiles: flat and faint */
.tile {
  width: 64px; height: 64px; border-radius: 12px; display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; background: var(--card); border: 2px solid var(--accent);
  font: 30px/1 "DM Serif Display", Georgia, serif; color: var(--ink);
}
.tile .arrow { font: 500 15px/1 "DM Mono", monospace; color: var(--accent); }
.tile.blocked { background: var(--tile); border-color: transparent; color: var(--tile-ink); }
.tile.blocked .arrow { color: var(--tile-ink); }
.hud { display: inline-flex; flex-direction: column; align-items: center; }
.hud .label { font-size: 11px; }
.hud .num { font: 44px/1 "DM Serif Display", Georgia, serif; }
.hud .num.target { color: var(--accent); }
.chip { font: 500 14px/1 "DM Mono", monospace; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 10px; }
.stars { font-size: 24px; letter-spacing: 2px; color: var(--accent); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--faint); border-radius: 20px; padding: 20px; }
.steps .figure { height: 76px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.steps p { margin: 0; font-size: 16px; }

/* FAQ */
.faq { margin-top: 18px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--faint); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 30px 15px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 500 20px "DM Mono", monospace; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.faq details p { margin: 0 0 16px; }

/* Social links: Tabler outline icons, drawn in the text colour */
.social { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.social a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.follow { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 18px; font-family: "DM Mono", monospace; font-size: 15px; }
footer .social { margin-left: auto; }
footer .social svg { width: 18px; height: 18px; }

/* Testers box */
.callout { background: var(--soft); border-radius: 20px; padding: 28px 24px; }
.callout p { margin: 0 0 6px; }

/* Long text (privacy) */
.prose { max-width: 720px; }
.prose h2 { font-size: 27px; margin: 40px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }

/* Footer */
footer {
  max-width: 860px; margin: 40px auto 0; padding: 24px 20px 48px; border-top: 1px solid var(--faint);
  font-family: "DM Mono", monospace; font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .game { grid-template-columns: 1fr; padding: 20px; }
  .game .icon { width: 88px; height: 88px; border-radius: 20px; }
  .shots img { width: 180px; }
  .steps { grid-template-columns: 1fr; }
  footer .social { margin-left: 0; }
}
