:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101720;
    color: #e5e9ee;
    line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #9cc9ee; text-underline-offset: 0.2em; }
a:hover { color: #fff; }
a:focus-visible { outline: 2px solid #f0bd81; outline-offset: 5px; }
h1, h2, p { margin: 0 0 1rem; }
h1 { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 650; margin: 0 0 1rem; line-height: 1.1; letter-spacing: -0.04em; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }

.cover {
    min-height: 680px;
    min-height: min(860px, 100svh);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    background: none;
}
.cover::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 -18rem;
    background:
        linear-gradient(0deg, #101720 0%, rgba(16, 23, 32, 0.18) 45%, transparent 86%),
        linear-gradient(90deg, rgba(5, 14, 25, 0.9), rgba(5, 14, 25, 0.58) 46%, rgba(5, 14, 25, 0.12)),
        url("assets/splash.png") left top / cover no-repeat;
}
.masthead {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}
nav { display: flex; gap: 1.5rem; font-size: 0.9rem; }
nav a { text-decoration: none; color: #c1cbd7; }
main, footer { max-width: 960px; margin: auto; padding: 0 2rem; }
section { padding: 2.75rem 0; border-bottom: 1px solid #303a46; }
.introduction {
    width: 100%;
    max-width: 960px;
    margin: auto;
    padding: 5rem 2rem;
    text-shadow: 1px 1px 0 #000;
}
.introduction h1 { text-shadow: 1px 1px 0 #000; }
.introduction p { max-width: 620px; }
.introduction .lead { max-width: none; }
.simulator-name { white-space: nowrap; }
.lead { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.45; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-heading > span, .small { font-size: 0.85rem; color: #a9b5c4; }
#downloads { position: relative; margin-top: -8rem; padding-top: 10rem; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.download {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid #475d72;
    border-radius: 4px;
    background: #1c2b3b;
    text-decoration: none;
}
.download:hover { background: #263b50; border-color: #9cc9ee; }
.download strong { font-size: 1.15rem; font-weight: 600; color: #edf3fa; }
.download > span { font-size: 0.8rem; margin-top: 0.5rem; }
.download > span > span { float: right; margin-left: 0.5rem; }
dl { margin-bottom: 0; }
dl > div { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; padding: 1.25rem 0; }
dl > div + div { border-top: 1px solid #25303c; }
dt { font-weight: 600; }
dd { margin: 0; color: #bdc7d3; }
.history p { max-width: 740px; color: #bdc7d3; }
footer { padding-top: 2rem; padding-bottom: 2rem; font-size: 0.8rem; color: #a9b5c4; }
footer p:last-child { max-width: 680px; }

@media (max-width: 650px) {
    .masthead, .introduction, main, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
    nav { gap: 1rem; font-size: 0.8rem; }
    .downloads { grid-template-columns: 1fr; }
    #downloads { margin-top: -5rem; padding-top: 7rem; }
    .section-heading { flex-direction: column; gap: 0; margin-bottom: 1rem; }
    .section-heading h2 { margin-bottom: 0.25rem; }
    dl > div { grid-template-columns: 1fr; gap: 0.4rem; }
    section { padding: 2rem 0; }
}
