/* Shared look for the text pages (guide, devlog, about, privacy, terms, contact): the landing's palette and type. */
:root {
  --bg: #0a0708; --panel: #140f0d; --ink: #e8dcc4; --muted: #a39580; --gold: #c9a45c; --gold-hi: #f0d796;
  --ember: #ff8a4c; --hollow: #6fe8b0; --line: rgba(201, 164, 92, 0.25);
  --serif: 'Noto Serif KR', 'Cinzel', serif; --display: 'Cinzel', 'Noto Serif KR', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1100px 500px at 70% -10%, rgba(120,40,16,0.16), transparent 60%), var(--bg); color: var(--ink); font-family: var(--serif); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-hi); }
img { max-width: 100%; display: block; }
.wrap { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
html[lang="ko"] [data-l="en"], html[lang="en"] [data-l="ko"] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(10,7,8,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { width: min(1120px, calc(100% - 32px)); display: flex; align-items: center; gap: 18px; padding: 12px 0; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 900; letter-spacing: 0.2em; color: var(--gold-hi); text-decoration: none; font-size: 15px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.links a:hover, .links a.on { color: var(--gold-hi); }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); padding: 5px 10px; cursor: pointer; font-size: 12px; font-family: var(--serif); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font-family: var(--display); font-weight: 700; letter-spacing: 0.12em; font-size: 13px; text-decoration: none; cursor: pointer; border: 1px solid var(--gold); color: var(--gold-hi); background: linear-gradient(180deg, #6a1d10, #2a0a06); }
.btn:hover { box-shadow: 0 0 24px rgba(255,110,40,0.4); }

main { padding: 48px 0 80px; }
h1 { font-family: var(--display); color: var(--gold-hi); letter-spacing: 0.08em; font-size: clamp(28px, 5vw, 42px); line-height: 1.3; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 16px; margin: 0 0 30px; }
h2 { font-family: var(--display); color: var(--gold-hi); font-size: 22px; letter-spacing: 0.06em; margin: 44px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
h3 { color: var(--gold); font-size: 17px; margin: 26px 0 8px; }
p, li { font-size: 15.5px; }
.toc { border: 1px solid var(--line); background: rgba(20,15,13,0.7); padding: 14px 20px; margin: 0 0 20px; }
.toc b { font-family: var(--display); letter-spacing: 0.2em; font-size: 12px; color: var(--muted); }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold-hi); }
.table { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--gold); font-weight: 600; background: rgba(90,26,16,0.35); padding: 8px 10px; white-space: nowrap; }
td { padding: 7px 10px; border-top: 1px solid rgba(255,255,255,0.05); vertical-align: top; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.crown { color: #ff9a74; }
.hollow { color: var(--hollow); }
.note { border-left: 2px solid var(--gold); background: rgba(20,15,13,0.8); padding: 10px 16px; margin: 16px 0; font-size: 15px; }
figure { margin: 18px 0; }
figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; background: rgba(255,255,255,0.06); padding: 1px 5px; }
.ad { margin: 34px 0; min-height: 90px; }
form.contact { display: grid; gap: 12px; max-width: 560px; }
form.contact label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
form.contact input, form.contact textarea, form.contact select { font: inherit; color: var(--ink); background: #0d0a09; border: 1px solid var(--line); padding: 10px 12px; }
form.contact textarea { min-height: 160px; resize: vertical; }
.status { font-size: 14px; color: var(--gold-hi); min-height: 22px; }
footer { border-top: 1px solid var(--line); padding: 30px 0 60px; color: var(--muted); font-size: 13px; }
footer .wrap { width: min(1120px, calc(100% - 32px)); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 14px; }
footer a:hover { color: var(--gold-hi); }
@media (max-width: 640px) { .links { order: 3; width: 100%; gap: 12px; } main { padding-top: 30px; } }
