:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --bg: #111217;
  --surface: #1a1c23;
  --edge: #393b46;
  --fg: #f5f1f1;
  --muted: #c0bdc7;
  --red: #a62b42;
  --light-red: #f3a1ad;
  --focus: #ffd880;
  background: var(--bg);
  color: var(--fg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
p { max-width: 72ch; }
p + p { margin-top: .8rem; }
a { color: var(--light-red); text-underline-offset: .25em; }
a:hover { color: #ffd8de; }
a, button, input, summary { transition: color .16s, background-color .16s, border-color .16s; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 5; background: var(--surface); padding: .65rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--edge); background: #13141a; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { color: var(--fg); font-weight: 800; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand span:not(.mark) { color: var(--light-red); }
.mark { display: inline-block; width: .82rem; height: .82rem; border: solid 2px var(--light-red); border-radius: 2px; transform: rotate(45deg); margin-right: .4rem; }
nav { display: flex; flex-wrap: wrap; gap: .3rem .95rem; font-size: .85rem; }
nav a { color: var(--muted); text-decoration: none; padding-block: .25rem; }
nav a[aria-current] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--light-red); }
.hero { padding-block: clamp(3rem, 8vw, 7.25rem); border-bottom: 1px solid var(--edge); background: radial-gradient(ellipse at 82% 18%, #391923 0%, transparent 44%), linear-gradient(140deg,#111217 36%,#1b151e 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: clamp(2rem,6vw,5.5rem); align-items: center; }
.eyebrow { color: var(--light-red); font-size: .86rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; margin-bottom: .8rem; }
h1 { font-size: clamp(2.6rem,7vw,5.9rem); letter-spacing: -.065em; }
.hero h1 span { color: #f4a7b3; }
.intro { font-size: clamp(1rem, 2vw, 1.23rem); color: var(--muted); margin-top: 1rem; }
.actions { display: flex; align-items: center; gap: .7rem 1rem; flex-wrap: wrap; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.9rem; padding: .58rem .95rem; border: 1px solid transparent; border-radius: .5rem; color: var(--fg); text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button.primary { background: var(--red); }
.button.primary:hover { background: #b83b50; color: white; }
.button.secondary { background: #22232b; border-color: #575563; }
.button.secondary:hover { background: #30303b; color: white; }
button:disabled { opacity: .65; cursor: wait; }
.muted, .hint { color: var(--muted); }
.micro, .hint { font-size: .87rem; }
.hero .micro { margin-top: 1rem; }
.inventory, .panel { padding: clamp(1.1rem, 3vw, 1.8rem); background: var(--surface); border: 1px solid var(--edge); border-radius: 1rem; }
.inventory h2 { font-size: 1.12rem; }
.stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin-block: .95rem; }
.stats div { padding: .75rem; border: 1px solid var(--edge); border-radius: .55rem; display: flex; flex-direction: column-reverse; background: #20222b; }
.stats dt { font-size: .84rem; color: var(--muted); }
.stats dd { font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.sections { padding-block: 2.6rem; }
.section { padding-block: 2.2rem; border-bottom: 1px solid var(--edge); }
.section h2, .band h2 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: .75rem; }
.section h3 { margin-bottom: .45rem; }
#about h3 { margin-top: 1rem; }
.band { padding: clamp(1rem, 3vw, 1.6rem); background: var(--surface); border: 1px solid var(--edge); border-radius: .7rem; display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: .55rem; }
.cards, .split { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.split { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; }
.cards article { border: 1px solid var(--edge); border-radius: .7rem; padding: 1.05rem; background: var(--surface); }
.cards + p, .band + p, details + p { margin-top: .9rem; }
.site-footer { border-top: 1px solid var(--edge); padding-block: 1.5rem; color: var(--muted); font-size: .9rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.update, .article { max-width: 49rem; padding-block: clamp(2rem,6vw,4rem); }
.update-header, .article h1 { margin-bottom: 1.6rem; }
.update h1, .article h1 { font-size: clamp(2.35rem,6vw,4rem); }
.panel { margin-bottom: 1rem; }
.panel h2, .article h2 { margin-bottom: 1rem; }
.article h2 { margin-top: 1.75rem; }
.drop { border: 1px dashed #6a6572; padding: .9rem; border-radius: .65rem; margin-bottom: 1.2rem; }
.drop.is-dragging { background: #3b2330; border-color: var(--light-red); }
input[type=file] { display: block; width: 100%; margin-block: .55rem; font: inherit; }
input[type=file]::file-selector-button { padding: .45rem .65rem; border: 1px solid #666472; border-radius: .35rem; background: #292b35; color: var(--fg); margin-right: .55rem; font: inherit; cursor: pointer; }
fieldset { padding: .6rem 0 0; margin: 0 0 1rem; border: 0; }
legend, label, summary { font-weight: 700; }
.choice { display: block; margin-bottom: .35rem; }
#latest-status { margin: 0 0 .6rem 1.6rem; }
details { margin-block: .9rem; border-top: 1px solid var(--edge); padding-top: .65rem; }
summary { cursor: pointer; }
details p { margin-top: .5rem; }
.privacy { padding: .65rem .8rem; border-left: 3px solid var(--light-red); background: #24252e; margin-block: .85rem; }
#activity:not(:empty), .working, #counts, .actions + .hint { margin-top: .75rem; }
progress { width: min(100%,20rem); accent-color: var(--light-red); }
#counts { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .3rem .7rem; }
#counts dd { font-weight: 800; }
li { margin-block: .35rem; }
code, #issues li, #selected { overflow-wrap: anywhere; }
.update-footer { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .shell { width: calc(100% - 1.5rem); }
  nav { column-gap: .75rem; }
  .hero .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
