:root {
    --site-gold: #f2b654;
    --site-gold-strong: #e5a93e;
    --site-cream: #fff4d8;
    --site-ink: #171717;
    --site-muted: #667085;
    --site-line: #e8e2d6;
    --site-card: #ffffff;
    --site-focus: #8a5a00;
    --site-soft-shadow: 0 10px 28px rgba(17, 17, 17, .09);
}

.site-header,
.site-header * {
    box-sizing: border-box;
}

.site-header {
    position: relative;
    z-index: 100;
    width: min(1200px, calc(100% - 40px));
    min-height: 64px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--site-ink);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(232, 226, 214, .96);
    border-radius: 999px;
    box-shadow: var(--site-soft-shadow);
    backdrop-filter: blur(16px);
}

.site-brand,
.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-ink);
    text-decoration: none;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.site-brand img,
.site-footer-brand img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: var(--site-gold);
    box-shadow: 0 7px 16px rgba(17, 17, 17, .14);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
}

.site-nav a {
    min-height: 42px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(17, 17, 17, .10);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--site-ink);
    text-decoration: none;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.site-nav a:hover {
    transform: translateY(-1px);
    background: #fff7e7;
    border-color: rgba(229, 169, 62, .55);
}

.site-nav a[aria-current="page"] {
    background: var(--site-ink);
    border-color: var(--site-ink);
    color: #fff;
}

.site-nav .site-login-link {
    background: linear-gradient(135deg, var(--site-gold), var(--site-gold-strong));
    border-color: transparent;
    color: var(--site-ink);
}

.site-account-link span {
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--site-cream);
    color: #6b4500;
    font-size: 10px;
    font-weight: 950;
}

.site-nav a[aria-current="page"] span {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.site-menu-toggle {
    min-width: 48px;
    min-height: 44px;
    padding: 7px 10px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(17, 17, 17, .12);
    border-radius: 13px;
    background: #fff;
    color: var(--site-ink);
    font: 850 13px/1 Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.site-menu-icon {
    width: 19px;
    display: grid;
    gap: 4px;
}

.site-menu-icon i {
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.site-header.is-open .site-menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .site-menu-icon i:nth-child(2) { opacity: 0; }
.site-header.is-open .site-menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-header a:focus-visible,
.site-menu-toggle:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgba(242, 182, 84, .55);
    outline-offset: 3px;
}

.site-footer {
    box-sizing: border-box;
    margin-top: 56px;
    padding: 30px 20px;
    border-top: 1px solid var(--site-line);
    background: rgba(255, 255, 255, .94);
    color: var(--site-muted);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.site-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.site-footer-brand { font-size: 18px; }
.site-footer-brand img { width: 36px; height: 36px; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.5; }
.site-footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.site-footer nav a { color: #5f440e; font-size: 13px; font-weight: 850; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .site-header {
        width: min(100% - 28px, 760px);
        min-height: 62px;
        flex-wrap: wrap;
        border-radius: 22px;
    }

    .site-menu-toggle { display: inline-flex; }

    .site-nav {
        width: 100%;
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-top: 2px;
        border-top: 1px solid var(--site-line);
    }

    .site-header.is-open .site-nav { display: grid; }
    .site-nav a { width: 100%; min-height: 46px; white-space: normal; text-align: center; }
    .site-login-link, .site-account-link { grid-column: 1 / -1; }

    .site-footer-inner { grid-template-columns: 1fr; text-align: center; }
    .site-footer-brand, .site-footer nav { justify-content: center; }
}

@media (max-width: 520px) {
    .site-header { width: calc(100% - 24px); padding: 9px 10px; gap: 10px; }
    .site-brand { font-size: 20px; }
    .site-brand img { width: 38px; height: 38px; }
    .site-menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .site-nav { grid-template-columns: 1fr; }
    .site-login-link, .site-account-link { grid-column: auto; }
    .site-footer { padding: 26px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header *, .site-footer * { scroll-behavior: auto !important; transition: none !important; }
}
