* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #101b2c;
    --panel: #192a40;
    --ink: #f8f1e6;
    --muted: #c0cbd8;
    --gold: #ebc58e;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.8 system-ui,"Microsoft YaHei",sans-serif;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.wrap {
    width: min(1180px,92%);
    margin: auto;
}

header {
    border-bottom: 1px solid #34465a;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero {
    position: relative;
    min-height: 440px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #111e31;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#101b2cf5 0%,#101b2cce 37%,#101b2c00 85%);
}

.hero .wrap {
    position: relative;
    z-index: 1;
    padding: 55px 0;
}

.hero-copy {
    max-width: 550px;
}

h1,h2,h3 {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(27px,4vw,48px);
    margin: 12px 0;
}

h2 {
    font-size: 27px;
}

h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

p {
    margin: 0 0 16px;
}

.muted,small {
    color: var(--muted);
}

.eyebrow {
    color: var(--gold);
    letter-spacing: .15em;
    font-weight: 700;
}

section {
    padding: 32px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr));
    gap: 16px;
}

.tile {
    background: var(--panel);
    border: 1px solid #35475e;
    border-radius: 12px;
    padding: 22px;
    min-width: 0;
}

.tile p {
    color: var(--muted);
}

.tile .num {
    font-size: 32px;
    color: var(--gold);
    font-weight: 700;
}

.button,button {
    display: inline-block;
    border: 1px solid var(--gold);
    border-radius: 7px;
    padding: 9px 16px;
    background: var(--gold);
    color: #172338;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.secondary {
    background: transparent;
    color: var(--gold);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    background: var(--panel);
    border-radius: 10px;
    margin-bottom: 20px;
}

label {
    display: grid;
    gap: 4px;
    flex: 1 1 170px;
    min-width: 0;
}

input,select {
    width: 100%;
    padding: 10px;
    border: 1px solid #657488;
    border-radius: 6px;
    font: inherit;
    background: #101b2c;
    color: var(--ink);
}

article {
    max-width: 850px;
    padding: 24px 0 44px;
}

.crumb {
    padding-top: 20px;
    font-size: 14px;
}

.facts {
    border-left: 3px solid var(--gold);
    padding: 15px 20px;
    background: var(--panel);
}

footer {
    border-top: 1px solid #34465a;
    padding: 25px 0;
    color: var(--muted);
}

[hidden] {
    display: none!important;
}

@media(max-width:640px) {
    .bar {
        gap: 10px;
    }

    nav {
        gap: 10px;
        font-size: 14px;
    }

    .hero {
        min-height: 0;
        display: block;
    }

    .hero img {
        position: relative;
        height: auto;
        display: block;
    }

    .hero:after {
        display: none;
    }

    .hero .wrap {
        padding: 22px 0;
    }

    section {
        padding: 20px 0;
    }

    .tile {
        padding: 17px;
    }

}

/* Accessible active navigation and readable hero scope. */
nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.scope-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}
.hero-copy .button {
    margin: 0 8px 8px 0;
}
img {
    max-width: 100%;
}

.list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
#home-search {
    align-self: end;
}
