/* The site's structure, the same in every look. The look (style/looks/<name>.css) sets the colours, the type and the
   shapes through the custom properties used here; a game's theme (.theme-<slug>, written by the build from its
   game.toml) sets the colours and the type again inside the game's own pages and cards. No animation runs unless the
   reader allows motion. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* On Apple devices, the text follows the size the reader has chosen in the device's settings. */
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
:root, .themed { --tint: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem;
  line-height: 1.6; }
.themed { background: var(--paper); color: var(--ink); font-family: var(--font-body); }
main { display: block; padding-bottom: 3rem; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.15;
  color: var(--heading, var(--ink)); text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.8rem); margin: 2.25rem 0 .75rem; color: var(--subheading, var(--heading, var(--ink))); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .35rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; }

.skip { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .6rem 1rem; background: var(--ink);
  color: var(--paper); border-radius: var(--radius-small); }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.prose > * { max-width: 44rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: .35rem 0; }

/* The header: the studio's name, and its two links. */
.site-header { background: var(--header-bg, var(--paper)); border-bottom: 1px solid var(--line); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 0; color: var(--header-ink, var(--ink));
  font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1; text-decoration: none;
  font-size: calc(var(--wordmark-size, 1.4rem) * var(--wordmark-scale, 1)); }
.mark { display: block; width: calc(var(--mark-width, 2.6rem) * var(--wordmark-scale, 1)); height: auto; flex: none; }
.wordmark-rest { color: var(--wordmark-rest, inherit); }
.site-nav { display: flex; gap: .25rem; margin-right: -.6rem; }
.site-nav a { display: block; padding: .7rem .75rem; border-radius: var(--radius-small); color: var(--header-ink, var(--ink));
  font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--header-hover, var(--tint)); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
/* On a phone, the name and the two links share one line. */
@media (max-width: 30rem) {
  :root { --wordmark-scale: .82; }
  .wordmark { gap: .4rem; }
  .site-nav { margin-right: -.45rem; }
  .site-nav a { padding: .7rem .45rem; }
}

/* The home page's opening, and the heads of the other pages. */
.hero { background: var(--hero-bg, transparent); padding: clamp(2rem, 7vw, 4.5rem) 0 clamp(1.5rem, 5vw, 3rem); }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); margin-bottom: .75rem; }
.tagline { max-width: 34rem; margin: 0; color: var(--muted); font-size: clamp(1.2rem, 3.4vw, 1.6rem); line-height: 1.35; }
.page-head { padding-top: clamp(1.5rem, 5vw, 3rem); }
.section { padding: .5rem 0 1rem; }
.lead { max-width: 44rem; font-size: 1.25rem; line-height: 1.5; }
.meta, .date { color: var(--muted); font-size: .95rem; }
.more { margin: 1.25rem 0 0; font-weight: 600; }

/* The games' cards on the home page: each in its game's own colours, the whole card a link. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.card img, .card .placeholder { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.placeholder { background: linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--accent) 40%, var(--paper))); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.15rem 1.1rem; }
.card-title { margin: 0 0 .4rem; color: var(--ink); font-size: 1.4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p { margin-bottom: .6rem; }
.card .meta { margin: auto 0 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform .15s ease, box-shadow .15s ease; }
  .card:hover { transform: translateY(-3px); }
}

/* The promises. */
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.promise-list li { padding: 1.1rem 1.2rem; background: var(--tint); border-radius: var(--radius); }
.promise-title { display: block; margin-bottom: .3rem; color: var(--heading, var(--ink)); font-family: var(--font-display);
  font-weight: var(--display-weight); font-size: 1.2rem; }

/* The catalogue: one line for each game, its icon beside it. */
.catalogue { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.entry { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start;
  padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry h2 { margin: 0 0 .3rem; color: var(--ink); font-size: 1.4rem; }
.entry h2 a { color: var(--ink); text-decoration: none; }
.entry h2 a::after { content: ""; position: absolute; inset: 0; }
.entry:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.entry p { margin: 0 0 .4rem; }
.app-icon { display: block; width: 4.5rem; height: 4.5rem; border-radius: 22.5%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 2px 8px rgba(0, 0, 0, .12); }

/* A game's pages: its name and icon, then the links between its pages. */
.game-top { padding: clamp(1.5rem, 5vw, 2.75rem) 0 1.5rem; }
.game-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.game-head h1 { margin: 0; }
.subtitle { margin: .3rem 0 0; color: var(--muted); font-size: 1.15rem; }
.availability { margin: 0 0 1rem; }
.status { display: inline-block; margin-right: .2rem; padding: .2rem .75rem; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink); font-weight: 700; font-size: .95rem; text-decoration: none; }
.game-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
.game-nav a { margin-bottom: -1px; padding: .75rem 0; border-bottom: 3px solid transparent; font-weight: 600;
  text-decoration: none; }
.game-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* The pictures from a game, side by side: swiped on a phone or a tablet, scrolled sideways on a computer; the next
   one shows at the edge. */
.shots { margin-bottom: 1.5rem; }
.gallery { list-style: none; display: flex; gap: 1rem; margin: 0 -1rem; padding: .25rem 1rem 1rem; overflow-x: auto;
  overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; }
.gallery li { flex: 0 0 min(85%, 34rem); scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius-small);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 4px 14px rgba(0, 0, 0, .12); }
.gallery figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
@media (min-width: 48rem) { .gallery { margin: 0 -2rem; padding-inline: 2rem; scroll-padding-inline: 2rem; } }
@media (min-width: 64rem) { .gallery li { flex-basis: 30%; } }

/* At a glance: the facts parents check, in the same place for every game. */
.glance dl { display: grid; gap: .75rem; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.glance dl > .wide { grid-column: 1 / -1; }
.glance dl > div { padding: .8rem 1rem; background: var(--tint); border-radius: var(--radius-small); }
.glance dt { color: var(--heading, var(--ink)); font-weight: 700; }
.glance dd { margin: .15rem 0 0; }

/* The foot of every page. */
.site-footer { padding: 1.75rem 0 2.5rem; background: var(--footer-bg, transparent); border-top: 1px solid var(--line);
  color: var(--muted); font-size: .95rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: inherit; }
.footer-promises { color: var(--ink); font-weight: 700; }

/* The studio's look, "Chart": chosen by the user on 2026-10-26 from five, a mix of their A and B, "softer than B but
   more historical looking than A". Parchment paper, sepia ink, a sea teal and a map red; serif headings (New York on
   Apple devices) over the system's own type for the text; a dotted route under the studio's name, as on an old chart;
   gently rounded corners. */
:root {
  --paper: #fcf7ec;
  --ink: #2b2620;
  --muted: #5e574d;
  --accent: #22625c;
  --accent-ink: #ffffff;
  --line: #e7dac3;
  --focus: #b4532a;
  --heading: #2b2620;
  --subheading: #22625c;
  --wordmark-rest: #a94c25;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --display-weight: 600;
  --wordmark-size: 1.45rem;
  --radius: 14px;
  --radius-small: 9px;
  --shadow: 0 1px 2px rgba(43, 38, 32, .06), 0 6px 18px rgba(43, 38, 32, .07);
  --hero-bg: linear-gradient(180deg, #f5ead4 0%, #fcf7ec 100%);
  --tint: #f5ecda;
}
.wordmark { letter-spacing: .01em; }
.hero h1::after { content: ""; display: block; width: 7.5rem; height: 6px; margin-top: 1rem;
  background: radial-gradient(circle, #a94c25 2px, transparent 2.5px) 0 50% / 12px 6px repeat-x; }
.tagline { font-family: var(--font-display); font-style: italic; }
.promise-list li { border: 1px solid var(--line); }

/* Each game's theme, from its game.toml */
.theme-the-spice-trail { --paper: #fbf3dd; --ink: #2b2118; --muted: #6b5a48; --accent: #2c6a8a; --accent-ink: #fbf3dd; --line: #e2d6bb; --heading: #2b2118; --subheading: #2c6a8a; --font-body: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif; --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif; --display-weight: 700; }
