:root {
    /* Deep Atlantic */
    --sea-deep: #1a2633;
    --sea-mid: #2d3d4a;
    --sea-foam: #4a5d6a;

    /* Shore */
    --sand: #d4c8b8;
    --driftwood: #a89888;
    --rope: #c4a882;

    /* Aliases for existing usage */
    --background-primary: var(--sea-deep);
    --background-secondary: var(--sea-mid);
    --foreground-primary: var(--sand);
    --foreground-secondary: var(--rope);
    --foreground-tertiary: var(--driftwood);
}

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

html {
    font-size: 18px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--background-primary);
    color: var(--foreground-primary);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

a {
    cursor: pointer;
    -webkit-user-select: auto;
    user-select: auto;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 1px solid var(--foreground-tertiary);
    outline-offset: 2px;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: -40px;
    pointer-events: none;
    transform: translate(
        calc(var(--mouse-x, 0) * 20px),
        calc(var(--mouse-y, 0) * 20px)
    );
    will-change: transform;
}

body::before {
    background: linear-gradient(
        -15deg,
        transparent 15%,
        var(--sea-mid) 45%,
        var(--sea-foam) 55%,
        transparent 85%
    );
    background-size: 300% 300%;
    animation: wave-slow 25s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

body::after {
    background: linear-gradient(
        10deg,
        transparent 15%,
        var(--sea-foam) 50%,
        transparent 85%
    );
    background-size: 400% 400%;
    animation: wave-fast 18s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes wave-slow {
    0% {
        background-position: 0% 100%;
        opacity: 0.2;
    }
    30% {
        opacity: 0.4;
    }
    50% {
        background-position: 100% 0%;
        opacity: 0.3;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        background-position: 0% 100%;
        opacity: 0.2;
    }
}

@keyframes wave-fast {
    0% {
        background-position: 100% 100%;
        opacity: 0.1;
    }
    35% {
        opacity: 0.25;
    }
    50% {
        background-position: 0% 0%;
        opacity: 0.15;
    }
    75% {
        opacity: 0.2;
    }
    100% {
        background-position: 100% 100%;
        opacity: 0.1;
    }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

main {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

main p {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    color: var(--foreground-tertiary);
}

.tagline::after {
    content: '|';
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.divider {
    width: 252px;
    height: 1px;
    border-top: 1px solid var(--sea-foam);
    opacity: 0.6;
    margin: 0 auto;
}

.work {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.work ul {
    list-style: none;
}

.work li {
    border-bottom: 1px solid var(--sea-mid);
}

.work a {
    display: block;
    padding: 0.875rem 0;
    color: var(--foreground-tertiary);
    text-decoration: none;
    font-size: 1rem;
    transition: 150ms ease;
    text-align: center;
}

.work a:hover {
    color: var(--foreground-primary);
    padding-left: 1rem;
}

footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
        opacity: 0.3;
        transform: none;
    }

    .tagline::after {
        animation: none;
        opacity: 1;
    }
}

footer a {
    color: var(--foreground-secondary);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--foreground-primary);
}