:root {
    --bg: #f6f1e9;
    --surface: rgba(255, 255, 255, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #0f766e;
    --accent: #c2410c;
    --line: rgba(15, 23, 42, 0.08);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(194, 65, 12, 0.16), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 45%, #f3efe8 100%);
}

h1,
h2,
h3,
.font-display {
    font-family: 'Cormorant Garamond', serif;
}

.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.glass-panel-strong {
    background: var(--surface-strong);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
}

.flash-stack {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: flex;
    max-width: min(24rem, calc(100vw - 1.5rem));
    flex-direction: column;
    gap: 0.75rem;
}

.flash-toast {
    display: grid;
    grid-template-columns: 0.3rem 1fr auto;
    align-items: start;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    animation: toast-in 0.22s ease;
}

.flash-toast.is-hiding {
    opacity: 0;
    transform: translateY(0.6rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash-toast-success .flash-toast-accent {
    background: linear-gradient(180deg, #34d399 0%, #0f766e 100%);
}

.flash-toast-error .flash-toast-accent {
    background: linear-gradient(180deg, #fb7185 0%, #c2410c 100%);
}

.flash-toast-body {
    padding: 0.95rem 0.9rem 0.95rem 1rem;
}

.flash-toast-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.flash-toast-message {
    margin: 0.28rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #1f2937;
}

.flash-toast-close {
    margin: 0.45rem 0.45rem 0 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.flash-toast-close:hover {
    color: #334155;
}

.mobile-nav-toggle {
    display: inline-flex;
    width: 2.9rem;
    height: 2.9rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mobile-nav-toggle span {
    width: 1rem;
    height: 2px;
    border-radius: 9999px;
    background: #1f2937;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.mobile-nav-link {
    display: block;
    width: 100%;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.74);
    color: #334155;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
}

.mobile-nav-link-primary {
    background: #1f2937;
    color: #ffffff;
}

.mobile-nav-link-primary:hover {
    background: #0f766e;
    color: #ffffff;
}

.mobile-nav-button {
    border: 0;
    text-align: left;
}

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-menu-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    z-index: 50;
    min-width: 14rem;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.user-menu-link {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0.9rem;
    background: transparent;
    padding: 0.78rem 0.9rem;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-menu-link:hover {
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
}

.user-menu-button {
    cursor: pointer;
}

.hero-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(18px);
    opacity: 0.75;
}

.hero-orb-a {
    width: 12rem;
    height: 12rem;
    background: rgba(15, 118, 110, 0.22);
    top: -1rem;
    right: 12%;
}

.hero-orb-b {
    width: 10rem;
    height: 10rem;
    background: rgba(194, 65, 12, 0.18);
    bottom: -1.5rem;
    left: 8%;
}

.section-title {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.text-balance {
    text-wrap: balance;
}

.photo-ring {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(194, 65, 12, 0.2));
    padding: 3px;
    border-radius: 9999px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
    box-shadow: var(--shadow);
}

.gallery-placeholder {
    min-height: 19rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(15, 118, 110, 0.2), transparent 22%),
        radial-gradient(circle at 80% 25%, rgba(194, 65, 12, 0.2), transparent 18%),
        linear-gradient(135deg, #f7f1e7 0%, #fffaf5 50%, #f0ebe2 100%);
}

.album-preview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 10rem 10rem;
    gap: 0.5rem;
}

.album-preview-grid img:first-child {
    grid-row: 1 / span 2;
    height: 100%;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.88);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-height: min(78vh, 52rem);
    width: auto;
    max-width: min(90vw, 72rem);
    border-radius: 1.5rem;
    object-fit: contain;
}

.reveal {
    animation: float-in 0.7s ease both;
}

.home-full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider-shell {
    border-radius: 0;
    min-height: 32rem;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.42) 45%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-slide-panel {
    position: relative;
    z-index: 1;
    min-height: 32rem;
}

.hero-slide-container {
    display: flex;
    align-items: flex-end;
}

.hero-slide-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
}

.hero-slide-text {
    font-size: 1.125rem;
    line-height: 2rem;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-slide-a {
    background:
        radial-gradient(circle at 18% 20%, rgba(15, 118, 110, 0.45), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #134e4a 45%, #1f2937 100%);
}

.hero-slide-b {
    background:
        radial-gradient(circle at 80% 18%, rgba(194, 65, 12, 0.42), transparent 22%),
        linear-gradient(135deg, #1f2937 0%, #7c2d12 44%, #0f172a 100%);
}

.hero-slide-c {
    background:
        radial-gradient(circle at 78% 70%, rgba(245, 158, 11, 0.24), transparent 18%),
        radial-gradient(circle at 18% 30%, rgba(15, 118, 110, 0.35), transparent 26%),
        linear-gradient(135deg, #111827 0%, #0f766e 52%, #1e293b 100%);
}

.slider-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
    background: #ffffff;
    transform: scale(1.15);
}

.participation-section {
    margin-top: 0;
    padding: 0;
}

.participation-shell {
    padding: 1.4rem 1.25rem;
    border-radius: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(117, 195, 143, 0.18), transparent 24%),
        linear-gradient(125deg, #0a352c 0%, #0e4a3d 52%, #0f5e4e 100%);
    box-shadow: 0 28px 60px rgba(8, 30, 24, 0.2);
}

.participation-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.participation-copy {
    max-width: 17rem;
    color: #f4fbf7;
}

.participation-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(217, 246, 224, 0.82);
}

.participation-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    line-height: 1;
    font-weight: 600;
    color: #ffffff;
}

.participation-underline {
    display: inline-block;
    width: 4.5rem;
    height: 0.24rem;
    margin-top: 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #d7f5de 0%, #8ad29a 100%);
}

.participation-card {
    min-height: 100%;
    padding: 1rem 0.9rem;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #e4f5e7 0%, #d3ebd8 100%);
    box-shadow: 0 16px 30px rgba(4, 24, 18, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.participation-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(180deg, #d7efdd 0%, #c5e0cc 100%);
    box-shadow: 0 22px 34px rgba(4, 24, 18, 0.2);
}

.participation-card-title {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: #12362d;
}

.participation-card-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(18, 54, 45, 0.8);
}

.home-update-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.home-update-date {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(15, 118, 110, 0.1);
    padding: 0.42rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

@media (min-width: 992px) {
    .participation-shell {
        min-height: 8rem;
    }
}

@media (max-width: 991.98px) {
    .participation-copy {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .hero-slider-shell {
        min-height: 24rem;
    }

    .hero-slide-panel {
        min-height: 24rem;
        padding: 1.4rem 1.1rem 1.6rem;
        align-items: flex-end;
    }

    .hero-slide::before {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.78) 100%);
    }

    .hero-slide-title {
        font-size: clamp(2rem, 9vw, 2.9rem);
    }

    .hero-slide-text {
        margin-top: 0.85rem;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .hero-slide-actions {
        margin-top: 1.15rem;
        gap: 0.65rem;
    }

    .hero-slide-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .flash-stack {
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }

    .participation-section {
        padding: 0;
    }

    .participation-shell {
        padding: 1.3rem 1rem;
        border-radius: 0;
    }

    .participation-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-slider-shell {
        min-height: 21.5rem;
    }

    .hero-slide-panel {
        min-height: 21.5rem;
    }

    .slider-dot {
        width: 0.68rem;
        height: 0.68rem;
    }
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(0.7rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
