/* ----- colour palette ----- */
:root {
    --bg: #000;
    --text: #f5f5f5;
    --accent: #0d6efd;
}

/* ----- global reset ----- */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 100%/1.6 system-ui, sans-serif;
    overflow: hidden;
}

/* ----- centre everything ----- */
/* Foreground layout */
.hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    pointer-events: none;
    /* <-- disables pointer events for the container */
}

.hero * {
    pointer-events: auto;
    /* <-- re-enables pointer events for children (buttons, links, etc.) */
}

/* ----- typography ----- */
.name {
    font-size: 3rem;
    margin: 0 0 2rem;
}

/* ----- nav list ----- */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
    /* Allow background clicks to pass through */
}

.nav-list li {
    margin: 0;
    /* Eliminate spacing that might intercept clicks */
    padding: 0;
    /* Prevent invisible padding hitboxes */
}

.nav-list li+li {
    margin-top: 1rem;
    /* Restore spacing visually between items */
}

.nav-list a {
    display: inline-block;
    /* Prevent edge ghost clicks on inline text */
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color .25s;
    pointer-events: auto;
    /* Only actual links can be clicked */
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--accent);
}

.signature {
    width: min(90vw, 800px);
    /* Large on desktop, responsive on mobile */
    height: auto;
    margin-bottom: 2rem;
}



.foreground {
    pointer-events: none;
    /* pass through by default */
}

.foreground * {
    pointer-events: auto;
    /* restore pointer events on interactive children */
}

#trailCanvas,
#mainCanvas {
    position: fixed;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        /* covers layout width */
        height: 100%;
        /* covers layout height */
}

#trailCanvas {
    z-index: 0;
    pointer-events: none;
    /* Drawn under everything, no interaction */
}

#mainCanvas {
    touch-action: none;
    pointer-events: auto;
    z-index: 1;
}