:root {
    --bg-top: #10241a;
    --bg-bottom: #1f130d;
    --panel: rgba(13, 24, 18, 0.88);
    --panel-border: rgba(236, 214, 172, 0.18);
    --text-main: #f5eedf;
    --text-soft: #d6c9b1;
    --accent: #d7a64a;
    --accent-strong: #edc46d;
    --accent-muted: rgba(215, 166, 74, 0.18);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    --image-stage: linear-gradient(180deg, rgba(47, 72, 54, 0.95), rgba(34, 24, 17, 0.95));
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top, rgba(114, 153, 91, 0.18), transparent 32%),
        linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
    color: var(--text-main);
    font-family: Georgia, "Times New Roman", serif;
}

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

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

button,
input {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header,
.site-footer,
.gallery-page,
.content-page {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    letter-spacing: 0.04em;
    color: var(--accent-strong);
}

.site-nav {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.nav-link {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--text-soft);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    background: var(--accent-muted);
    color: var(--text-main);
    transform: translateY(-1px);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(9, 17, 13, 0.72);
    border: 1px solid rgba(237, 196, 109, 0.15);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.audio-button {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: linear-gradient(180deg, rgba(237, 196, 109, 0.95), rgba(183, 126, 34, 0.95));
    color: #1d140f;
    cursor: pointer;
}

.audio-button:hover,
.audio-button:focus-visible {
    transform: translateY(-1px);
}

.audio-volume {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.audio-slider {
    width: 110px;
    accent-color: var(--accent-strong);
}

.gallery-page,
.content-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.gallery-viewer,
.content-card,
.empty-state {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.gallery-viewer {
    position: relative;
    min-height: 74vh;
    padding: 1rem;
    overflow: hidden;
}

.gallery-stage {
    min-height: calc(74vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--image-stage);
    border-radius: 22px;
    padding: 1rem;
}

.gallery-slide {
    width: 100%;
    height: 100%;
}

.gallery-slide[hidden] {
    display: none;
}

.gallery-image,
.donation-slide-link {
    width: 100%;
    height: 100%;
}

.gallery-image {
    object-fit: contain;
    max-height: calc(74vh - 4rem);
    margin: 0 auto;
}

.donation-slide-link {
    display: grid;
    place-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.donation-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(237, 196, 109, 0.3);
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 3.4rem;
    height: 3.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(13, 24, 18, 0.66);
    color: var(--accent-strong);
    cursor: pointer;
    font-size: 1.7rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
    background: rgba(13, 24, 18, 0.9);
    color: var(--text-main);
}

.gallery-arrow-left {
    left: 1.5rem;
}

.gallery-arrow-right {
    right: 1.5rem;
}

.content-card,
.empty-state {
    max-width: 720px;
    padding: 2rem;
    text-align: center;
}

.content-card h1,
.empty-state h1 {
    margin-top: 0;
    color: var(--accent-strong);
}

.about-card {
    max-width: 860px;
    text-align: left;
}

.about-card h1 {
    text-align: center;
}

.content-card p,
.empty-state p,
.site-footer p {
    color: var(--text-soft);
}

.about-card p {
    font-size: 1.08rem;
    line-height: 1.8;
}

.site-footer {
    padding: 0 0 1.25rem;
    text-align: center;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .site-branding,
    .audio-controls {
        justify-content: center;
    }

    .audio-controls {
        flex-wrap: wrap;
    }

    .gallery-page,
    .content-page {
        padding-top: 0.25rem;
    }

    .gallery-viewer {
        min-height: 68vh;
        padding: 0.75rem;
    }

    .gallery-stage {
        min-height: calc(68vh - 1.5rem);
        padding: 0.75rem;
    }

    .gallery-image {
        max-height: calc(68vh - 3rem);
    }

    .gallery-arrow {
        width: 3rem;
        height: 3rem;
    }

    .gallery-arrow-left {
        left: 0.75rem;
    }

    .gallery-arrow-right {
        right: 0.75rem;
    }

    .about-card {
        text-align: left;
    }
}
