/* MX.1 landing — projectlightresistance.com apex
 * Tonalità: evocativo / minimal (deciso GM 2026-05-23 sweep MX).
 * NO spoiler: niente lore, niente meccaniche, niente classi.
 * Zero asset visivi, zero JS, zero build step.
 */

:root {
    --bg: #0a0a0c;
    --gold: #c9a55c;
    --gold-dim: #8a7340;
    --ivory: #e8e3d5;
    --ivory-dim: #807a6b;

    --font-serif: 'Cormorant Garamond', 'EB Garamond', Garamond, Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--ivory);
    font-family: var(--font-serif);
    font-weight: 300;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;

    /* Subtle vignette: il centro più chiaro, gli angoli sprofondano. */
    background:
        radial-gradient(ellipse at center, #15151a 0%, var(--bg) 70%);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero {
    text-align: center;
    max-width: 40rem;
}

.title {
    font-weight: 500;
    color: var(--gold);
    font-size: clamp(3rem, 12vw, 6.5rem);
    letter-spacing: 0.35em;
    /* Optical: con letter-spacing wide il blocco è spinto a destra. */
    padding-left: 0.35em;
    line-height: 1;
    margin-bottom: 2.5rem;
}

.tagline p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--ivory);
    line-height: 1.7;
    font-weight: 300;
}

.divider {
    color: var(--gold-dim);
    font-size: 1.5rem;
    margin: 2rem 0;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
}

.invite {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--ivory-dim);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Cipher: piccolo "3" in alto a destra. Easter egg silenzioso.
 * Significato volutamente opaco — sarà chiaro a chi avrà visto abbastanza.
 * Posizione fixed così resta presente anche se in futuro la landing scrollerà.
 */
.cipher {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--ivory-dim);
    opacity: 0.32;
    letter-spacing: 0.1em;
    user-select: none;
    cursor: default;
    transition: opacity 0.8s ease;
}

.cipher:hover,
.cipher:focus {
    opacity: 0.55;
}

footer {
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--ivory-dim);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

footer a {
    color: var(--ivory-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: var(--gold);
    border-bottom-color: var(--gold-dim);
}

/* Mobile: respira meno, tagline più stretta */
@media (max-width: 480px) {
    .title {
        letter-spacing: 0.2em;
        padding-left: 0.2em;
        margin-bottom: 2rem;
    }
    .divider {
        margin: 1.5rem 0;
    }
    .cipher {
        top: 1rem;
        right: 1.25rem;
        font-size: 1.05rem;
    }
}

/* Print fallback (e accessibilità contrasto): forza il default a leggibile */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
