/* Tunakat's site. System fonts and our own files only: no page loads anything from anyone else
   (the privacy policies promise that), so there are no web fonts, analytics or embeds. */
:root {
  --bg: #f7f4ee;
  --ink: #1b1d22;
  --muted: #62605a;
  --accent: #23648a;
  --rule: #e2dcd0;
  --card: #fffdf9;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121418; --ink: #ebe7df; --muted: #a29e95; --accent: #82bad8; --rule: #2a2e36; --card: #1a1d23; }
}
/* A game's own pages wear the game's colours. Rising Lamp: its night sky and lantern amber. */
.rising-lamp { --bg: #f6f1e7; --ink: #1d1a15; --muted: #6a6153; --accent: #a5501b; --rule: #ddd3c2; --card: #fffaf1; }
@media (prefers-color-scheme: dark) {
  .rising-lamp { --bg: #11161f; --ink: #e8e1d3; --muted: #a39c8e; --accent: #e0915a; --rule: #2a3140; --card: #171d28; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, .bar, footer { max-width: 46rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main { padding-top: 24px; padding-bottom: 48px; }

.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 20px; }
.bar a { color: var(--ink); text-decoration: none; }
.mark { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.mark span { color: var(--accent); }
.bar nav { display: flex; gap: 16px; font-size: 0.95rem; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: var(--ink); }

footer { border-top: 1px solid var(--rule); padding-top: 16px; padding-bottom: 40px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }

h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 24px 0 4px; color: var(--accent); }
p, ul { margin: 0 0 12px; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.kicker { margin: 0 0 4px; font-size: 0.95rem; }
.kicker a { text-decoration: none; }
.meta { color: var(--muted); font-size: 0.95rem; }
.lede { font-size: 1.2rem; }
.short { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0; }
.short h2 { border: 0; margin-top: 0; padding-top: 0; }

/* Game cards on the home page */
.games { display: grid; gap: 20px; margin: 24px 0 8px; padding: 0; list-style: none; }
.game { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.game > a { display: block; color: inherit; text-decoration: none; }
.game .body { padding: 14px 18px 18px; }
.game h2 { border: 0; margin: 0 0 2px; padding: 0; font-size: 1.3rem; }
.game p { margin: 0; color: var(--muted); }
.game .status { margin-top: 8px; font-size: 0.9rem; color: var(--accent); }

/* A stage banner: the game's art in layers, the characters breathing on their idle strips. */
.banner { position: relative; aspect-ratio: 1152 / 760; overflow: hidden; background: #0c0f15; }
.banner img, .banner .sprite { position: absolute; image-rendering: pixelated; }
.banner > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sprite { aspect-ratio: 1; background-repeat: no-repeat; background-size: 1600% 100%;
  animation: idle 2s steps(16, jump-none) infinite; }
@keyframes idle { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .sprite { animation: none; } }
.rl-mage { left: 13%; top: 24.5%; width: 33.3%; background-image: url(/games/rising-lamp/mage.webp); }
.rl-crab { left: 48.6%; top: 2.6%; width: 48.6%; background-image: url(/games/rising-lamp/crab.webp);
  animation-duration: 2.3s; }
.hero { border-radius: 14px; margin: 8px 0 24px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.pill { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px;
  font-size: 0.95rem; color: var(--muted); background: var(--card); }
