@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("fonts/LuckiestGuy.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #fff8ec;
  --bg-alt: #ffefd2;
  --card: #ffffff;
  --text: #2b1d0e;
  --muted: #6b5a45;
  --honey: #f5a623;
  --honey-dark: #b86e00;
  --leaf: #3f8f3a;
  --line: #ecd9b8;
  --night: #1b1230;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17111f;
    --bg-alt: #211830;
    --card: #261c36;
    --text: #f6ecdc;
    --muted: #c5b49c;
    --honey: #ffbf47;
    --honey-dark: #ffd27a;
    --leaf: #7fcf72;
    --line: #3b2d50;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--honey-dark); }
a:hover { text-decoration-thickness: 2px; }

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Luckiest Guy", "Fredoka", sans-serif; font-size: 24px; letter-spacing: 1px; }
.brand .cube { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--honey), #ff7a3d); box-shadow: 3px 3px 0 var(--honey-dark); }
nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

.hero { padding: 56px 0 40px; }
.hero .badge { margin-bottom: 14px; }
.hero h1 { font-family: "Luckiest Guy", "Fredoka", sans-serif; font-weight: 400; font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin: 0 0 12px; letter-spacing: 1px; }
.hero p.lead { font-size: 21px; color: var(--muted); max-width: 640px; margin: 0; }

h2 { font-size: 28px; margin: 48px 0 16px; }
h3 { font-size: 21px; margin: 24px 0 8px; }

.game-card {
  display: grid; grid-template-columns: 1fr; gap: 0; max-width: 760px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(80, 50, 0, 0.12);
}
.game-card .body { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.game-card h3 { margin: 0; font-family: "Luckiest Guy", "Fredoka", sans-serif; font-weight: 400; font-size: 34px; letter-spacing: 1px; color: var(--honey-dark); }
.game-card img { width: 100%; height: auto; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: var(--honey); color: #2b1d0e; box-shadow: 0 3px 0 var(--honey-dark);
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.badge { align-self: flex-start; display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }

.banner { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin: 24px 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.features b { display: block; font-size: 19px; margin-bottom: 4px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }

.prose { max-width: 760px; }
.prose h1 { font-size: 34px; margin: 40px 0 4px; }
.prose .date { color: var(--muted); margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.todo { background: #fff3a8; color: #3a3000; padding: 0 4px; border-radius: 4px; }

footer.site { margin-top: 64px; border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .body { padding: 20px; }
  nav a { margin: 0 14px 0 0; }
  .hero { padding: 36px 0 24px; }
}
