/* ==========================================================================
   The Ground — the slice of /css/main.css this page actually uses
   ==========================================================================
   /the-ground/ used to link all of main.css (~86KB, nearly all of it homepage
   rules). This file is the subset of main.css whose selectors match
   something on /the-ground/ (in any player or menu state), copied verbatim
   and in main.css's source order, plus the one @keyframes the page's own
   <style> uses (gentlePulse). Load order is unchanged: tokens.css, this
   file, the page <style>, chrome.css.

   If you change one of these rules in main.css, change it here too.
   ========================================================================== */

@keyframes gentlePulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.08); }
}

main#main-content,
.site-footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    line-height: 1.12;
    letter-spacing: -0.012em;
}

h1 {
    font-style: italic;
    font-weight: 380;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

h2 {
    font-style: italic;
    font-weight: 420;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-xl);
}

@media (max-width: 480px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }
}

::selection {
    background: rgba(138, 168, 107, 0.3);
    color: var(--color-text);
}

::-moz-selection {
    background: rgba(138, 168, 107, 0.3);
    color: var(--color-text);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 999px;
    border: 2px solid var(--color-bg);
    transition: background var(--transition-fast);
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--color-brass);
}

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