/* Explain: Base styles, resets, and global typography for the entire site. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, .font-display {
    font-family: var(--font-heading);
    line-height: 1.35;
    margin: 0;
    font-weight: 700;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

::selection {
    background: var(--primary-color);
    color: #0b1220;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b1220; }
::-webkit-scrollbar-thumb {
    background: #26324a;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

[x-cloak] { display: none !important; }

/* Audio range inputs */
.player-range {
    -webkit-appearance: none;
    appearance: none;
    direction: ltr;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(
        to right,
        var(--primary-color) var(--progress, 0%),
        rgba(154, 166, 189, 0.25) var(--progress, 0%)
    );
    cursor: pointer;
    outline: none;
}

.player-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #0b1220;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
    cursor: pointer;
}

.player-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #0b1220;
    cursor: pointer;
}

.player-range:focus-visible {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.32);
}

/* Scroll reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}