:root {
    --surface: #f6fafe;
    --surface-low: #f0f4f8;
    --surface-lowest: #ffffff;
    --surface-high: #e4e9ed;
    --surface-ink: #171c1f;
    --surface-muted: #54647a;
    --outline-soft: rgba(116, 119, 127, 0.18);
    --primary: #002045;
    --primary-deep: #1a365d;
    --accent: #ffb77d;
    --shadow-soft: 0 12px 40px rgba(23, 28, 31, 0.06);
}
body {
    margin: 0;
    background: var(--surface);
    color: var(--surface-ink);
    font-family: "Public Sans", sans-serif;
    line-height: 1.6;
}
* {
    box-sizing: border-box;
}

a {
    color: var(--primary-deep);
}

.topbar {
    padding: 30px 24px 0;
}
.topbar-inner {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding-bottom: 18px;
}
.brand {
    justify-self: start;
    font-family: "Newsreader", serif;
    font-size: clamp(1.55rem, 1.8vw, 2.1rem);
    font-style: italic;
    color: var(--primary-deep);
    letter-spacing: 0;
    text-decoration: none;
}
.topnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}
.topnav a {
    color: var(--surface-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
}
.topnav a:hover {
    color: var(--primary-deep);
}
.topnav a[aria-current] {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 0.35em;
}
.topbar-actions {
    display: flex;
    justify-content: flex-end;
}

.topbar-actions .cta-button {
    display: block;
    font-family: inherit;
    line-height: 1.4;
}
.topbar :is(a, button):focus-visible {
    outline: 2px solid var(--primary-deep);
    outline-offset: 4px;
}

.hero-search-form button,
.cta-button {
    border: none;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    border-radius: 14px;
    padding: 16px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.site-footer {
    width: min(1320px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 0 0 42px;
    color: var(--surface-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}
.site-footer p {
    margin: 0;
}
.footer-support {
    margin-bottom: 10px;
}
.site-footer a {
    color: var(--primary-deep);
}

@media (max-width: 980px) {
    .topbar-inner {
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
    }
    .topnav {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0 18px;
        min-width: 0;
    }
    .topnav a {
        padding-block: 5px;
    }
}

@media (max-width: 700px) {
    .topbar {
        padding: 20px 12px 0;
    }
    .topbar-actions .cta-button {
        padding: 10px 15px;
    }
}
