:root {
    --shell-ivory: #F7F4EF;
    --shell-white: #FFFFFF;
    --shell-charcoal: #171717;
    --shell-text: #2B2722;
    --shell-muted: #6E665C;
    --shell-border: rgba(23, 23, 23, 0.10);
    --shell-gold: #B78C4A;
    --shell-header-height: 92px;
    --shell-container-width: min(1400px, calc(100% - 80px));
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    transition: opacity 300ms ease-in-out;
}

body.shell-leaving {
    opacity: 0;
}

body.shell-ready {
    opacity: 1;
}

body.shell-menu-open {
    overflow: hidden;
}

.site-header.shell-header .container,
.site-footer.shell-footer .container {
    width: var(--shell-container-width);
    margin-inline: auto;
}

header.site-header,
footer.site-footer {
    visibility: hidden;
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}

body.shell-ready header.site-header,
body.shell-ready footer.site-footer {
    visibility: visible;
    opacity: 1;
}

.site-header.shell-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--shell-header-height);
    z-index: 9999;
    display: flex;
    align-items: center;
    background: rgba(247, 244, 239, 0.82);
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    box-shadow: none;
}

.site-header.shell-header.is-scrolled {
    background: rgba(247, 244, 239, 0.90);
    border-bottom-color: rgba(23, 23, 23, 0.10);
    backdrop-filter: blur(28px) saturate(145%);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.shell-nav-container {
    width: var(--shell-container-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.shell-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    text-decoration: none;
    transition: opacity 300ms ease;
}

.shell-brand:hover {
    opacity: 0.8;
}

.shell-brand-name {
    color: var(--shell-gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1;
}

.shell-nav {
    display: flex;
    align-items: center;
    gap: 52px;
    margin-inline: auto;
}

.shell-nav a {
    color: rgba(23, 23, 23, 0.88);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 250ms ease, opacity 250ms ease;
}

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

.shell-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 32px;
    border: 1px solid rgba(23, 23, 23, 0.16);
    background: rgba(255, 255, 255, 0.48);
    color: rgba(23, 23, 23, 0.92);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}

.shell-cta:hover {
    background: var(--shell-gold);
    border-color: var(--shell-gold);
    color: var(--shell-white);
}

.shell-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(23, 23, 23, 0.16);
    background: rgba(255, 255, 255, 0.60);
    color: var(--shell-charcoal);
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

.shell-drawer {
    position: fixed;
    inset: 0;
    z-index: 10020;
    pointer-events: none;
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}

.shell-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
}

.shell-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, 0.28);
}

.shell-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 380px);
    height: 100%;
    padding: 24px;
    background: rgba(247, 244, 239, 0.98);
    border-left: 1px solid rgba(23, 23, 23, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 300ms ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shell-drawer.is-open .shell-drawer-panel {
    transform: translateX(0);
}

.shell-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.10);
}

.shell-drawer-head h3 {
    margin: 0;
    color: var(--shell-charcoal);
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 400;
}

.shell-drawer-close {
    border: 0;
    background: transparent;
    color: var(--shell-charcoal);
    font-size: 28px;
    line-height: 1;
}

.shell-drawer-nav {
    display: grid;
    gap: 10px;
}

.shell-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 0 0 2px;
    color: var(--shell-charcoal);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}

.shell-drawer-nav a[aria-current="page"] {
    color: var(--shell-gold);
}

.shell-drawer-footer {
    margin-top: auto;
}

.site-footer.shell-footer {
    margin-top: auto;
    background: #171717;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 72px 0 40px;
}

.site-footer.shell-footer a {
    color: inherit;
    text-decoration: none;
}

.shell-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 56px;
}

.shell-footer-brand h3 {
    margin: 0 0 12px;
    color: var(--shell-white);
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: 0.16em;
}

.shell-footer h4 {
    margin: 0 0 14px;
    color: var(--shell-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.shell-footer p,
.shell-footer li {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.9;
}

.shell-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.shell-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.40);
    font-size: 12px;
}

.shell-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.shell-footer-bottom-links a:hover {
    color: var(--shell-white);
}

@media (max-width: 1100px) {
    .shell-nav,
    .shell-cta {
        display: none;
    }

    .shell-mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .shell-nav-container {
        width: calc(100% - 40px);
    }

    .shell-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shell-brand {
        min-width: 0;
    }

    .shell-brand-name {
        font-size: 28px;
        letter-spacing: 0.18em;
    }

    .shell-footer-grid {
        grid-template-columns: 1fr;
    }

    .shell-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Final polish: stronger shared navigation glass without changing its layout. */
.site-header.shell-header {
    background: rgba(247, 244, 239, 0.78);
    border-bottom-color: rgba(183, 140, 74, 0.18);
    box-shadow:
        0 18px 54px rgba(23, 23, 23, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(34px) saturate(160%);
    -webkit-backdrop-filter: blur(34px) saturate(160%);
    isolation: isolate;
}

.site-header.shell-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(183, 140, 74, 0.05), rgba(255, 255, 255, 0.18));
}

.shell-nav-container {
    position: relative;
    z-index: 1;
}

.site-header.shell-header.is-scrolled {
    background: rgba(247, 244, 239, 0.90);
    border-bottom-color: rgba(183, 140, 74, 0.24);
    box-shadow:
        0 20px 62px rgba(23, 23, 23, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(38px) saturate(170%);
    -webkit-backdrop-filter: blur(38px) saturate(170%);
}

.shell-cta,
.shell-mobile-toggle {
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
