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

:root {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f5;
    --line-color-rgb: 58, 58, 58;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f5f5f5;
        --text-color: #0a0a0a;
        --line-color-rgb: 180, 180, 180;
    }
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    font-family: 'Shippori Antique', Georgia, serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

#topo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
    text-align: center;
}

.title {
    font-family: 'Shippori Antique B1', 'Shippori Antique', Georgia, serif;
    color: var(--text-color);
    font-weight: 400;
    font-size: clamp(2.5rem, 10vw, 8rem);
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .title {
        animation: none;
        opacity: 1;
    }

    #topo-canvas {
        /* Canvas animation will be handled in JS */
    }
}
