/* =========================================================
   base.css — reset, background, fonts, shared animation
========================================================= */

:root {
    --ui-scale: min(1.6, calc(92vw / 1000px), calc(84vh / 563px));
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    background-image:
        url(../Images/background.png),
        linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: 'Cormorant Garamond', serif;
    color: #eaeaea;
}

@keyframes contentFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* startup video overlay - once-per-session logic lives in main.js */

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    cursor: pointer;
    opacity: 1;
    transition: opacity .6s ease;
}

.boot-screen.is-hiding {
    opacity: 0;
    pointer-events: none;
}

.boot-screen video,
.boot-screen__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.boot-screen__cover {
    z-index: 1;   /* hides once the video actually starts playing */
    transition: opacity .25s ease;
}

.boot-screen__cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}