/* The crawlable landing pages (/guide/, /grand-exchange/, ...), built by
   tools/seo-pages.mjs. Same palette and fonts as the app and the homepage. */
:root {
  --bg: #070506; --bg-2: #0d090a; --surface: #140e0d; --surface-2: #1b1312; --surface-3: #251a18;
  --line: rgba(212, 175, 90, .14); --line-2: rgba(212, 175, 90, .3);
  --text: #efe6d4; --text-2: #c9bda5; --muted: #9a8e7b; --faint: #6f6354;
  --gold: #d4af5a; --gold-2: #f1d38b; --green: #5bbf7a; --prep: #e0a93a; --danger: #ef7a45; --extreme: #e2453f; --blood: #b3262b;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--text-2); min-height: 100vh;
  background: radial-gradient(60% 40% at 50% 0%, rgba(179, 38, 43, .16), transparent 70%), radial-gradient(40% 30% at 90% 30%, rgba(212, 175, 90, .06), transparent 70%), var(--bg); }
a { color: var(--gold-2); text-decoration-color: rgba(241, 211, 139, .35); text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--text); line-height: 1.25; }
h1, h2 { font-family: var(--display); letter-spacing: .02em; }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; color: var(--gold-2); }
h2 { font-size: clamp(21px, 3vw, 27px); margin: 44px 0 14px; padding-top: 6px; }
h3 { font-size: 17.5px; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin: 4px 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; color: var(--gold-2); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(9, 6, 7, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 24px; height: 29px; flex: none; }
.brand b { font: 700 17px/1 var(--display); letter-spacing: .04em; color: var(--gold-2); }
.top nav { display: flex; gap: 4px 16px; flex-wrap: wrap; flex: 1; font-size: 14px; }
.top nav a { color: var(--text-2); text-decoration: none; padding: 4px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold-2); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; font: 600 14.5px/1.2 var(--font); text-decoration: none; border: 1px solid var(--line-2); color: var(--gold-2); background: rgba(212, 175, 90, .06); transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: rgba(212, 175, 90, .14); color: #fff3cf; }
.btn.main { background: linear-gradient(180deg, #fff0c4, var(--gold-2) 40%, var(--gold) 75%, #a98637); color: #1a1210; border-color: transparent; box-shadow: 0 6px 22px rgba(212, 175, 90, .18); }
.btn.main:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(212, 175, 90, .28); color: #1a1210; }
.motion { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--muted); font: 500 12.5px var(--font); cursor: pointer; padding: 4px; }
.motion i { width: 30px; height: 17px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; }
.motion i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.motion[aria-checked="true"] i::after { transform: translateX(13px); background: var(--gold-2); }

/* ---- page ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.crumbs { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.hero { padding: 26px 0 8px; max-width: 820px; }
.kicker { font: 600 12.5px/1 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lede { font-size: 18.5px; color: var(--text); line-height: 1.6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta { font-size: 13.5px; color: var(--muted); }
main { padding-bottom: 60px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 18px 0; }
.card { background: linear-gradient(180deg, #1c1411, #110c0b); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.card h3 { margin-top: 0; font-family: var(--display); letter-spacing: .02em; font-size: 18px; color: var(--gold-2); }
.card h3 a { text-decoration: none; color: inherit; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.fact b { display: block; font: 700 26px/1.1 var(--display); color: var(--gold-2); }
.fact span { font-size: 13.5px; color: var(--muted); }
.callout { border-left: 3px solid var(--gold); background: rgba(212, 175, 90, .06); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; color: var(--text-2); }
.callout.warn { border-left-color: var(--danger); background: rgba(239, 122, 69, .07); }

/* ---- guide steps ---- */
.trip { margin: 30px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.trip h2 { margin: 0 0 6px; font-size: clamp(19px, 2.6vw, 23px); }
.trip .meta { margin-bottom: 10px; }
.steps { padding-left: 24px; }
.steps li { margin: 9px 0; padding-left: 4px; }
.steps li::marker { color: var(--gold); font-weight: 600; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 1px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); }
.tag.q { color: var(--gold-2); }
.tag.prep { color: var(--prep); border-color: rgba(224, 169, 58, .45); }
.tag.danger { color: var(--danger); border-color: rgba(239, 122, 69, .5); }
.tag.extreme { color: #ff8a80; border-color: rgba(226, 69, 63, .6); background: rgba(226, 69, 63, .1); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 0; }
.pager a { max-width: 48%; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; background: rgba(255, 255, 255, .02); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td small { color: var(--muted); }
@media (max-width: 640px) {
  /* Phones: table rows become small cards instead of scrolling sideways. */
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: flex; gap: 12px; justify-content: space-between; padding: 3px 0; border: 0; text-align: right; }
  table.stack td > span { min-width: 0; overflow-wrap: anywhere; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; flex: none; }
  table.stack td:first-child { font-weight: 600; color: var(--text); justify-content: flex-start; text-align: left; }
  table.stack td:first-child::before { content: none; }
  table.stack td.num { white-space: normal; }
}

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); background: rgba(13, 9, 10, .85); padding: 34px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; }
.foot .foot-h { font: 600 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; padding: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.foot .legal { margin-top: 26px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---- motion: a gentle arrival; the switch (html.calm) turns it off ---- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero > *, .reveal { animation: rise .6s cubic-bezier(.2, .7, .1, 1) both; }
.hero > :nth-child(2) { animation-delay: .06s; } .hero > :nth-child(3) { animation-delay: .12s; } .hero > :nth-child(4) { animation-delay: .18s; }
.calm .hero > *, .calm .reveal { animation: none; }
.calm .btn, .calm a.card { transition: none; }
.calm .btn.main:hover, .calm a.card:hover { transform: none; }

@media (max-width: 760px) {
  .top { position: static; }
  .top nav { order: 3; flex-basis: 100%; gap: 2px 14px; font-size: 13.5px; }
  .lede { font-size: 17px; }
  .trip { padding: 14px 14px; }
}

/* "Updated" under each page's heading, and a chapter's "On this page" list. */
.hero .updated { margin: 14px 0 0; }
.toc { margin: 22px 0; }
.toc .foot-h { font: 600 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.toc ol { columns: 2 260px; column-gap: 28px; margin: 0; padding-left: 22px; }
.toc li { break-inside: avoid; margin: 3px 0; }
