/* The website's pages (about, guide, wilds, chronicle, cities): one look, the game's palette. */
:root { color-scheme: dark; --bg: #23211f; --panel: #2d2a27; --panel2: #35312d; --ink: #ece6da; --dim: #b8b0a2; --gold: #f3d27a; --gold2: #e3b23c; --green: #9cc46a; --line: rgba(255,255,255,.1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; }
a { color: var(--gold); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }

nav.top { position: sticky; top: 0; z-index: 5; background: rgba(35,33,31,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
nav.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); text-decoration: none; font-size: 18px; margin-right: auto; white-space: nowrap; }
nav.top .brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.top .links { display: flex; gap: 18px; }
nav.top .links a { color: var(--dim); text-decoration: none; font-weight: 800; font-size: 15px; }
nav.top .links a:hover, nav.top .links a[aria-current] { color: var(--ink); }
@media (max-width: 820px) { nav.top .links { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; border-radius: 99px; padding: 14px 28px; font-size: 17px; }
.btn.gold { background: linear-gradient(180deg, #f7d774, var(--gold2)); color: #23211f; box-shadow: 0 4px 0 #a97f1f; }
.btn.ghost { color: var(--ink); border: 1px solid rgba(255,255,255,.22); }
nav.top .btn { padding: 9px 18px; font-size: 15px; }

.crumbs { font-size: 14px; color: var(--dim); padding-top: 28px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 900; color: var(--gold); }
h1 { font-family: Cinzel, Georgia, serif; font-weight: 900; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; margin: 10px 0 14px; text-wrap: balance; }
h2 { font-family: Cinzel, Georgia, serif; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 48px 0 12px; text-wrap: balance; }
h3 { font-size: 22px; margin: 30px 0 8px; font-weight: 900; }
.lede { font-size: 19px; color: #f4efe5; max-width: 720px; }
p, li { max-width: 760px; }
.dim { color: var(--dim); }
.small { font-size: 14.5px; }

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 26px 0; columns: 2 220px; column-gap: 28px; }
.toc a { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; font-weight: 800; break-inside: avoid; }
.toc a:hover { color: var(--gold); }
.toc .grp { color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; margin-top: 8px; break-after: avoid; }

.lesson { border-top: 1px solid var(--line); padding-top: 6px; scroll-margin-top: 72px; }
.lesson .rule { font-size: 18.5px; color: #f4efe5; }
.lesson ul { padding-left: 22px; }
.lesson li { margin: 6px 0; color: var(--ink); }
.lesson .tips { background: rgba(156,196,106,.08); border: 1px solid rgba(156,196,106,.25); border-radius: 12px; padding: 10px 16px 10px 18px; margin: 12px 0; max-width: 760px; }
.lesson .tips b { color: var(--green); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; scroll-margin-top: 72px; }
.card h3 { margin: 0 0 4px; font-size: 21px; }
.card .meta { color: var(--dim); font-size: 14px; margin: 0 0 10px; }
.card .pics { display: flex; gap: 4px; margin: 4px 0 8px; }
.card .pics img { width: 64px; height: 64px; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14.5px; margin: 10px 0 0; }
.card dt { color: var(--dim); }
.card dd { margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; border-radius: 99px; padding: 2px 10px; margin-right: 6px; border: 1px solid var(--line); color: var(--dim); }
.tag.rare { color: #9ec7ff; border-color: rgba(158,199,255,.4); }
.tag.legendary { color: var(--gold); border-color: rgba(243,210,122,.5); }
.tag.uncommon { color: var(--green); border-color: rgba(156,196,106,.4); }

table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--dim); font-weight: 800; }
table.data td.num { font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }

.chapter { border-left: 3px solid var(--gold2); padding: 2px 0 2px 18px; margin: 26px 0; scroll-margin-top: 72px; }
.chapter h3 { margin-top: 0; }
.chapter .story { font-style: italic; color: #f4efe5; }
.chapter ol { padding-left: 22px; }
.chapter .opens { color: var(--green); font-weight: 800; }

.cta-band { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin: 56px 0 0; text-align: center; }
.cta-band h2 { margin-top: 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 64px; padding-block: 36px 48px; color: var(--dim); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer.site .wrap > span { margin-right: auto; }
footer.site a { color: var(--dim); text-decoration: none; font-weight: 800; }
footer.site a:hover { color: var(--ink); }
