:root {
  --ink: #0b1822;
  --panel: #142638;
  --raised: #203747;
  --trim: #789fbe;
  --gold: #d4b878;
  --text: #f7efd5;
  --muted: #b7c8cf;
  --focus: #abe4ef;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #1a3045 0%, var(--ink) 60%) fixed, var(--ink);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--focus); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-weight: bold; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold); }
main { padding-top: 24px; padding-bottom: 48px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--gold); line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.lede { color: var(--muted); font-size: 1.15rem; margin-top: 0; }
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 168px; height: 168px; border-radius: 36px; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 1px solid var(--trim); }
.panel { background: var(--panel); border: 1px solid var(--raised); border-radius: 14px; padding: 4px 22px 14px; margin-top: 24px; }
.factions { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.factions li { background: var(--raised); border-radius: 10px; padding: 12px 14px; }
.factions strong { display: block; color: var(--text); }
.factions span { color: var(--muted); font-size: .95rem; }
.meta { color: var(--muted); font-size: .95rem; }
dt { font-weight: bold; margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--muted); }
footer { border-top: 1px solid var(--raised); padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: .9rem; }
