:root {
    --primary: #15130f;
    --secondary: #26221c;
    --accent: #e8a33d;
    --accent-dark: #c9832a;
    --cream: #f6f0e4;
    --cream-dim: #eae1ce;
    --line: #ddd2b8;
    --clay: #b5553a;
    --moss: #5c7a5a;
    --paper: #fffdf8;
    --dark: #15130f;
    --muted: #7d7465;
    --header-bg: rgba(255, 253, 248, 0.96);
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #0f0d0a;
    color: var(--dark);
    font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader img {
    width: min(180px, 42vw);
    border-radius: 50%;
    animation: loaderPulse 1.1s ease-in-out infinite;
}

@keyframes loaderPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.92);
        opacity: 0.6;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(21, 19, 15, 0.12);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
}

.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-image {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.site-title {
    color: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.site-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    list-style: none;
}

.site-nav a {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
    color: var(--accent-dark);
}

@media (max-width: 820px) {
    .header-container {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .site-nav {
        grid-column: 1 / -1;
        display: none;
        padding-bottom: 14px;
    }

    .site-nav.active {
        display: block;
    }

    .site-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
    }

    .site-nav a {
        display: block;
        padding: 10px 0;
    }
}
