:root {
    color-scheme: dark;
    --background: #111;
    --panel: #202020;
    --line: #333;
    --text: #f4f4f4;
    --muted: #aaa;
    --red: #ff3b3b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
p { line-height: 1.65; }
.site-shell { width: min(1120px, calc(100% - 64px)); margin: auto; }
.skip-link { position: absolute; top: 10px; left: 10px; transform: translateY(-160%); background: var(--panel); padding: 12px; z-index: 2; }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; font-size: 22px; font-weight: 800; letter-spacing: -.7px; }
.brand-dot { color: var(--red); }
.cube { width: 22px; height: 22px; border: 3px solid var(--red); margin-right: 12px; transform: rotate(-12deg); }
.site-header nav { display: flex; gap: 28px; font-size: 14px; }
.site-header nav a { color: #bcbcbc; padding: 8px 0; }
.site-header nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--red); }

.intro { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; padding: 64px 0 56px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.06; letter-spacing: -2.7px; }
h1 > span { color: var(--red); }
.intro-copy { max-width: 490px; margin: 22px 0 26px; font-size: 16px; color: #bcbcbc; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { display: inline-flex; gap: 22px; align-items: center; background: var(--red); color: #111; padding: 14px 18px; font-weight: bold; font-size: 14px; border-radius: 6px; transition: background-color .18s; }
.button:hover { background: #ff6969; }
.text-link { font-size: 14px; transition: color .18s; }
.intro-art { min-height: 220px; display: flex; flex-direction: column; gap: 46px; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
.large-cube { width: 116px; height: 116px; display: grid; place-items: center; border: 12px solid var(--red); transform: rotate(-13deg); }
.large-cube span { width: 34px; height: 34px; background: var(--red); }

.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { font-size: 19px; letter-spacing: -.3px; margin: 0; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.level-card { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.level-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.level-copy { padding: 17px 18px 18px; }
.level-copy h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.3px; }
.level-copy p { margin: 0; font-size: 12px; color: #bcbcbc; }

.demonlist-section { margin-top: 48px; padding: 38px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.demonlist-copy .eyebrow { color: var(--red); margin-bottom: 13px; }
.demonlist-copy h2 { font-size: 32px; line-height: 1.12; letter-spacing: -1px; margin: 0; }
.demonlist-copy > p:not(.eyebrow) { font-size: 14px; color: #bcbcbc; max-width: 440px; margin: 16px 0 0; }
.demonlist-copy > p.destination { color: #888; font: 12px monospace; }
.destination-links { border: 1px solid var(--line); border-radius: 8px; background: #191919; overflow: hidden; }
.destination-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; transition: background-color .18s; }
.destination-links a + a { border-top: 1px solid var(--line); }
.destination-links a:hover { background: #262626; }
.destination-links strong, .destination-links small { display: block; }
.destination-links strong { font-size: 15px; }
.destination-links small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.destination-links a > span:last-child { color: var(--red); font-size: 20px; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 12px; color: #999; }
.footer-note { margin-left: auto; font-size: 11px; color: #888; }

@media (max-width: 780px) {
    .site-shell { width: calc(100% - 40px); }
    .intro { grid-template-columns: 1fr; padding: 44px 0; }
    .intro-art { display: none; }
    h1 { letter-spacing: -1.7px; }
    .level-grid { gap: 12px; }
    .level-copy { padding: 14px; }
    .level-copy h3 { font-size: 17px; }
    .demonlist-section { gap: 32px; }
}

@media (max-width: 560px) {
    .site-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 22px 0 18px; }
    .site-header nav { gap: 24px; width: 100%; }
    .intro-copy { font-size: 15px; }
    .intro-links { gap: 18px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .level-grid, .demonlist-section { grid-template-columns: 1fr; }
    .level-grid { gap: 18px; }
    .level-copy { padding: 17px 18px; }
    .level-copy h3 { font-size: 20px; }
    .demonlist-section { margin-top: 32px; padding: 30px 0; gap: 26px; }
    .footer-note { flex-basis: 100%; margin-left: 0; }
    .site-footer { gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    a { transition: none !important; }
}
