:root {
    --panel: rgba(0, 0, 0, 0.7);
    --text: #ebdff7;
    --text-soft: rgba(235, 223, 247, 0.78);
    --sea-shadow: rgba(6, 14, 19, 0.52);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #101417;
}

button,
a,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

.landing-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    isolation: isolate;
}

.photo-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    height: min(100vh, calc(100vw * 596 / 336));
    transform: translate(-50%, -50%);
    aspect-ratio: 336 / 596;
}

.background-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photo-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(110deg, rgba(4, 8, 12, 0.22), rgba(4, 8, 12, 0.46));
}

.rail-links {
    position: absolute;
    inset: 0;
    transition: opacity 420ms ease, transform 420ms ease;
}

.site-shell:not([data-screen="home"]) .rail-links {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.language-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
}

.language-selector-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.language-selector select {
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 0;
    padding: 0.28rem 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.language-selector select:focus-visible {
    outline: 1px solid var(--text);
    outline-offset: 2px;
}

.rail-link {
    position: absolute;
    border: 0;
    padding: 0.15rem 0.55rem;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-style: normal;
    letter-spacing: 0.03em;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.rail-link:hover,
.rail-link:focus-visible {
    color: #ffffff;
    outline: none;
}

.rail-link-about {
    left: calc(50% - 118px);
    top: 77vh;
    transform: rotate(-2deg) skewX(-8deg);
}

.rail-link-about:hover,
.rail-link-about:focus-visible {
    transform: rotate(-2deg) skewX(-8deg) translateY(-2px);
}

.rail-link-songs {
    left: calc(50% + 72px);
    top: 77vh;
    transform: rotate(-2deg) skewX(-8deg);
}

.rail-link-songs:hover,
.rail-link-songs:focus-visible {
    transform: rotate(-2deg) skewX(-8deg) translateY(-2px);
}

.content-panel {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--text);
    background: var(--panel);
    border: 1px solid rgba(235, 223, 247, 0.34);
    border-radius: 0;
    box-shadow: 0 28px 90px var(--sea-shadow);
    backdrop-filter: blur(12px) saturate(1.15);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -46%);
    transition: opacity 420ms ease, transform 420ms ease;
}

.site-shell:not([data-screen="home"]) .content-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.panel-close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.panel-close:hover,
.panel-close:focus-visible {
    color: var(--text);
    outline: none;
}

.panel-screen {
    display: none;
}

.site-shell[data-screen="about"] [data-panel-screen="about"],
.site-shell[data-screen="songs"] [data-panel-screen="songs"],
.site-shell[data-screen="passenger-pigeons"] [data-panel-screen="passenger-pigeons"] {
    display: block;
    animation: panelContentIn 360ms ease both;
}

.content-panel h1 {
    margin: 0 2rem 1.2rem 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    line-height: 1;
}

.content-panel h2 {
    margin: 2rem 0 0.8rem;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 400;
}

.content-panel p {
    margin: 0 0 1rem;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    line-height: 1.58;
}

.song-link,
.breadcrumb-link,
.download-list a {
    border: 0;
    padding: 0;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.song-link {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.breadcrumb-link {
    font-size: inherit;
}

.download-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    line-height: 1.7;
}

.download-list a:hover,
.download-list a:focus-visible,
.song-link:hover,
.song-link:focus-visible,
.breadcrumb-link:hover,
.breadcrumb-link:focus-visible {
    color: #ffffff;
    outline: none;
}

@keyframes panelContentIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .rail-link-about {
        left: calc(50% - 118px);
        top: 77vh;
    }

    .rail-link-songs {
        left: calc(50% + 72px);
        top: 77vh;
    }

    .content-panel {
        border-radius: 0;
    }
}
