body {
    font-family: sans-serif;
    background: #0b0f19;
    color: #e2e8f0;
}

.page {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
    line-height: 1.6;
}

.page a {
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
}
.page a:hover { color: #38bdf8; }

.page h1 {
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 10px;
    color: #f8fafc;
    font-size: 1.5rem;
}

.page p {
    color: #94a3b8;
    margin-top: 20px;
}

/* now.html lists */
.page ul.main-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.now-playing {
    color: #38bdf8;
    font-size: 0.85rem;
    margin-top: 16px;
}

.page .project-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 650;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.page .sub-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page .sub-list li {
    color: #94a3b8;
    font-size: 0.92rem;
    padding-left: 16px;
}

.page li { margin-bottom: 5px; }

/* content pages: headings, lists, inline links */
.page h2 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-top: 36px;
}

.page ul {
    padding-left: 20px;
    color: #94a3b8;
}

.page p a,
.page li a {
    color: #38bdf8;
    font-size: inherit;
}

.page strong { color: #e2e8f0; }


.home {
    margin: 0;
    min-height: 100vh;
}

.home h1 {
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 10px;
}

.header-container {
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.left-side {
    flex: 7;
    padding: 40px;
    box-sizing: border-box;
}

.right-side {
    flex: 3;
    background-color: #131a2c;
    border-left: 1px solid #1e293b;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* scattered links */
.pos-1 { top: 18%; left: 14%; }
.pos-2 { top: 42%; right: 16%; }
.pos-3 { bottom: 22%; left: 20%; }
.pos-4 { bottom: 12%; right: 10%; }
.pos-5 { top: 66%; right: 30%;} 

.scattered-link {
    position: absolute;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 14px;
    transition: color 0.2s ease;
}
.scattered-link:hover { color: #38bdf8; }

/* profile */
.profile-img {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.location-tag {
    color: #38bdf8;
    margin-top: -8px;
    font-size: 0.90rem;
}

/* profile bio styling - clean text stack, zero bullets */
.bio-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bio-list li {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Keeps a subtle color identity nod for the final "catch the fish" prompt */
.bio-list li:last-child {
    color: #fbbf24;
    font-size: 0.85rem;
}


.fish {
    position: fixed;
    left: 40%;
    top: 70%;               /* parked spot if JS is off or motion is reduced */
    z-index: 10;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
    color: #fbbf24;
    will-change: transform;
}
.fish.left { flex-direction: row-reverse; }   /* head first when facing left */

.fish-body {
    display: flex;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.fish-body span { display: inline-block; }

.fin { display: block; line-height: 0; }
.fin svg { display: block; }
.tail { transform-origin: 100% 50%; }         /* pivots where it joins the body */
.fish.left .tail { transform-origin: 0% 50%; }
.fish.left .fin svg { transform: scaleX(-1); }

/* gold <-> red flash, rippling along the body */
.fish-body span,
.fin { animation: flash 2s ease-in-out infinite; }
.fish-body span { animation-delay: calc(var(--i) * -0.1s); }
.tail { animation-delay: -1.2s; }

@keyframes flash {
    0%, 100% { color: #fbbf24; text-shadow: 0 0 6px rgba(251, 191, 36, 0.7); }
    50%      { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
}

/* bubble canvas, drawn by fish.js */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .fish-body span, .fin { animation: none; }
}


@media (max-width: 768px) {
    .container {
        position: relative;          /* the fish swims inside this, and it spans the whole page */
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding-bottom: 40px;
    }

    /* dissolve the two columns so the pieces can be reordered */
    .left-side,
    .header-container,
    .scattered-links { display: contents; }

    /* order: welcome, image + bio, links, fish fallback */
    .home h1 {
        order: 1;
        margin: 36px 20px 0;
        text-align: center;
        font-size: 1.6rem;
    }
    .home h3 {
        order: 2;
        margin: 12px 20px 28px;
        text-align: center;
        font-weight: 400;
        color: #94a3b8;
    }

    .right-side {
        order: 3;
        flex: none;
        justify-content: flex-start;
        border-left: none;
        border-top: 1px solid #1e293b;
        border-bottom: 1px solid #1e293b;
        padding: 32px 24px;
    }

    .profile-img {
        width: min(62vw, 280px);
        height: min(62vw, 280px);
    }

    .bio-list {
        max-width: 420px;
        margin: 20px auto 0;
    }

    .scattered-link {
        order: 4;
        position: static;
        display: block;
        margin: 6px auto;
        padding: 10px 14px;
        font-size: 1rem;
    }
    .pos-1 { margin-top: 28px; }

    /* no JS or reduced motion: the fish is just a link below the others */
    .fish {
        position: static;
        order: 5;
        margin: 18px auto 0;
    }

    /* JS adds .swim: the fish roams the full page and scrolls with it */
    .fish.swim {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

[hidden] { display: none !important; }

/* index: degree line under the name */
.role {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: -8px 0 4px;
}
.role + .location-tag { margin-top: 0; }

/* songs page */
.page .now-playing {
    color: #38bdf8;
    font-size: 0.9rem;
    margin-top: 12px;
}
.page ol { padding-left: 24px; color: #94a3b8; }
.page ol .plays { color: #475569; font-size: 0.8rem; margin-left: 6px; }