:root {
    --topbar-height: 72px;

    --color-navy-950: #0e1d30;
    --color-navy-900: #13243a;
    --color-navy-800: #193752;
    --color-blue-700: #1d6388;
    --color-blue-600: #247da1;

    --color-text: #182b3e;
    --color-text-muted: #607284;
    --color-border: #dce5ed;
    --color-surface: #ffffff;
    --color-background: #f3f6f9;

    --shadow-small: 0 8px 24px rgb(18 36 59 / 7%);
    --shadow-medium: 0 16px 40px rgb(18 36 59 / 10%);

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;

    --font-sans:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    color-scheme: light;
    background: var(--color-background);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    background: var(--color-background);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgb(38 137 181 / 45%);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.65rem 0.85rem;
    color: #fff;
    text-decoration: none;
    background: #10253c;
    border-radius: 7px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.app-topbar {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--topbar-height);
    padding: 0 2rem;
    color: #eef6fc;
    background: var(--color-navy-950);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.brand-mark {
    display: inline-grid;
    gap: 0.05rem;
    color: #fff;
    line-height: 1.1;
    text-decoration: none;
}

.brand-mark span {
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: 0.025em;
}

.brand-mark small {
    color: #a9bfd2;
    font-size: 0.64rem;
    font-weight: 650;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-nav a,
.topbar-nav button {
    color: #d8e7f3;
    font-size: 0.84rem;
    font-weight: 700;
}

.topbar-nav a {
    text-decoration: none;
}

.topbar-nav a:hover {
    color: #fff;
}

.topbar-nav form {
    margin: 0;
}

.topbar-nav button {
    padding: 0.48rem 0.7rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 7px;
}

.topbar-nav button:hover {
    color: #fff;
    background: rgb(255 255 255 / 7%);
}

.site-messages {
    display: grid;
    gap: 0.5rem;
    width: min(1100px, calc(100% - 2rem));
    margin: 1rem auto 0;
}

.site-message {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-blue-600);
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-small);
}

@media (max-width: 640px) {
    :root {
        --topbar-height: 64px;
    }

    .app-topbar {
        padding: 0 1rem;
    }

    .brand-mark small {
        display: none;
    }

    .topbar-nav {
        gap: 0.55rem;
    }

    .topbar-nav a,
    .topbar-nav button {
        font-size: 0.78rem;
    }
}