@font-face {
  font-family: Nunito;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #4a3850;
  --cream: #fff8ec;
  --pink: #ff5f8f;
  --green: #4fb85f;
  --blue: #5aaeff;
  --shadow: rgba(74, 56, 80, .18);
  --card: #fff;
  --line: #f1e4d2;
  --muted: #7a6a80;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Nunito, ui-rounded, 'Segoe UI Rounded', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  font-size: 18px;
}
a { color: #2f6fb5; font-weight: 800; }
a:hover { color: var(--pink); }
h1, h2, h3 { line-height: 1.15; font-weight: 900; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 1.6em; }
h3 { font-size: 22px; }
p, li { max-width: 46em; }
small, .muted { color: var(--muted); }

.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

/* ------------------------------------------------------------ header + nav */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 900; }
.brand img { width: 40px; height: 40px; }
.brand small { font-size: 15px; font-weight: 700; color: var(--muted); display: block; line-height: 1; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  text-decoration: none; color: var(--ink); padding: 8px 16px; border-radius: 999px;
  background: var(--card); box-shadow: 0 3px 0 var(--shadow), inset 0 0 0 2px var(--line);
}
nav a[aria-current] { background: #fff4b8; box-shadow: 0 3px 0 #d9b93a, inset 0 0 0 3px #ffc933; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--shadow); margin-top: 8px; }
.hero img { display: block; width: 100%; height: auto; }
.hero h1 {
  position: absolute; left: 0; right: 0; top: 34%; transform: translateY(-50%); margin: 0; text-align: center;
  font-size: clamp(38px, 8vw, 90px); color: #fff; paint-order: stroke fill;
  -webkit-text-stroke: .16em var(--ink); text-shadow: 0 .1em 0 var(--ink); letter-spacing: .01em;
}
.hero h1 .w1 { color: #ffd84a; } .hero h1 .w2 { color: #7ee08b; }
.lede { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 24px auto 6px; text-align: center; max-width: 30em; }
.sub { text-align: center; margin: 0 auto; max-width: 38em; font-size: 18px; }

/* ------------------------------------------------------------ cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 18px 0; }
.card {
  background: var(--card); border-radius: 24px; padding: 18px 20px;
  box-shadow: 0 6px 0 var(--shadow), inset 0 0 0 3px var(--line);
}
.card h3 { margin-top: 8px; }
.card p { margin: 0; font-size: 17px; }
.card img.badge { width: 72px; height: 72px; }
.game { display: flex; gap: 14px; align-items: flex-start; }
.game img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.game h3 { margin: 0 0 2px; font-size: 20px; }
.game .status { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #e6fbe0; color: #2f7f45; }
.game .status.soon { background: #fff3cf; color: #8a5a00; }
.game .status.wip { background: #e3f4ff; color: #2f6fb5; }

.cta {
  display: inline-block; text-decoration: none; color: #fff; background: var(--green); box-shadow: 0 5px 0 #2f7f45;
  padding: 12px 24px; border-radius: 999px; font-size: 19px; font-weight: 900;
}
.cta:hover { color: #fff; transform: translateY(-1px); }
.cta.alt { background: var(--blue); box-shadow: 0 5px 0 #2f6fb5; }

.band { background: #fff; border-radius: 24px; padding: 22px 26px; margin: 26px 0; box-shadow: inset 0 0 0 3px var(--line); }
.band h2 { margin-top: 0; }

/* ------------------------------------------------------------ prose pages */
.prose { max-width: 46em; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose .updated { color: var(--muted); font-weight: 700; }
dl.faq dt { font-weight: 900; margin-top: 18px; }
dl.faq dd { margin: 4px 0 0; }

footer { margin: 48px 0 32px; padding-top: 18px; border-top: 3px solid var(--line); display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 16px; }
footer a { color: var(--ink); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { border-radius: 18px; }
  .hero h1 { top: 32%; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
