:root {
  color-scheme: light;
  --ink: #201b13; --paper: #f3e5c8; --red: #9e301f; --line: #30281b;
  --mono: ui-monospace, "Courier New", monospace;
  --display: Impact, "Arial Black", "Franklin Gothic Heavy", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0; background: radial-gradient(#73532418 .55px, transparent .7px) 0 0 / 5px 5px, var(--paper);
  color: var(--ink); font: 1rem/1.55 Georgia, serif;
}
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1,h2,h3,p { margin: 0 0 .7em; }
h1,h2,h3,.wordmark { line-height: .94; font-family: var(--display); font-weight: 900; }
h2 { font-size: clamp(2.35rem, 5.1vw, 4.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.6rem; line-height: 1.1; }
.wrap { width: min(94%, 78rem); margin-inline: auto; }
.skip { position: absolute; left: .5rem; top: .5rem; padding: .65rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { border-bottom: 3px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .9rem; }
.wordmark { text-decoration: none; font-size: clamp(1.7rem, 4.6vw, 3.2rem); }
.wordmark span, h1 em { color: var(--red); }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.35rem; padding-block: .45rem; border-top: 1px solid; }
nav a,.mono,.kicker,.button,.downloads,.levels,footer { font-family: var(--mono); }
nav a { font-size: .875rem; font-weight: bold; text-decoration: none; padding-block: .2rem; }
nav a:hover { text-decoration: underline; }
.button {
  display: inline-block; background: var(--ink); border: 2px solid var(--ink); color: var(--paper);
  font-size: .875rem; font-weight: bold; text-decoration: none; padding: .75rem 1rem;
}
.button:hover,.button:focus-visible { background: var(--paper); color: var(--ink); }
.button.small { padding: .4rem .8rem; }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr); align-items: center; gap: clamp(1.2rem, 3vw, 3rem); padding-block: 2.4rem; }
.hero h1 { font-size: clamp(3rem, 6.25vw, 6.75rem); letter-spacing: -.045em; margin-bottom: .25em; }
.hero h1 em { font-style: normal; }
.hero p:not(.kicker) { font-size: 1.13rem; max-width: 37ch; }
.kicker { font-size: .875rem; font-weight: bold; text-transform: uppercase; letter-spacing: .035em; }
.cover img { width: 100%; border: 3px solid var(--ink); }
.wallet { background: var(--ink); color: var(--paper); padding: clamp(1rem, 3.6vw, 2.7rem); }
.wallet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .6rem 2rem; }
.wallet-head h2 { margin-bottom: .35em; }
.wallet-head strong { display: block; font: 900 clamp(2rem, 5vw, 3.4rem)/1 var(--display); overflow-wrap: anywhere; }
.wallet progress { width: 100%; height: .7rem; accent-color: #e38e57; }
.wallet progress:not([hidden]) { display: block; }
.wallet > label,.wallet > span { font: bold .875rem var(--mono); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11.25rem,100%),1fr)); gap: 0 1.1rem; margin-bottom: 0; }
.metrics div { border-top: 1px solid #c7ae83; padding-block: .6rem; }
.metrics dt { font: .875rem/1.3 var(--mono); }
.metrics dd { margin: .28rem 0 0; overflow-wrap: anywhere; font-size: 1.15rem; font-weight: bold; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); padding-block: 2rem; gap: .6rem 2rem; border-bottom: 2px solid var(--line); }
.desk > :last-child { min-width: 0; }
.table-region { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th,td { text-align: left; border-bottom: 1px solid; padding: .5em; }
.downloads { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .875rem; font-weight: bold; }
.portrait { max-width: min(100%, 250px); border: 2px solid var(--ink); }
.levels { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.levels li { display: grid; grid-template-columns: 4.4rem 1fr auto; padding: .45rem .5rem; gap: .3rem .55rem; border-bottom: 1px solid; }
.levels li[aria-current="true"] { background: var(--ink); color: var(--paper); }
#constitution ol { margin: 0; padding-inline-start: 1.55rem; }
#constitution li { padding-bottom: .3rem; }
.support { background: #dfc79b; border: 2px solid var(--line); padding: 1.4rem; margin-top: 2rem; }
.support p:last-child { margin: 0; }
footer { margin-top: 1.5rem; background: var(--ink); color: var(--paper); }
footer a:hover { color: #f5aa79; }
@media (max-width: 760px) { .hero,.desk { grid-template-columns: 1fr; } .hero { padding-block: 1.5rem; } }
@media (max-width: 390px) { .levels li { grid-template-columns: 1fr auto; } .levels li > span:first-child { grid-column: 1 / -1; } }
