@font-face {
  font-family: "PixelDungeon";
  src: url("fonts/pixel_font.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* app icon background and its gold glow bands */
  --night: #1e1838;
  --glow-1: #271f37;
  --glow-2: #342836;
  --glow-3: #443535;
  /* mossy stone of the title logo */
  --stone-dark: #302f34;
  --stone: #393a38;
  --stone-edge: #595e51;
  --moss: #8ea05e;
  --rune: #3fa9d4;
  /* dragon seal gold */
  --gold: #f3cd4b;
  --gold-dark: #d99723;
  --text: #e8e4d6;
  --muted: #a8a596;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.75 "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% -120px,
      var(--glow-3) 0 220px,
      var(--glow-2) 220px 380px,
      var(--glow-1) 380px 560px,
      var(--night) 560px);
  background-repeat: no-repeat;
  background-color: var(--night);
}

img.px { image-rendering: pixelated; image-rendering: crisp-edges; }

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }

header.top { text-align: center; padding: 20px 16px 0; }
header.top a { display: inline-block; }
header.top .logo { width: min(256px, 70vw); height: auto; }

.panel {
  background: var(--stone-dark);
  border: 3px solid var(--stone-edge);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 3px var(--stone);
  padding: 20px 22px;
  margin: 18px 0;
}

h1, h2 { font-weight: normal; line-height: 1.35; }
h1 { color: var(--gold); font-size: 24px; margin: 4px 0 6px; }
h2 { color: var(--moss); font-size: 18px; margin: 26px 0 6px; }
article[lang="en"] h1, article[lang="en"] h2, .pixel {
  font-family: "PixelDungeon", "Pretendard", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: 0.5px;
}

a { color: var(--rune); }
a:hover { color: var(--gold); }

.meta, .lang { color: var(--muted); font-size: 14px; }
.lang { text-align: right; margin: 0 0 4px; }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

hr { border: 0; height: 3px; background: var(--stone-edge); box-shadow: 0 3px 0 #000; margin: 40px 0; }

/* front page */
.hero { text-align: center; padding: 28px 0 8px; }
.hero .logo { width: min(384px, 88vw); height: auto; }
.hero .seal { width: 96px; height: 96px; margin-top: 18px; }
.hero .tagline { margin: 10px 0 0; color: var(--text); }
.hero .tagline span { display: block; color: var(--muted); font-size: 14px; }

.buttons { display: grid; gap: 14px; max-width: 420px; margin: 26px auto 0; }
.button {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--stone);
  border: 3px solid var(--stone-edge);
  box-shadow: 0 0 0 3px #000, inset 0 -3px 0 #2a2a28;
  padding: 10px 14px;
}
.button:hover { color: var(--gold); border-color: var(--gold-dark); }
.button small { display: block; color: var(--muted); font-size: 13px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 16px 32px;
}
footer a { color: var(--muted); }
