:root { color-scheme: light; font-family: Georgia, 'Times New Roman', serif; color: #111; background: #f8f7f3; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.55; }
main { max-width: 760px; margin: auto; padding: 24px 16px 40px; }
.masthead { border-top: 9px solid #111; padding: 18px 0 10px; }
.eyebrow, label, legend, button, .hint, .stats-grid, .vitals, footer { font-family: Arial, sans-serif; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 8vw, 4.1rem); line-height: .98; letter-spacing: -.04em; margin: 24px 0; font-weight: 900; }
h2 { background: #111; color: white; padding: 12px 14px; font-size: 1.35rem; line-height: 1.2; margin: 0 0 22px; }
h2 span { font: .75rem Arial, sans-serif; margin-right: 14px; vertical-align: middle; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
section { margin-top: 32px; }
label, legend { display: block; font-size: .9rem; font-weight: 700; margin: 15px 0 7px; }
input, select, button { font: 1rem Arial, sans-serif; border: 1px solid #111; border-radius: 0; min-height: 48px; padding: 12px; background: #fff; color: #111; max-width: 100%; }
input, select { width: 100%; min-width: 0; }
button { cursor: pointer; font-weight: 700; white-space: nowrap; }
button:hover { background: #111; color: #fff; }
:focus-visible { outline: 3px solid #666; outline-offset: 3px; }
.roll-row { display: flex; gap: 8px; }
.roll-row input, .roll-row select { flex: 1; width: 0; }
.hint { font-size: .82rem; line-height: 1.5; color: #505050; margin: 8px 0 20px; }
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.job-card { border: 1px solid; margin: 0; padding: 14px 10px; cursor: pointer; }
.job-card:has(:checked) { background: #111; color: white; }
.job-card input, .spell-option input { width: 18px; min-height: 18px; height: 18px; padding: 0; margin: 0 6px 0 0; vertical-align: middle; accent-color: #111; }
.job-card small { display: block; margin-top: 6px; font-weight: 400; font-size: .75rem; }
.abilities { border-left: 3px solid; padding-left: 16px; margin: 24px 0; }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.spell-option { border-bottom: 1px solid #ccc; padding: 12px 0; margin: 0; cursor: pointer; }
.spell-option small { display: block; font-weight: 400; line-height: 1.5; margin: 6px 0 0 27px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { border: 1px solid #aaa; text-align: center; padding: 10px 4px; }
.stat span { display: block; font-size: .7rem; letter-spacing: .08em; }
.stat strong { display: block; font-size: 1.6rem; }
.vitals { display: flex; gap: 30px; border-bottom: 2px solid; margin-top: 20px; }
.vitals p { display: flex; flex-direction: column; margin: 0 0 12px; }
.vitals strong { font-size: 2.6rem; line-height: 1.2; }
.vitals span { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
ul { padding-left: 22px; }
li { margin: 8px 0; }
#sheet { border: 1px solid; padding: 20px; overflow-wrap: anywhere; }
#sheet h3 { font-size: 2rem; margin: 0; line-height: 1.2; }
#sheet h4 { margin-bottom: 6px; border-bottom: 1px solid #aaa; }
.motto { font-style: italic; }
#share { width: 100%; background: #111; color: #fff; text-transform: uppercase; letter-spacing: .15em; padding: 18px; border: 3px double #fff; outline: 1px solid #111; }
#share:hover { background: #333; }
#share-status { font: .85rem Arial, sans-serif; }
footer { margin-top: 32px; font-size: .75rem; color: #555; border-top: 1px solid #aaa; padding-top: 16px; }
a { color: inherit; }
[hidden] { display: none !important; }
@media (min-width: 600px) { main { padding: 40px 32px; } .job-grid { grid-template-columns: repeat(4, 1fr); } .stats-grid { grid-template-columns: repeat(6, 1fr); } }
