:root {
    color-scheme: light;
    --navy: #101e30;
    --ink: #142338;
    --muted: #4c5d70;
    --gold: #efc575;
    --line: #e1e5e9;
    --paper: #faf8f3;
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #a36214; outline-offset: 4px; }

.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }

.skip-link {
    position: absolute;
    top: .5rem;
    left: 1rem;
    z-index: 2;
    transform: translateY(-175%);
    padding: .65rem 1rem;
    background: var(--gold);
    color: var(--navy);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .actions, .footer-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.header-inner {
    justify-content: space-between;
    gap: .75rem 1.5rem;
    min-height: 4.75rem;
    padding-block: .7rem;
}
.brand {
    display: block;
    width: min(100%, 13.2rem);
    height: 1.8rem;
}
.brand img { clip-path: inset(0 0 29% 0); transform: translateY(-.25rem); }
nav { gap: .5rem clamp(.85rem, 2.5vw, 1.8rem); }
nav > a { font-size: .95rem; font-weight: 650; text-decoration: none; }
nav > a:not(.button):hover { text-decoration: underline; }
nav > a[aria-current] { box-shadow: inset 0 0 0 1px #bd873b; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .6rem 1rem;
    border: 1px solid transparent;
    border-radius: .4rem;
    font-weight: 700;
    text-decoration: none;
}
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #f7d690; }
.button-outline { border-color: #8796a9; color: #fff; }
.button-outline:hover { background: #293b52; }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: #263e5a; }
.button-light { border-color: #9aa5af; background: white; }
.button-light:hover { background: #eff3f7; }

.hero {
    background: radial-gradient(ellipse at 88% 25%, #2b435f, transparent 62%), var(--navy);
    color: #fff;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2.7rem, 6vw, 4.75rem);
}
.hero-compact .hero-grid { padding-block: clamp(2.4rem, 4.5vw, 3.25rem); }
.hero-logo { justify-self: center; width: min(100%, 29rem); }
.hero-compact .hero-logo { width: min(100%, 15rem); }

h1, h2, h3 {
    line-height: 1.14;
    letter-spacing: -.035em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4.5rem); }
.hero-compact h1 { font-size: clamp(2.35rem, 4.7vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.45rem; }
.hero p {
    max-width: 34rem;
    margin-top: .9rem;
    color: #d3deeb;
    font-size: clamp(1.03rem, 2vw, 1.18rem);
}
.actions { gap: .7rem; margin-top: 1.35rem; }

.section { padding-block: clamp(2.2rem, 5vw, 4.15rem); }
.section-heading { margin-bottom: 1.5rem; }
.section-heading p, .contact-panel p { margin-top: .55rem; color: var(--muted); }

.downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.download-card {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: clamp(1.15rem, 3vw, 1.55rem);
    border: 1px solid var(--line);
    border-radius: .6rem;
}
.download-card:first-child { border-top: .22rem solid #bb8335; background: var(--paper); }
.download-card p { color: var(--muted); }
.download-card .file-meta { font-size: .92rem; font-weight: 650; }
.card-action { margin-top: auto; padding-top: .35rem; }

.setup {
    margin-bottom: clamp(2.2rem, 5vw, 4.15rem);
    padding-top: 1.7rem;
    border-top: 1px solid var(--line);
}
.setup h2, .contact-panel h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.setup ol { padding-left: 1.5rem; }
.setup li + li { margin-top: .35rem; }
.setup p, .setup ol { color: var(--muted); }

.contact-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid #e6dbca;
    border-radius: .6rem;
    background: var(--paper);
}
.contact-links { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; font-weight: 650; }
.section-heading p a, .setup p a, .contact-links a { color: #194975; text-underline-offset: .18em; }

.site-footer { background: var(--navy); color: #dce5ee; }
.footer-inner { justify-content: space-between; gap: .5rem 1rem; padding-block: 1.2rem; }
.site-footer a { text-underline-offset: .18em; }

.manual-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: clamp(1.2rem, 4vw, 2rem);
    border: 1px solid #e6dbca;
    border-left: .22rem solid #bb8335;
    border-radius: .6rem;
    background: var(--paper);
}
.manual-download h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.manual-download .file-meta { margin-top: .5rem; color: var(--muted); font-weight: 650; }
.manual-download .button { flex: none; }
.update-note { max-width: 53rem; margin-top: .9rem; color: var(--muted); }
.update-note a, .archive-link a { color: #194975; text-underline-offset: .18em; }

.release-list {
    max-width: 53rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
}
.release-list details + details { border-top: 1px solid var(--line); }
.release-list summary { padding: .8rem 1.15rem; cursor: pointer; font-weight: 700; }
.release-list summary::marker { color: #865719; }
.release-list summary:hover, .release-list details[open] summary { background: var(--paper); }
.release-list details:first-child summary { border-radius: .55rem .55rem 0 0; }
.release-list details:last-child:not([open]) summary { border-radius: 0 0 .55rem .55rem; }
.release-entry { padding: .75rem 1.15rem 1rem; }
.release-entry h3 { font-size: 1rem; letter-spacing: 0; }
.release-entry ul { margin: .35rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.release-entry ul + h3 { margin-top: .85rem; }
.archive-link { margin-top: 1rem; }


.install-steps { margin-top: 1rem; }
.install-steps summary { width: fit-content; cursor: pointer; font-weight: 650; }
.install-steps summary + p { margin-top: .5rem; }

@media (min-width: 57rem) {
    .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 53rem) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-logo { width: min(100%, 19rem); }
    .hero-compact .hero-logo { display: none; }
}

@media (max-width: 38rem) {
    .downloads { grid-template-columns: 1fr; }
    .wrap { width: calc(100% - 2rem); }
    .contact-panel, .manual-download { flex-direction: column; align-items: flex-start; }
    nav .button { min-height: 2.35rem; padding: .35rem .65rem; }
}

