@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Crimson+Text:wght@400;600&display=swap');


/* =====================================
   GLOBAL PAGE
===================================== */

html {
    width: 100%;
    overflow-x: hidden;
}


body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: clamp(18px, 1.4vw, 20px);
    line-height: 1.6;
    color: var(--ink);
    background: var(--midnight);
}


/* =====================================
   TYPOGRAPHY
===================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--title-font);
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


a {
    transition: var(--transition);
}


.logo {
    text-decoration: none;
}


/* =====================================
   DISCOVERY-GATED ATLAS CONNECTIONS
   Connection pills are hidden until the persistent Passport/discovery manager
   classifies their target. Public targets are then revealed normally;
   undiscovered targets become spoiler-safe mystery pills with no identity.
===================================== */

.atlas-connection-pill:not([data-atlas-connection-ready="true"]),
.world-connection-link:not([data-atlas-connection-ready="true"]),
.atlas-connection-pill[hidden],
.world-connection-link[hidden] {
    display: none !important;
}


/* =====================================
   REDUCED MOTION
   Honour the visitor's OS/browser motion preference globally. Individual
   components may still provide their own more specific reduced-motion rules.
===================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
}
