:root {
  color-scheme: dark;
  --bg: #0b0b20;
  --panel: #15152c;
  --border: #595389;
  --text: #f3efff;
  --muted: #c4c0da;
  --blue: #a4edf0;
  --link: #d4c5ff;
  --button: #7958ca;
  font: 16px/1.6 system-ui, sans-serif;
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 0, #28234c 0, var(--bg) 52%, #080913 100%); }
main, .site-header, footer { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
main { min-height: 65vh; padding-top: 42px; padding-bottom: 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; min-height: 72px; padding-block: 16px; border-bottom: 1px solid #a49ad54a; }
.site-header nav, .actions, .chips, .text-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
a { color: var(--link); text-underline-offset: .25em; }
a:hover { color: #fbf8ff; }
.wordmark { color: #bfc5ff; font-weight: 800; letter-spacing: .13em; text-decoration: none; }
.site-header nav a { font-size: .95rem; }
.locale { padding-left: 14px; border-left: 1px solid var(--border); }
.skip { position: absolute; top: -100px; left: 1rem; z-index: 5; background: var(--panel); padding: .5rem; }
.skip:focus { top: .5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.04em; line-height: 1.14; overflow-wrap: anywhere; }
h2 { font-size: 1.3rem; line-height: 1.35; }
h3 { font-size: 1.1rem; }
p { color: var(--muted); }
h2 + p, h3 + p, p + p, p + form, h2 + form { margin-top: .75rem; }
.title-block { margin-bottom: 25px; }
.title-block p { max-width: 65ch; margin-top: 11px; font-size: 1.1rem; }
.panel { border: 1px solid var(--border); border-radius: 15px; background: var(--panel); padding: 21px 23px; overflow-wrap: anywhere; }
.narrow { max-width: 520px; margin-inline: auto; }
.reading { max-width: 760px; }
main > section + section, main > .card-grid, main > .actions + section, article + section { margin-top: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 15px; }
.card-grid .panel h2 a { text-decoration: none; }
.card-grid .panel h2 a:hover { text-decoration: underline; }
.card-grid .panel p { margin-top: .5rem; }
.summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.metric { color: var(--blue); font-weight: 700; }
.score { font-size: 2.2rem; line-height: 1.3; color: var(--blue); }
.stats .panel { padding: 16px; }
.stats .panel h2 { font-size: .95rem; margin-top: .4rem; }
.notice { margin-bottom: 20px; padding: 12px 15px; border: 1px solid #77dbe3; border-radius: 9px; color: #e3fcff; background: #17313b; }
.muted { color: var(--muted); margin-top: 12px; }
.chip { display: inline-block; color: var(--link); border: 1px solid #746ca8; border-radius: 100vw; padding: .32rem .76rem; }
.chips { gap: 8px; margin-block: .75rem; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid #a591e2; border-radius: 8px; color: #fff; background: var(--button); text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
button:hover, .button:hover { background: #8969dc; }
button.secondary, .button.secondary { background: #272445; }
button.secondary:hover, .button.secondary:hover { background: #3b335d; }
button.danger { background: #642b48; border-color: #b46d90; }
button.danger:hover { background: #803555; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; min-height: 44px; font: inherit; padding: .5rem .65rem; color: var(--text); border: 1px solid var(--border); border-radius: 7px; background: #0e0e23; }
form { display: grid; gap: .85rem; }
form > button { justify-self: start; }
label { display: grid; gap: .3rem; }
label.check, label.choice { display: flex; align-items: center; gap: .6rem; min-height: 40px; }
label.choice { padding: .5rem .75rem; border-radius: 7px; border: 1px solid var(--border); background: #181731; margin-bottom: .5rem; }
label.choice:has(:checked) { border-color: #b59cef; background: #262046; }
input[type=checkbox], input[type=radio] { accent-color: #bda4ff; width: 18px; height: 18px; flex: 0 0 auto; }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: .7rem; margin: 0; }
legend { color: var(--muted); padding: 0 .3rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .12rem 1rem; }
:focus-visible { outline: 3px solid #8ae9ef; outline-offset: 3px; }
.text-links { margin-top: 1rem; }
.progress-line { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
progress { width: 100%; height: 13px; margin: .65rem 0 1.2rem; accent-color: #72dce9; }
figure { margin: 1.4rem 0; }
img, video { display: block; max-width: 100%; height: auto; border-radius: 10px; }
audio { max-width: 100%; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.content h2, .content aside { margin-top: 1.35rem; }
.commentary { border-left: 4px solid #8772bf; }
.clean-list { padding-left: 1.2rem; margin: .7rem 0 0; }
.clean-list li + li { margin-top: .35rem; }
.editor { margin-top: .9rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.editor details, .editor form { margin-top: .7rem; }
.editor summary { cursor: pointer; color: var(--link); }
.editor pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
footer { padding-block: 12px 25px; color: var(--muted); font-size: .86rem; border-top: 1px solid #a49ad544; }
@media (max-width: 620px) {
  .site-header, main, footer { padding-inline: 16px; }
  main { padding-top: 27px; }
  .site-header nav { gap: 8px 14px; }
  .panel { padding: 16px; }
  .summary { align-items: flex-start; }
}
