:root {
    --cnc-navy: #2B3A4A;
    --cnc-accent: #F2E8B0;
    --cnc-bg: #f9f6f0;
    --cnc-section-blue: #B5C4CE;
    --cnc-flow: #7CA9BF;
    --cnc-flow-light: #D6E9F2;
    --cnc-surrendered: #8B7AB3;
    --cnc-surrendered-light: #E6DFF5;
    --cnc-organic: #7AAF84;
    --cnc-organic-light: #D5EDD9;
    --cnc-birthday: #C4895A;
    --cnc-birthday-light: #F5DEC8;
    --cnc-nowness: #B36E6E;
    --cnc-nowness-light: #F2D6D6;
    --cnc-white: #ffffff;
    --cnc-text: #2B3A4A;
    --cnc-muted: rgba(43, 58, 74, 0.65);
    --cnc-border: rgba(255, 255, 255, 0.18);
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    /* Clamp BOTH html and body to the viewport width so no rogue
       descendant (decorative rings, hero mosaics, etc.) can produce a
       sideways rubber-band scroll on iOS Safari or push the layout off-
       center on Chrome mobile. */
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--cnc-text);
    background: var(--cnc-bg);
    overflow-x: hidden;
    position: relative; /* contain absolutely-positioned descendants */
}

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

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

a {
    color: inherit;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav--home {
    background: transparent;
    box-shadow: none;
}

.site-nav--home.is-scrolled,
.site-nav--solid {
    background: var(--cnc-navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-nav__brand-mark {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: invert(1) brightness(2);
}

.site-nav__brand-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav__link {
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: #ffffff;
}

.site-nav__link.is-active {
    color: #ffffff;
}

.site-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--cnc-accent);
}

.site-nav__account-button {
    background: var(--cnc-accent);
    color: var(--cnc-navy);
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}

.site-nav__account-button:hover,
.site-nav__account-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    opacity: 1;
}

.site-nav__account-button.is-active {
    box-shadow: 0 0 0 2px rgba(242, 232, 176, 0.4), 0 4px 18px rgba(0, 0, 0, 0.18);
}

.site-nav__logout-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-left: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.site-nav__logout-link:hover,
.site-nav__logout-link:focus-visible {
    color: #ffffff;
    opacity: 0.75;
    text-decoration: none;
}

.site-nav-spacer {
    height: 72px;
}

.site-footer {
    background: var(--cnc-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 40px 32px;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.site-footer__brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer__description {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
    margin: 0;
}

.site-footer__member-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--cnc-accent);
}

.site-footer__heading {
    font-size: 11px;
    font-weight: 700;
    color: var(--cnc-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.site-footer__link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__link,
.site-footer__legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible,
.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible {
    color: #ffffff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}

.site-footer__legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .site-nav {
        padding: 0 24px;
    }

    .site-nav__inner {
        gap: 18px;
    }

    .site-nav__links {
        gap: 22px;
    }

    .site-nav__brand-text {
        font-size: 22px;
    }

    .site-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 860px) {
    .site-nav {
        padding: 0 18px;
    }

    .site-nav__inner {
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: 14px 0;
        row-gap: 14px;
    }

    .site-nav__brand {
        width: 100%;
        justify-content: center;
    }

    .site-nav__links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .site-nav__account-button {
        order: 2;
    }

    .site-nav-spacer {
        height: 128px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 32px;
    }

    .site-footer__brand-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-nav__brand-text {
        font-size: 20px;
    }

    .site-nav__links {
        gap: 14px 18px;
    }

    .site-nav__link {
        font-size: 14px;
    }

    .site-nav__account-button {
        padding: 10px 18px;
        font-size: 13px;
    }

    .site-nav-spacer {
        height: 152px;
    }

    .site-footer {
        padding: 44px 18px 28px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__legal-links {
        gap: 14px;
    }
}

/* ============================================================
   Site-wide native <select> normalization (2026-05-08)
   The browser-drawn dropdown arrow sits crammed against the
   right edge. Hide it and draw a custom chevron with breathing
   room (14px from the edge instead of ~4px).
   ============================================================ */

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* !important on these because some page-specific stylesheets use the
       shorthand `background: ...` and tight padding that would otherwise
       clobber the chevron. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%232B3A4A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5l4.5 4.5 4.5-4.5'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 12px 8px !important;
    padding-right: 46px !important; /* room for arrow + comfortable breathing space before option text */
}

/* Multi-selects and explicit-size selects don't get the chevron. */
select[multiple],
select[size]:not([size="1"]) {
    background-image: none;
    padding-right: 12px;
}

/* Legacy IE/Edge: hide their native arrow. */
select::-ms-expand {
    display: none;
}
