/*
|--------------------------------------------------------------------------
| Design tokens
|--------------------------------------------------------------------------
*/

:root {
    --navy-950: #061426;
    --navy-900: #0d1b2a;
    --navy-800: #14213d;
    --navy-700: #1b263b;

    --gold-500: #c9a227;
    --gold-400: #dfbd50;

    --white: #ffffff;

    --gray-50: #f6f7f8;
    --gray-100: #edf0f3;
    --gray-200: #dde2e7;
    --gray-300: #c8d0d8;
    --gray-500: #6b7480;
    --gray-700: #333c47;

    --content-width: 1180px;

    --shadow-card:
        0 18px 45px rgba(7, 20, 38, 0.12);

    --shadow-header:
        0 8px 30px rgba(0, 0, 0, 0.16);
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background: var(--white);
    color: var(--navy-900);
    font-family:
        "Instrument Sans",
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

main {
    display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: inherit;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    line-height: 1.14;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/*
|--------------------------------------------------------------------------
| Global layout
|--------------------------------------------------------------------------
*/

.container {
    width: min(
        var(--content-width),
        calc(100% - 48px)
    );
    margin-inline: auto;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    appearance: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible {
    outline: 3px solid rgba(223, 189, 80, 0.4);
    outline-offset: 3px;
}

.button-primary {
    border-color: var(--gold-500);
    background: var(--gold-500);
    color: var(--navy-950);
    box-shadow:
        0 10px 25px rgba(201, 162, 39, 0.2);
}

.button-primary:hover {
    border-color: var(--gold-400);
    background: var(--gold-400);
}

.button-outline {
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
    color: var(--white);
}

.button-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.button-small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom:
        1px solid rgba(255, 255, 255, 0.09);
    background: rgba(6, 20, 38, 0.97);
    box-shadow: var(--shadow-header);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--white);
}

.brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border:
        1px solid rgba(201, 162, 39, 0.85);
    border-radius: 3px;
    color: var(--gold-400);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand-text {
    display: block;
}

.brand-text strong {
    display: block;
    color: var(--white);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.brand-text span {
    display: block;
    margin-top: 4px;
    color: var(--gray-300);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.25em;
    line-height: 1;
    text-transform: uppercase;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-content nav {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 180ms ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-actions form {
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Mobile navigation button
|--------------------------------------------------------------------------
*/

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    flex: 0 0 auto;
    padding: 10px;
    border:
        1px solid rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    background: transparent;
}

.menu-button span {
    width: 100%;
    height: 2px;
    display: block;
    margin: 4px 0;
    background: var(--white);
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    padding: 34px 0;
    border-top:
        1px solid rgba(255, 255, 255, 0.08);
    background: #030b15;
    color: rgba(255, 255, 255, 0.62);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: 13px;
}

.footer-brand {
    color: var(--white);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 18px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Tablet navigation
|--------------------------------------------------------------------------
*/

@media (max-width: 1020px) {
    .menu-button {
        display: block;
    }

    .nav-content {
        position: fixed;
        top: 78px;
        right: 0;
        bottom: 0;
        z-index: 1100;
        width: min(380px, 100%);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
        padding: 34px;
        overflow-y: auto;
        background: var(--navy-950);
        box-shadow:
            -18px 0 50px rgba(0, 0, 0, 0.3);
        transform: translateX(105%);
        transition: transform 220ms ease;
    }

    .nav-content.is-open {
        transform: translateX(0);
    }

    .nav-links {
        display: block;
    }

    .nav-links li {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        padding: 17px 0;
        font-size: 13px;
    }

    .nav-links a::after {
        display: none;
    }

    .auth-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auth-actions .button,
    .auth-actions form,
    .auth-actions form button {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 650px) {
    .container {
        width: min(
            100% - 28px,
            var(--content-width)
        );
    }

    .navbar {
        min-height: 70px;
    }

    .nav-content {
        top: 70px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .brand-text span {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}