/* Bleakhold - site styles. Palette taken from the Blackwing hero art: soot, char, gilt, ember, blood. */
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Marcellus SC"; src: url("/fonts/marcellus-sc.woff2") format("woff2"); font-display: swap; }

:root {
  --soot: #140d0a;
  --soot-2: #1b120e;
  --char: #231811;
  --char-2: #2d1f16;
  --line: #4b3521;
  --gilt: #d9a84e;
  --gilt-hi: #f2d38c;
  --bronze: #8a5d27;
  --ember: #ef7a2c;
  --blood: #8e1f12;
  --blood-hi: #b8321f;
  --parch: #ecdfc6;
  --ash: #b3a088;
  --good: #8fcf6a;
  --bad: #e2694f;
  --display: "Marcellus", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --display-sc: "Marcellus SC", "Marcellus", "Palatino Linotype", serif;
  --text: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #0070dd; --q4: #a335ee; --q5: #ff8000; --q6: #e6cc80; --q7: #e6cc80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--soot) url("/img/grain.svg"); color: var(--parch);
  font: 400 1.125rem/1.62 var(--text); font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--gilt-hi); text-decoration-color: rgba(217,168,78,.45); text-underline-offset: .18em; }
a:hover { color: #fff1c7; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blood); color: #fff3dc; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--char); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; color: var(--gilt-hi); margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
small, .small { font-size: .9rem; }
.muted { color: var(--ash); }
code, kbd, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
code { background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: .05em .4em; border-radius: 3px; color: #f6e6c2; }
hr { border: 0; height: 24px; background: url("/img/flourish-l.svg") right center/120px 18px no-repeat, url("/img/flourish-r.svg") left center/120px 18px no-repeat; background-position: calc(50% - 60px) center, calc(50% + 60px) center; margin: 2.2rem 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(17,11,8,.94); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(217,168,78,.18), 0 10px 30px rgba(0,0,0,.45); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gilt-hi); font-family: var(--display-sc); font-size: 1.35rem; letter-spacing: .06em; }
.brand img { width: 30px; }
.nav { display: none; margin-left: auto; gap: 4px; align-items: center; }
.nav a { font-family: var(--display); font-size: 1.02rem; color: var(--parch); text-decoration: none; padding: 8px 10px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--gilt-hi); }
.nav a[aria-current="page"] { color: var(--gilt-hi); border-bottom-color: var(--ember); }
.head-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.realm-pill { display: none; font-size: .88rem; color: var(--ash); align-items: center; gap: 6px; white-space: nowrap; }
.dot { display: inline-block; vertical-align: middle; width: 9px; height: 9px; border-radius: 50%; background: #6c5a46; box-shadow: 0 0 0 2px rgba(0,0,0,.4); flex: none; }
.dot.up { background: #6fd04a; box-shadow: 0 0 8px rgba(111,208,74,.7); }
.dot.down { background: #d0503a; }
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; font-family: var(--display); color: var(--gilt-hi); border: 1px solid var(--line); padding: 7px 12px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--char); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--char); border: 1px solid var(--line); min-width: 230px; padding: 8px; display: grid; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.mnav nav a { padding: 10px 12px; color: var(--parch); text-decoration: none; font-family: var(--display); }
.mnav nav a[aria-current="page"] { color: var(--gilt-hi); }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .mnav { display: none; }
  .head-actions { margin-left: 8px; }
  .realm-pill { display: inline-flex; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --b1: #a8301d; --b2: #6a140b;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 10px 26px;
  font-family: var(--display); font-size: 1.08rem; letter-spacing: .03em; color: #fff0cf; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--b1), var(--b2)); border: 1px solid #e0b25b;
  box-shadow: inset 0 1px 0 rgba(255,220,160,.45), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 3px rgba(20,10,6,.85), 0 0 0 4px rgba(217,168,78,.35), 0 8px 18px rgba(0,0,0,.45);
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
.btn:hover { --b1: #c23b24; --b2: #7d190e; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { filter: grayscale(.7) brightness(.8); cursor: not-allowed; }
.btn-ghost { background: rgba(20,12,8,.55); border-color: rgba(217,168,78,.7); box-shadow: 0 0 0 3px rgba(20,10,6,.6); }
.btn-ghost:hover { background: rgba(45,28,18,.8); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .95rem; box-shadow: inset 0 1px 0 rgba(255,220,160,.35), 0 0 0 2px rgba(20,10,6,.85); }
.linkish { background: none; border: 0; padding: 0; color: var(--gilt-hi); font: inherit; text-decoration: underline; text-decoration-color: rgba(217,168,78,.45); cursor: pointer; }

/* ---------------------------------------------------------------- ornate panel */
.panel {
  position: relative; background: linear-gradient(180deg, rgba(45,31,22,.96), rgba(30,20,14,.97)), var(--char);
  border: 18px solid transparent; border-image: url("/img/frame.svg") 36 / 36px / 0 stretch;
  padding: clamp(14px, 2.4vw, 26px); box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.panel > :last-child { margin-bottom: 0; }
.panel-plain { background: rgba(26,17,12,.88); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), inset 0 0 0 4px rgba(217,168,78,.08); padding: 18px 20px; }

.title-orn { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; margin-bottom: 1.4rem; }
.title-orn::before, .title-orn::after { content: ""; flex: 0 1 140px; height: 18px; background: url("/img/flourish-l.svg") center/100% 100% no-repeat; }
.title-orn::after { background-image: url("/img/flourish-r.svg"); }
.lede { font-size: 1.22rem; color: #e5d4b4; text-align: center; margin: 0 auto 2.4rem; }

/* ---------------------------------------------------------------- bands */
.band { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.band-dark { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%), var(--soot-2) url("/img/grain.svg"); border-top: 1px solid #2f2116; border-bottom: 1px solid #0b0705; }
.band-art { background: var(--soot) center/cover no-repeat; isolation: isolate; }
.band-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--soot) 0%, rgba(20,13,10,.82) 18%, rgba(20,13,10,.82) 82%, var(--soot) 100%); }
.band-art.art-wing { background-image: url("/img/hero-1280.webp"); background-position: 85% 20%; }
.band-art.art-floor { background-image: url("/img/hero-1280.webp"); background-position: 30% 92%; }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: start; overflow: hidden; background: #1a0f0a; isolation: isolate; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse at 50% 18%, rgba(16,9,6,.78), rgba(16,9,6,0) 58%),
  linear-gradient(180deg, rgba(16,9,6,.55) 0%, rgba(16,9,6,0) 38%, rgba(16,9,6,0) 62%, var(--soot) 100%); }
.hero canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { text-align: center; padding: clamp(28px, 6vh, 64px) var(--gutter) 0; display: grid; justify-items: center; }
.hero h1 { margin: 0; width: min(92vw, 760px); }
.hero h1 img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.32rem); color: #f3e5c8; max-width: 40ch; margin: .4rem auto 1.6rem; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 36px); display: flex; justify-content: center; padding: 0 var(--gutter); }
.plaque { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; background: rgba(18,11,8,.86); border: 1px solid rgba(217,168,78,.55); box-shadow: 0 0 0 4px rgba(10,6,4,.7), 0 0 0 5px rgba(217,168,78,.2); padding: 10px 22px; font-size: 1rem; }
.plaque b { font-family: var(--display); font-weight: 400; color: var(--gilt-hi); font-size: 1.08rem; }
.plaque .sep { width: 1px; height: 18px; background: var(--line); }
@media (prefers-reduced-motion: reduce) { .hero canvas.embers { display: none; } }

/* load moment: wordmark settles in once */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 img { animation: forge 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-sub, .hero-cta { animation: rise .9s .9s both; }
  @keyframes forge { from { opacity: 0; transform: translateY(-10px) scale(1.04); filter: brightness(2.2) drop-shadow(0 0 30px rgba(255,140,40,.8)); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------------------------------------------------------------- page hero (inner pages) */
.page-hero { position: relative; padding: clamp(46px, 8vw, 86px) 0 clamp(30px, 5vw, 50px); background: #1a0f0a url("/img/hero-1280.webp") center 28%/cover no-repeat; isolation: isolate; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,9,6,.82), rgba(16,9,6,.7) 50%, var(--soot)); }
.page-hero h1 { margin-bottom: .25em; text-shadow: 0 3px 14px rgba(0,0,0,.8); }
.page-hero p { margin: 0 auto; color: #e9d9b9; }
.page-body { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.steps > *, .news-grid > *, .records > *, .road > *, .sheet > *, .acct > * { min-width: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; }
.step .num { font-family: var(--display); font-size: 3.2rem; line-height: 1; }
.step h3 { margin: .2em 0 .35em; }
.step p { color: #e1d0b0; }
.step .btn { justify-self: start; margin-top: 6px; }
.copyline { display: flex; align-items: stretch; border: 1px solid var(--line); background: rgba(0,0,0,.4); margin-top: 6px; }
.copyline code { border: 0; background: none; flex: 1; min-width: 0; padding: 10px 12px; font-size: .86rem; white-space: normal; overflow-wrap: anywhere; }
.copyline button { border: 0; border-left: 1px solid var(--line); background: var(--char-2); color: var(--gilt-hi); font-family: var(--display); padding: 0 14px; cursor: pointer; }
.copyline button:hover { background: #3a281b; }

/* ---------------------------------------------------------------- feature ledger */
.ledger { display: grid; gap: 0 56px; }
@media (min-width: 900px) { .ledger { grid-template-columns: 1fr 1fr; } }
.entry { padding: 22px 0 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 92px 1fr; gap: 0 18px; }
.entry .fig { font-family: var(--display); font-size: 2.3rem; line-height: 1.05; text-align: right; font-variant-numeric: lining-nums; }
.entry .fig small { -webkit-text-fill-color: var(--ash); display: block; font-family: var(--text); font-size: .78rem; color: var(--ash); line-height: 1.2; margin-top: 4px; }
.entry h3 { font-size: 1.3rem; margin-bottom: .3em; }
.entry p { margin: 0; color: #dfcdab; }
.more { text-align: center; margin: 2.2rem auto 0; max-width: none; }

/* ---------------------------------------------------------------- news + changes */
.news-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .news-grid { grid-template-columns: 1.35fr 1fr; } }
.post { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; margin-bottom: 0; }
.post time, .date { color: var(--ember); font-size: .92rem; font-variant-numeric: lining-nums; }
.post h3 { margin: .1em 0 .3em; font-size: 1.35rem; }
.post h3 a { color: var(--gilt-hi); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.changes { list-style: none; margin: 0; padding: 0; }
.changes li { padding: 10px 0; border-bottom: 1px dashed #3d2b1c; display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.changes li:last-child { border-bottom: 0; }
.changes .ver { font-family: var(--display); color: var(--gilt); font-variant-numeric: lining-nums; }

/* article pages */
.article { max-width: 760px; margin: 0 auto; }
.article + .article { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.article h2 { font-size: 1.9rem; }
.article ul, .article ol { padding-left: 1.3em; max-width: var(--measure); }
.article li { margin: .25em 0; }

/* ---------------------------------------------------------------- roadmap (ribbon timeline) */
.roadmap { position: relative; }
.ribbon { height: 52px; background: url("/img/ribbon.svg") center/100% 100% no-repeat; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; font-family: var(--display-sc); color: #2b1505; font-size: 1.3rem; letter-spacing: .08em; margin: 0 0 22px; text-shadow: 0 1px 0 rgba(255,236,190,.6); }
.road { display: grid; gap: 22px; }
@media (min-width: 900px) { .road { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) { .ribbon { display: none; } }
.road .col { background: rgba(14,9,6,.72); border: 1px solid var(--line); box-shadow: inset 0 0 0 4px rgba(217,168,78,.06); padding: 6px 20px 10px; }
.road .col h3 { text-align: center; margin-top: 12px; font-family: var(--display-sc); letter-spacing: .06em; font-size: 1.25rem; }
.road .col.now h3 { color: var(--ember); }
.road ul { list-style: none; padding: 0; margin: 0; }
.road li { padding: 12px 0; border-top: 1px solid var(--line); }
.road li:first-of-type { border-top: 0; }
@media (min-width: 900px) { .road .col h3 { display: none; } }
.road li b { font-family: var(--display); font-weight: 400; color: var(--gilt-hi); font-size: 1.12rem; display: block; }
.road li span { color: #d8c6a4; font-size: 1rem; }
.road .done li b::after { content: " \2713"; color: var(--good); font-family: var(--text); }

/* ---------------------------------------------------------------- tables / boards */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.board { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; font-size: 1.02rem; }
.board th { font-family: var(--display); font-weight: 400; color: var(--ash); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bronze); white-space: nowrap; font-size: .98rem; }
.board td { padding: 9px 12px; border-bottom: 1px solid #36261a; white-space: nowrap; }
.board tbody tr:hover td { background: rgba(217,168,78,.05); }
.board td.rank { color: var(--ash); width: 2.5em; }
.board tr:nth-child(1) td.rank { color: #f2c94c; }
.board tr:nth-child(2) td.rank { color: #d6d6d6; }
.board tr:nth-child(3) td.rank { color: #d08a4a; }
.board td.num, .board th.num { text-align: right; }
[data-journey-wrap] { margin-top: 26px; }
.board .wrapcell { white-space: normal; min-width: 180px; color: var(--ash); font-size: .95rem; }
.board a { text-decoration: none; }
.board a:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--ash); padding: 30px 12px; }
.records { display: grid; gap: 22px; }
@media (min-width: 900px) { .records { grid-template-columns: repeat(3, 1fr); } }
.records h3 { font-size: 1.2rem; text-align: center; }
.mini { list-style: none; margin: 0; padding: 0; font-variant-numeric: lining-nums tabular-nums; }
.mini li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #36261a; }
.mini li:last-child { border-bottom: 0; }
.mini .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .val { color: var(--gilt-hi); }
.mini a { text-decoration: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tab { font-family: var(--display); font-size: 1.02rem; background: rgba(0,0,0,.3); color: var(--parch); border: 1px solid var(--line); padding: 8px 16px; cursor: pointer; }
.tab:hover { border-color: var(--bronze); color: var(--gilt-hi); }
.tab[aria-selected="true"] { color: #fff0cf; border-color: var(--gilt); background: linear-gradient(180deg, #5a1b10, #36100a); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.tier0 { color: #cfcfcf; } .tier1 { color: #6fd04a; } .tier2 { color: #4a9bff; } .tier3 { color: #c26bff; }

/* class colours */
.c1 { color: #c79c6e; } .c2 { color: #f58cba; } .c3 { color: #abd473; } .c4 { color: #fff569; } .c5 { color: #ffffff; }
.c6 { color: #e0435f; } .c7 { color: #3d9be9; } .c8 { color: #69ccf0; } .c9 { color: #9482c9; } .c10 { color: #00ff96; } .c11 { color: #ff7d0a; }
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: #3d9be9; } .q4 { color: #b56cf5; } .q5 { color: var(--q5); } .q6, .q7 { color: var(--q6); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; max-width: 460px; margin: 0 auto; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--display); color: var(--gilt-hi); font-size: 1.05rem; }
.field .hint { font-size: .92rem; color: var(--ash); margin: 0; }
.input, .field input, select.input {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1.05rem; color: #fff3db;
  background: #120b08; border: 1px solid #5a3f24; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); border-radius: 0;
}
.input:focus, .field input:focus { outline: none; border-color: var(--gilt); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 3px rgba(239,122,44,.25); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blood-hi); }
.msg { min-height: 1.5em; font-size: 1rem; margin: 0; }
.msg.err { color: #ff9c86; }
.msg.ok { color: var(--good); }
.cf-box { min-height: 70px; }
.form-foot { text-align: center; color: var(--ash); font-size: 1rem; }
.strength { height: 6px; background: #2b1d14; border: 1px solid #3a2a1c; }
.strength i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }

/* ---------------------------------------------------------------- armory */
.search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 26px; }
.search .input { flex: 1; }
.results { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; }
.results li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #36261a; text-decoration: none; }
.results li a:hover { background: rgba(217,168,78,.06); }
.sheet { display: grid; gap: 26px; }
@media (min-width: 900px) { .sheet { grid-template-columns: 320px 1fr; } }
.char-name { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .1em; }
.char-meta { color: #e2d2b2; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-variant-numeric: lining-nums; }
.facts dt { color: var(--ash); }
.facts dd { margin: 0; color: var(--parch); }
.gear { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 700px) { .gear { grid-template-columns: 1fr 1fr; gap: 4px 20px; } }
.gear li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #2f2116; }
.gear img, .gear .noicon { width: 40px; height: 40px; border: 1px solid #000; outline: 1px solid #5a4430; background: #0d0806; }
.gear .slot { display: block; font-size: .85rem; color: var(--ash); line-height: 1.2; }
.gear .iname { line-height: 1.25; }
.gear .ilvl { color: var(--ash); font-size: .85rem; font-variant-numeric: lining-nums; }

/* ---------------------------------------------------------------- downloads + install */
.dl-list { display: grid; gap: 0; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #36261a; }
.dl:last-child { border-bottom: 0; }
.dl h3 { margin: 0; font-size: 1.15rem; font-family: var(--display); }
.dl .where { font-size: .95rem; color: var(--ash); }
.dl .where code { font-size: .85rem; }
.dl .hash { grid-column: 1 / -1; font-size: .78rem; color: #7f6d58; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.tag { display: inline-block; font-size: .78rem; padding: 1px 8px; margin-left: 8px; vertical-align: middle; border: 1px solid; font-family: var(--text); }
.tag.req { color: #ffb38a; border-color: #8e3f22; }
.tag.opt { color: #a9c7e8; border-color: #3d5873; }
.guide { counter-reset: g; list-style: none; padding: 0; margin: 0; }
.guide > li { position: relative; padding: 0 0 28px 64px; }
.guide > li::before { counter-increment: g; content: counter(g); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--display); font-size: 1.4rem; color: #fff0cf; background: linear-gradient(180deg, #8e2516, #4d0f08); border: 1px solid var(--gilt); box-shadow: 0 0 0 3px rgba(20,10,6,.9); font-variant-numeric: lining-nums; }
.guide > li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: linear-gradient(var(--bronze), transparent); }
.guide > li:last-child::after { display: none; }
.guide h3 { margin-bottom: .3em; }
.guide ol, .guide ul { padding-left: 1.2em; }
.note { border-left: 3px solid var(--ember); background: rgba(239,122,44,.07); padding: 10px 14px; margin: 12px 0; max-width: var(--measure); }
.tree { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; background: #0e0806; border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; line-height: 1.5; color: #e9d8b6; }

/* ---------------------------------------------------------------- store */
.store-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; }
.purse { display: flex; gap: 18px; font-variant-numeric: lining-nums; }
.purse b { font-family: var(--display); font-weight: 400; color: var(--gilt-hi); font-size: 1.2rem; }
.vacant { text-align: center; padding: clamp(24px, 6vw, 56px) 12px; }
.vacant img { width: 120px; margin: 0 auto 14px; opacity: .85; }
.vacant h3 { margin-bottom: .3em; }
.vacant p { margin: 0 auto; color: #dccaa8; }

/* ---------------------------------------------------------------- account */
.acct { display: grid; gap: 24px; }
@media (min-width: 960px) { .acct { grid-template-columns: 1fr 1fr; } }
.chars { list-style: none; margin: 0; padding: 0; }
.chars li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #36261a; font-variant-numeric: lining-nums; }
.chars li:last-child { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); background: #0f0907; padding: 46px 0 34px; color: var(--ash); font-size: 1rem; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand img { width: 96px; margin-bottom: 10px; }
.site-foot h4 { color: var(--gilt); font-size: 1.05rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #d9c7a5; text-decoration: none; }
.site-foot a:hover { color: var(--gilt-hi); text-decoration: underline; }
.legal { max-width: none; margin-top: 30px; padding-top: 18px; border-top: 1px solid #241812; font-size: .88rem; color: #7d6b56; }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .entry { grid-template-columns: 1fr; }
  .entry .fig { text-align: left; margin-bottom: 4px; }
  .entry .fig small { display: inline; margin-left: 8px; }
  .plaque .sep { display: none; }
  .guide > li { padding-left: 54px; }
  .changes li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- polish pass */
.gilt-text, .step .num, .entry .fig, .plaque b, .page-hero h1, .title-orn {
  background: linear-gradient(180deg, #fff2c9 0%, #f3cf78 34%, #b9772a 52%, #e3ad52 72%, #fde7a8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.title-orn::before, .title-orn::after { -webkit-text-fill-color: initial; }
.title-orn, .page-hero h1 { filter: drop-shadow(0 2px 0 rgba(0,0,0,.65)) drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
.page-hero h1 { text-shadow: none; font-size: clamp(2.4rem, 6vw, 4rem); }
.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(36px, 6vw, 60px); }
.page-hero h1::after { content: ""; display: block; width: min(300px, 70vw); height: 18px; margin: 14px auto 0;
  background: url("/img/flourish-l.svg") left center/50% 100% no-repeat, url("/img/flourish-r.svg") right center/50% 100% no-repeat; }

/* seam between bands: gold rule with a medallion */
.band-dark::before, .band-art::after, .site-foot::before {
  content: ""; position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: min(560px, 92%); height: 44px;
  background: url("/img/seam.svg") center/100% 100% no-repeat; z-index: 3; pointer-events: none;
}
.band-art::before { z-index: -1; }
.site-foot { position: relative; }

/* drop caps on long-form writing */
.article > h2:first-of-type + p::first-letter {
  float: left; font-family: var(--display); font-size: 3.6em; line-height: .82; margin: .08em .1em 0 0; padding-top: .04em;
  background: linear-gradient(180deg, #fff2c9, #e0a64a 55%, #f6d488); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* class icons and podium medals */
.cicon { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; border: 1px solid #000; outline: 1px solid #6b4f2f; }
.cicon.lg { width: 44px; height: 44px; vertical-align: middle; margin-right: 14px; outline-width: 2px; outline-color: var(--gilt); }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--display); font-size: .95rem;
  color: #2a1606; font-variant-numeric: lining-nums; box-shadow: 0 0 0 1px #1d0e04, 0 2px 5px rgba(0,0,0,.6);
  background: radial-gradient(circle at 35% 30%, #fff3c8, #e1b04e 45%, #8d5a18); }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ced6 45%, #6d737c); }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffe0c2, #c98443 45%, #6e3b14); }
.board tr td.rank { color: var(--ash); }
.char-head { display: flex; align-items: center; }

/* panels: small flourish under panel titles */
.panel > h2:first-child::after, .panel > h3:first-child::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 8px;
  background: url("/img/flourish-l.svg") left center/100% 100% no-repeat; opacity: .8; }
.records .panel > h3:first-child::after { margin-inline: auto; width: 140px;
  background: url("/img/flourish-l.svg") left center/50% 100% no-repeat, url("/img/flourish-r.svg") right center/50% 100% no-repeat; }

/* scrollbar + header hairline */
html { scrollbar-color: #6b4a22 #120b08; }
::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-track { background: #120b08; }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #4f3418, #8a5d27, #4f3418); border: 3px solid #120b08; border-radius: 8px; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,168,78,.75) 20%, rgba(239,122,44,.9) 50%, rgba(217,168,78,.75) 80%, transparent); }

@media (max-width: 560px) {
  .title-orn { gap: 10px; font-size: 1.75rem; }
  .title-orn::before, .title-orn::after { flex-basis: 44px; }
  .step .num { font-size: 2.6rem; }
  .band-dark::before, .band-art::after, .site-foot::before { width: 86%; }
}
