/* Debello Games: one stylesheet, no build step. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bungee";
  src: url("fonts/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --ink: #1f2430;
  --muted: #5b6170;
  --navy: #00548f;   /* the logo's letters */
  --sky: #8ed8f8;    /* the logo's "GAMES" */
  --red: #c8352b;    /* the game's logo */
  --rule: #d9d3c4;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 "Atkinson Hyperlegible", system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand img { width: 180px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
nav a:hover { color: var(--navy); text-decoration: underline; }

/* Sections */
main > section.wrap { margin-top: 56px; }
main > .intro.wrap { margin-top: 48px; }
main > .game.wrap { margin-top: 32px; }
.lead { font-size: 1.3rem; line-height: 1.5; margin: 0; }

h1, h2 { line-height: 1.2; }
h2 {
  font-size: 1.4rem; margin: 0 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--ink);
}

.game .banner { border: 2px solid var(--ink); margin-bottom: 24px; }
.game-title {
  font-family: "Bungee", "Atkinson Hyperlegible", sans-serif;
  font-weight: 400; font-size: 2.4rem; letter-spacing: 1px;
  color: var(--red); margin: 0;
}
.status { color: var(--muted); margin: 4px 0 20px; }
.status .sep { margin: 0 6px; }

/* Receipt-style lines with dotted leaders, like the game's menus */
.facts { list-style: none; padding: 0; margin: 24px 0; max-width: 460px; }
.facts li { display: flex; align-items: baseline; gap: 8px; padding: 2px 0; }
.facts .dots { flex: 1; border-bottom: 2px dotted var(--muted); transform: translateY(-5px); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 32px; }
.button {
  display: inline-block; padding: 10px 18px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
  border: 2px solid var(--navy); border-radius: 3px;
}
.button:hover { background: #003f6b; color: #fff; }
.button-plain { background: transparent; color: var(--navy); }
.button-plain:hover { background: var(--navy); color: #fff; }
.button-off { background: transparent; color: var(--muted); border: 2px dashed var(--muted); }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--ink); }
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

/* Footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--rule); background: #fff; }
.site-footer p { margin: 0; padding: 20px 0; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .header-row { flex-direction: column; align-items: flex-start; }
  .brand img { width: 150px; }
  .shots { grid-template-columns: 1fr; }
  .game-title { font-size: 2rem; }
}
