:root {
    --color-bg: #f6efe4;
    --color-bg-deep: #efe1cf;
    --color-surface: rgba(255, 251, 246, 0.84);
    --color-surface-strong: rgba(255, 253, 249, 0.96);
    --color-surface-dark: rgba(13, 28, 29, 0.7);
    --color-ink: #183234;
    --color-ink-soft: #315254;
    --color-muted: #677978;
    --color-line: rgba(24, 50, 52, 0.12);
    --color-line-strong: rgba(24, 50, 52, 0.18);
    --color-accent: #e57b3c;
    --color-accent-strong: #ca5c25;
    --color-accent-soft: #ffe0c6;
    --color-teal: #0f6a69;
    --color-teal-deep: #0c4f54;
    --color-gold: #f0c889;
    --color-danger: #9c4022;
    --font-body: "Manrope", sans-serif;
    --font-display: "Playfair Display", serif;
    --shadow-soft: 0 24px 60px rgba(24, 37, 36, 0.08);
    --shadow-card: 0 28px 80px rgba(24, 37, 36, 0.12);
    --shadow-strong: 0 30px 90px rgba(10, 19, 19, 0.24);
    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --radius-pill: 999px;
    --section-space: clamp(4rem, 8vw, 7rem);
    --max-width: 1320px;
    --shell-gutter: clamp(1rem, 2.5vw, 2rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(240, 200, 137, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 106, 105, 0.12), transparent 24%),
        linear-gradient(180deg, #f9f3ea 0%, var(--color-bg) 34%, #fffaf3 100%);
}

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

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

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

button {
    cursor: pointer;
}

main,
section,
header,
footer {
    position: relative;
}

.hero-backdrop,
.site-header,
.page-shell,
.site-footer,
.protected-shell {
    width: min(calc(100% - var(--shell-gutter) * 2), var(--max-width));
    margin: 0 auto;
}

.hero-backdrop {
    position: relative;
    overflow: visible;
    min-height: 108px;
    z-index: 12;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(7, 33, 36, 0.94), rgba(16, 63, 67, 0.88));
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(229, 123, 60, 0.22), transparent 32%),
        radial-gradient(circle at 80% 18%, rgba(240, 200, 137, 0.24), transparent 22%);
    pointer-events: none;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.35rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    color: #fff5e7;
}

.brand-logo-image {
    width: auto;
    height: clamp(2.9rem, 4.8vw, 4.35rem);
    max-width: min(40vw, 18rem);
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(6, 16, 17, 0.16));
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    flex: 0 0 3rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(240, 200, 137, 0.28), rgba(255, 255, 255, 0.12)),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 248, 239, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.brand-wordmark {
    display: grid;
    gap: 0.1rem;
}

.brand-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 0.95;
}

.brand-subtitle {
    color: rgba(255, 244, 232, 0.68);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    flex-wrap: wrap;
    min-width: 0;
    color: rgba(255, 245, 231, 0.86);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav-compact {
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.site-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 248, 239, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.site-nav-toggle svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.site-nav-drawer {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-nav a {
    position: relative;
    line-height: 1;
    transition: color 180ms ease, opacity 180ms ease;
}

.header-search-button,
.header-account-button {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 248, 239, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.header-search-button svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.header-search-button::after {
    display: none;
}

.header-search-button:hover,
.header-search-button:focus-visible,
.header-account-button:hover,
.header-account-button:focus-visible,
.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(10, 19, 19, 0.18);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 248, 239, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ef;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.header-cta-button:hover,
.header-cta-button:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(10, 19, 19, 0.18);
}

.auth-menu-shell {
    position: relative;
    flex: 0 0 auto;
}

.auth-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 54px;
    padding: 0.5rem 0.7rem 0.5rem 0.5rem;
    border: 1px solid rgba(255, 248, 239, 0.16);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    color: #fff7ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, background-color 180ms ease;
}

.auth-menu-trigger:hover,
.auth-menu-trigger:focus-visible,
.auth-menu-shell.is-open .auth-menu-trigger {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.auth-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(229, 123, 60, 0.92), rgba(240, 200, 137, 0.92));
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-account-button .auth-avatar {
    width: 100%;
    height: 100%;
    flex-basis: auto;
    background: linear-gradient(135deg, rgba(229, 123, 60, 0.98), rgba(240, 200, 137, 0.94));
}

.auth-user-stack {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    text-align: left;
}

.auth-user-stack .auth-user-label {
    color: #fff9f2;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.auth-user-subtitle {
    color: rgba(255, 248, 239, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 220px;
    display: grid;
    gap: 0.18rem;
    padding: 0.55rem;
    border-radius: 24px;
    background: rgba(255, 251, 246, 0.98);
    border: 1px solid rgba(24, 50, 52, 0.08);
    box-shadow: 0 30px 70px rgba(10, 19, 19, 0.18);
    color: var(--color-ink);
    z-index: 15;
}

.auth-menu-dropdown a,
.auth-menu-dropdown button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0.8rem 0.95rem;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--color-ink);
    font-weight: 700;
    text-align: left;
}

.auth-menu-dropdown a:hover,
.auth-menu-dropdown a:focus-visible,
.auth-menu-dropdown button:hover,
.auth-menu-dropdown button:focus-visible {
    background: rgba(15, 106, 105, 0.08);
}

.page-shell {
    padding-bottom: 4rem;
}

section {
    margin-top: var(--section-space);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 3rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
}

.section-heading {
    margin-bottom: 1.8rem;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.hero-copy h1,
.cta-card h2,
.detail-hero h1,
.auth-modal h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.section-heading h2,
.cta-card h2 {
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
}

.section-intro,
.section-caption,
.site-footer p {
    color: var(--color-muted);
    line-height: 1.8;
}

.section-caption {
    max-width: 30rem;
    font-size: 0.95rem;
}

.section-state {
    min-height: 1.5rem;
    color: var(--color-muted);
    font-weight: 700;
}

.section-state.is-error {
    color: var(--color-danger);
}

.surface-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.primary-button,
.ghost-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.92rem 1.45rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.primary-button {
    color: #0c1f21;
    background: linear-gradient(135deg, var(--color-accent), #ff9a5e);
    box-shadow: 0 20px 48px rgba(202, 92, 37, 0.28);
}

.ghost-button {
    color: #fff9f2;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.secondary-button {
    color: var(--color-ink);
    background: rgba(255, 251, 247, 0.96);
    border-color: rgba(24, 50, 52, 0.1);
    box-shadow: 0 18px 40px rgba(24, 37, 36, 0.08);
}

.primary-button:hover,
.ghost-button:hover,
.secondary-button:hover,
.primary-button:focus-visible,
.ghost-button:focus-visible,
.secondary-button:focus-visible {
    transform: translateY(-2px);
}

.primary-button:hover,
.primary-button:focus-visible {
    box-shadow: 0 24px 54px rgba(202, 92, 37, 0.36);
}

.ghost-button:hover,
.ghost-button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.secondary-button:hover,
.secondary-button:focus-visible {
    box-shadow: 0 22px 46px rgba(24, 37, 36, 0.12);
}

.profile-surface-icon-button {
    min-height: 44px;
    padding: 0.82rem 1rem;
    border: 1px solid rgba(24, 50, 52, 0.12);
    border-radius: var(--radius-pill);
    background: rgba(255, 252, 247, 0.74);
    color: var(--color-ink);
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.profile-surface-icon-button:hover,
.profile-surface-icon-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 16px 32px rgba(24, 37, 36, 0.12);
}

.pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 106, 105, 0.08);
    color: var(--color-teal-deep);
    font-size: 0.82rem;
    font-weight: 800;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.8rem;
    margin: 3rem auto 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 252, 247, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
}

.brand-footer {
    color: var(--color-ink);
    display: inline-flex;
    margin-bottom: 0.5rem;
}

.brand-footer .brand-logo-image {
    filter: none;
}

.brand-footer .brand-mark {
    background:
        linear-gradient(135deg, rgba(12, 79, 84, 0.94), rgba(229, 123, 60, 0.86));
    color: #fff8f0;
    border-color: rgba(12, 79, 84, 0.08);
}

.brand-footer .brand-subtitle {
    color: rgba(24, 50, 52, 0.58);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
    justify-content: flex-end;
    font-weight: 700;
}

.footer-links a {
    color: var(--color-muted);
}

.footer-links a:hover {
    color: var(--color-ink);
}

.is-hidden {
    display: none !important;
}

.float-gentle {
    animation: floatGentle 6s ease-in-out infinite;
}

.glow-pulse {
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes floatGentle {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 20px 48px rgba(202, 92, 37, 0.18);
    }

    50% {
        box-shadow: 0 26px 56px rgba(15, 106, 105, 0.18);
    }
}

@media (max-width: 980px) {
    .section-heading-row,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .hero-backdrop,
    .site-header,
    .page-shell,
    .site-footer,
    .protected-shell {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .site-header {
        align-items: center;
        justify-content: space-between;
    }

    .site-nav {
        margin-left: auto;
        justify-content: flex-end;
        gap: 0.85rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .section-heading h2,
    .cta-card h2 {
        font-size: clamp(2rem, 8vw, 3.3rem);
    }
}

@media (max-width: 640px) {
    .hero-backdrop,
    .site-header,
    .page-shell,
    .site-footer,
    .protected-shell {
        width: min(calc(100% - 1rem), var(--max-width));
    }

    .site-nav {
        font-size: 0.92rem;
        gap: 0.6rem;
    }

    .site-nav-compact {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

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

    .site-nav-drawer {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        padding: 0.7rem;
        border-radius: 24px;
        background: rgba(12, 30, 31, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 24px 60px rgba(10, 19, 19, 0.28);
        z-index: 35;
    }

    .site-nav.is-open .site-nav-drawer {
        display: flex;
    }

    .site-nav-drawer a {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0.8rem 0.95rem;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.06);
    }

    .site-nav-drawer a::after {
        display: none;
    }

    .auth-menu-trigger {
        width: auto;
        justify-content: center;
        padding-right: 0.5rem;
    }

    .auth-user-stack {
        display: none;
    }

    .auth-menu-dropdown {
        left: auto;
        right: 0;
        width: min(94vw, 320px);
    }

    .primary-button,
    .ghost-button,
    .secondary-button {
        width: 100%;
    }

    .site-footer {
        padding: 1.4rem;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .brand-mark {
        width: 2.75rem;
        height: 2.75rem;
        flex-basis: 2.75rem;
    }

    .brand-logo-image {
        height: 2.45rem;
        max-width: min(52vw, 11rem);
    }

    .brand-title {
        font-size: 1.45rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
    }
}
