/* moremetal.app: dark stage, flame accent; system fonts only (no third-party requests). */
:root {
  --bg: #0d0a09; --surface: #17120f; --raised: #211a15; --fg: #f5ede6; --muted: #a8998d; --line: #2e241d;
  --flame: #ff6b00; --gold: #ffd140; --blood: #c71f0a;
  --display: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--flame); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 720px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark { font: 900 20px/1 var(--display); letter-spacing: -0.02em;
  background: linear-gradient(var(--gold), var(--flame) 55%, var(--blood)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--fg); }

.doc { padding-block: 48px 72px; }
.doc h1 { font: 900 clamp(32px, 5vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 800 21px/1.3 var(--body); margin: 36px 0 8px; }
.doc p, .doc li { color: #ddd2c9; }
.doc ul { padding-left: 22px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--flame); border-radius: 10px; padding: 16px 18px; margin: 24px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p, details ol, details ul { margin: 10px 0 0; }
code { font: 15px var(--display); background: var(--raised); padding: 1px 6px; border-radius: 5px; }

footer.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.bottom .wrap { padding-block: 28px 40px; display: grid; gap: 10px; }
footer.bottom nav { flex-wrap: wrap; }
footer.bottom p { margin: 0; }

/* Home: placeholder with the animated logo. */
body.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px max(16px, env(safe-area-inset-left)); }
.logo { width: min(260px, 64vw); height: auto; aspect-ratio: 1; border-radius: 22%; image-rendering: pixelated; box-shadow: 0 30px 90px -20px rgba(255, 107, 0, 0.45); }
.placeholder .wordmark { font-size: clamp(40px, 11vw, 64px); margin: 32px 0 12px; line-height: 1.05; }
.tagline { color: var(--muted); margin: 0 0 20px; max-width: 32ch; }
.soon { font: 600 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame); margin: 0; }
body.home footer.bottom { text-align: center; padding: 24px 16px 32px; display: grid; gap: 8px; justify-items: center; }
@media (max-width: 520px) { header.top nav { gap: 14px; } }
