/* MeruWar landing (meruwar.muazaoski.site). Palette from the game's pixel theme. No third-party
   requests: the only webfont is the game's CC0 Modern DOS 8x16, self-hosted. */
@font-face {
  font-family: "ModernDOS";
  src: url("assets/fonts/ModernDOS8x16.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b1315;
  --bg-2: #101c1d;
  --panel: #14242a;
  --panel-edge: #2c4a4c;
  --teal: #45c9bb;
  --teal-dim: #1f6f6a;
  --gold: #e9c983;
  --gold-hi: #ffe08a;
  --cream: #fff1d2;
  --muted: #b8a27a;
  --soft: #8fa39a;
  --ink: #050a0c;
  --red: #8e2b20;
  --red-hi: #b0452c;
  --pixel: "ModernDOS", ui-monospace, "Consolas", monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 19, 21, .88);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--panel-edge);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font: 22px/1 var(--pixel); letter-spacing: 1px; }
.brand img { width: 32px; height: 32px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font: 16px/1 var(--pixel); }
.top nav a { color: var(--cream); text-decoration: none; }
.top nav a:hover { color: var(--gold-hi); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid; align-items: end;
  border-bottom: 4px solid var(--ink);
}
.hero-art {
  position: absolute; inset: 0;
  background: url("assets/comic/p1_3.webp") center 35% / cover no-repeat;
  image-rendering: pixelated;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,19,21,.82) 0%, rgba(11,19,21,.55) 38%, rgba(11,19,21,0) 70%),
    linear-gradient(180deg, rgba(11,19,21,.1) 0%, rgba(11,19,21,.45) 50%, rgba(11,19,21,.96) 88%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 64px; }
.kicker { font: 16px/1 var(--pixel); color: var(--teal); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 14px; text-shadow: 2px 2px 0 var(--ink); }
.hero h1 {
  margin: 0;
  font: clamp(56px, 12vw, 128px)/.9 var(--pixel);
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 rgba(0,0,0,.35);
}
.tagline { margin: 18px 0 0; max-width: 34ch; font-size: clamp(19px, 2.4vw, 24px); color: var(--cream); text-shadow: 2px 2px 0 var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; min-height: 52px;
  font: 18px/1 var(--pixel); letter-spacing: 1px; text-decoration: none;
  color: var(--cream); background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.15), 0 4px 0 var(--ink);
}
.btn:hover { background: var(--red-hi); color: var(--cream); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 2px 0 var(--ink); }
.btn.alt { background: var(--panel); box-shadow: inset 0 0 0 2px var(--panel-edge), 0 4px 0 var(--ink); }
.btn.alt:hover { background: #1b3036; }
.btn[aria-disabled="true"] { cursor: default; }
.btn img { width: 24px; height: 24px; }
.note { margin-top: 14px; font-size: 14px; color: var(--soft); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-block: 2px solid var(--ink); }
.eyebrow { font: 15px/1 var(--pixel); color: var(--teal); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; }
h2 { margin: 0 0 14px; font: clamp(32px, 5vw, 46px)/1.05 var(--pixel); color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.lede { margin: 0 0 40px; max-width: 62ch; color: #d9cfb8; }

/* ---------- comic ---------- */
.comic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel {
  margin: 0; background: var(--ink);
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--panel-edge);
}
.panel img { width: 100%; aspect-ratio: 288 / 150; object-fit: cover; }
.panel figcaption {
  padding: 10px 12px; font-size: 15px; line-height: 1.45;
  background: #f1e2bd; color: #2a1f16; font-weight: 600;
  border-top: 3px solid var(--ink);
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 22px; background: var(--panel);
  border: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--panel-edge);
}
.card img { width: 48px; height: 48px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font: 21px/1.15 var(--pixel); color: var(--cream); }
.card p { margin: 0; font-size: 15.5px; color: #cfc6b0; }

/* ---------- screenshots ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory;
}
.phone {
  margin: 0; scroll-snap-align: start;
  background: var(--ink); padding: 8px; border-radius: 22px;
  box-shadow: 0 0 0 2px var(--panel-edge), 0 10px 0 rgba(0,0,0,.35);
}
.phone img { border-radius: 14px; aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }
.phone figcaption { text-align: center; font: 15px/1 var(--pixel); color: var(--muted); padding: 10px 0 2px; }

/* ---------- closing call ---------- */
.closing { text-align: center; }
.closing .lede { margin-inline: auto; }
.closing .cta { justify-content: center; }

/* ---------- footer ---------- */
footer { padding: 36px 0 48px; border-top: 2px solid var(--ink); background: #081012; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }

/* ---------- prose (privacy) ---------- */
.prose { padding: 56px 0 80px; }
.prose .wrap { max-width: 780px; }
.prose h1 { font: clamp(36px, 6vw, 52px)/1.05 var(--pixel); color: var(--gold); margin: 0 0 6px; text-shadow: 3px 3px 0 var(--ink); }
.prose h2 { font-size: 26px; margin-top: 40px; }
.prose p, .prose li { color: #ddd3bc; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .meta { color: var(--soft); font-size: 15px; margin-bottom: 30px; }
.prose code { font-family: var(--pixel); color: var(--gold); }

@media (max-width: 860px) {
  .comic, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav a.hide-sm { display: none; }
  .comic, .features { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero .wrap { padding-top: 90px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,19,21,.25) 0%, rgba(11,19,21,.72) 34%, rgba(11,19,21,.9) 70%, var(--bg) 100%); }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
