:root {
    --rose-950: #100610;
    --rose-900: #1d0815;
    --rose-500: #d73575;
    --rose-300: #ff8fbc;
    --text-main: #fff5f8;
    --text-muted: rgba(255, 218, 230, 0.7);
    --text-soft: rgba(255, 218, 230, 0.42);
    --max-content: 980px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--rose-950);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100svh;
    margin: 0;
    overflow: hidden;
    color: var(--text-main);
    background:
        radial-gradient(circle at 20% 15%, rgba(148, 34, 78, 0.18), transparent 28rem),
        radial-gradient(circle at 78% 72%, rgba(215, 53, 117, 0.16), transparent 30rem),
        linear-gradient(140deg, #080207 0%, var(--rose-950) 48%, #050104 100%);
    font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

#canvas,
#bloomCanvas,
.vignette {
    position: fixed;
    inset: 0;
}

#canvas {
    z-index: 1;
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
    touch-action: none;
}

#bloomCanvas {
    z-index: 2;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    filter: blur(14px);
    mix-blend-mode: screen;
    opacity: 0.35;
}

.vignette {
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 48% 42%, transparent 36%, rgba(0, 0, 0, 0.58) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.55));
}

.hero {
    position: relative;
    z-index: 4;
    display: grid;
    align-content: center;
    min-height: 100svh;
    width: min(var(--max-content), calc(100vw - 48px));
    margin: 0 auto;
    padding: 72px 0;
    pointer-events: none;
}

.eyebrow,
.interaction-note {
    margin: 0;
    text-wrap: balance;
}

.eyebrow {
    width: fit-content;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 143, 188, 0.22);
    border-radius: 999px;
    background: rgba(12, 3, 10, 0.42);
    color: var(--text-muted);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(18px);
}

h1 {
    max-width: 11ch;
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: clamp(4.1rem, 13vw, 11.5rem);
    font-weight: 400;
    letter-spacing: -0.075em;
    line-height: 0.83;
    text-shadow:
        0 0 34px rgba(215, 53, 117, 0.22),
        0 22px 70px rgba(0, 0, 0, 0.7);
}

.interaction-note {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    color: var(--text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.noscript-message {
    position: fixed;
    z-index: 5;
    right: 24px;
    bottom: 24px;
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    body {
        overflow: hidden;
    }

    .hero {
        width: min(100% - 32px, var(--max-content));
        align-content: end;
        padding: 48px 0 84px;
    }

    .eyebrow {
        margin-bottom: 18px;
        font-size: 0.68rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(3.9rem, 18vw, 5.7rem);
        letter-spacing: -0.065em;
    }

    .interaction-note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #canvas {
        cursor: default;
    }

    #bloomCanvas {
        display: none;
    }

    .interaction-note {
        display: none;
    }
}
