/* cainamgames.com: the game's colours (docs/ART_STYLE.md, palette P in tools/make_art.js) and its font */
@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@500;700&display=swap");

:root {
  --void: #0b0908;
  --rock: #2b221b;
  --lamp: #ffd77a;
  --parchment: #e2d1a8;
  --ash: #a5845a;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--void); color: var(--parchment); }
body { margin: 0; font: 17px/1.6 var(--body); padding: 32px 16px 48px; }
main { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
main > * { min-width: 0; }
main.text { max-width: 680px; }
img { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 4px solid var(--rock); }
h1, h2, .studio, .soon { font-family: var(--pixel); font-variant-ligatures: none; overflow-wrap: anywhere; }
h1, h2, .studio { color: var(--lamp); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(26px, 7vw, 34px); }
h2 { font-size: 22px; margin-top: 24px; }
.studio { font-size: 20px; letter-spacing: 0.04em; }
.studio a { color: inherit; text-decoration: none; }
p, ul { margin: 0 0 12px; }
li { margin-bottom: 6px; }
.soon { color: var(--lamp); font-size: 20px; }
.date { color: var(--ash); font-size: 15px; }
section + section { border-top: 2px solid var(--rock); padding-top: 24px; }
a { color: var(--lamp); }
a:focus-visible { outline: 3px dashed var(--lamp); outline-offset: 3px; }
footer { display: flex; flex-wrap: wrap; gap: 8px 12px; border-top: 2px solid var(--rock); padding-top: 20px; font-size: 15px; }

/* The game page (pitlight/, pitlight/fr/): the screenshots scroll sideways on a phone, four per row wider up */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.top .studio { margin: 0; }
.tagline { font-family: var(--pixel); font-variant-ligatures: none; color: var(--lamp); font-size: 20px; }
.intro { display: grid; gap: 4px 28px; grid-template-areas: "head" "clip" "text"; }
.intro .head { grid-area: head; }
.intro .text { grid-area: text; padding-top: 16px; }
.clip { grid-area: clip; justify-self: center; display: block; width: 100%; max-width: 300px; height: auto;
  aspect-ratio: 800 / 1200; background: var(--void); border: 4px solid var(--rock); image-rendering: pixelated; }
@media (min-width: 640px) {
  .intro { grid-template-columns: 1fr 260px; grid-template-areas: "head clip" "text clip"; align-items: start; }
  .intro .text { padding-top: 0; }
}
.test { border-left: 4px solid var(--lamp); padding-left: 12px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots figcaption { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--ash); }
@media (min-width: 640px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}
