/* Lanterns of Yomi website: the game's night palette, its two pixel fonts (both OFL, in fonts/) */
@font-face { font-family: "Pixelify"; src: url(fonts/PixelifySans.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DotGothic"; src: url(fonts/DotGothic16-Regular.ttf) format("truetype"); font-display: swap; }
:root {
  --ink: #0b0710; --night: #120c22; --night2: #1c1232; --panel: #1a1230; --line: #3a2c58;
  --text: #f1e9d6; --muted: #b3a9cc; --gold: #ffd27a; --lantern: #f4b44c; --ember: #ff8a4a; --sky: #9fd8ff;
  --head: "Pixelify", ui-monospace, Menlo, monospace; --body: "DotGothic", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body { margin: 0; background: radial-gradient(1200px 700px at 70% -10%, #2c1c48 0%, transparent 60%), linear-gradient(#120c22, #0b0710 60%); color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: none; min-height: 100vh; }
img { image-rendering: pixelated; max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff0c0; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 7, 16, 0.86); backdrop-filter: blur(6px); border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px/1 var(--head); letter-spacing: 0.04em; }
.brand img { width: 32px; height: 32px; border: 2px solid var(--ink); box-shadow: 0 0 0 2px var(--line); }
.nav { display: flex; gap: 18px; font: 16px/1 var(--head); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--gold); }

/* hero */
.hero { position: relative; padding: 36px 0 28px; overflow: hidden; }
.hero .art { width: 100%; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--line), 0 18px 0 -6px rgba(0, 0, 0, 0.45); }
.hero h1 { font: 700 clamp(30px, 5vw, 50px)/1.1 var(--head); margin: 28px 0 8px; color: #fff6e0; text-shadow: 0 3px 0 #3a1a10; }
.hero h1 small { display: block; font: 18px/1.4 var(--body); color: var(--lantern); text-shadow: none; margin-top: 8px; letter-spacing: 0.02em; }
.hero p.lede { font-size: 19px; color: #e8dfc8; max-width: 760px; margin: 14px 0 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 200px; padding: 10px 18px; background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--line), inset 0 -4px 0 rgba(0, 0, 0, 0.35); color: var(--text); text-decoration: none; font: 700 19px/1.2 var(--head); }
.store small { font: 14px/1.2 var(--body); color: var(--muted); }
.store:hover { box-shadow: 0 0 0 3px var(--gold), inset 0 -4px 0 rgba(0, 0, 0, 0.35); color: #fff6e0; }
.store.soon { cursor: default; }
.store.soon:hover { box-shadow: 0 0 0 3px var(--line), inset 0 -4px 0 rgba(0, 0, 0, 0.35); }

/* sections */
section { padding: 34px 0; }
h2 { font: 700 28px/1.2 var(--head); color: #fff6e0; margin: 0 0 18px; text-shadow: 0 3px 0 #3a1a10; }
h2::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--lantern); margin-right: 12px; box-shadow: 0 0 12px var(--ember); vertical-align: 4px; }
h3 { font: 700 20px/1.3 var(--head); color: var(--gold); margin: 26px 0 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--line); padding: 16px 18px; }
.feature b { display: block; font: 700 19px/1.3 var(--head); color: var(--gold); margin-bottom: 6px; }
.feature p { margin: 0; color: #e0d6c0; font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.shots figure { margin: 0; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--line); background: var(--ink); }
.shots figcaption { font: 15px/1.4 var(--body); color: var(--muted); padding: 6px 10px; }

/* text pages */
.doc { padding: 34px 0 48px; max-width: 820px; }
.doc h1 { font: 700 34px/1.2 var(--head); color: #fff6e0; margin: 0 0 4px; text-shadow: 0 3px 0 #3a1a10; }
.doc .date { color: var(--muted); margin: 0 0 22px; }
.doc p, .doc li { color: #e8dfc8; }
.doc ul { padding-left: 22px; }
.card { background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--line); padding: 14px 18px; margin: 18px 0; }
.card.gold { box-shadow: 0 0 0 3px var(--lantern); }
.faq details { background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--line); padding: 10px 16px; margin: 0 0 14px; }
.faq summary { cursor: pointer; font: 700 18px/1.4 var(--head); color: var(--gold); }
.faq details p { margin: 8px 0 2px; }

/* footer */
footer { border-top: 2px solid var(--line); margin-top: 20px; padding: 22px 0 34px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .nav { gap: 12px; font-size: 14px; }
  .brand span { display: none; }
  .hero { padding-top: 18px; }
  .store { min-width: 0; flex: 1 1 100%; }
}
