:root {
    --bg: #060910;
    --surface: #0d1420;
    --surface-light: #131d2c;
    --red: #e63946;
    --red-bright: #ff4f5e;
    --blue: #2878df;
    --text: #edf2f7;
    --muted: #91a0b5;
    --border: rgba(255,255,255,.09);
    --paper: #f3e7c6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(40,120,223,.15),
            transparent 38%
        ),
        radial-gradient(
            circle at 10% 40%,
            rgba(230,57,70,.05),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;

    overflow-x: hidden;
}


/* WEB */

.web {
    position: fixed;
    width: 300px;
    height: 300px;
    pointer-events: none;
    opacity: .17;
    z-index: -1;
}

.web-top-left {
    top: -100px;
    left: -100px;

    background:
        repeating-radial-gradient(
            circle at 100% 100%,
            transparent 0 25px,
            rgba(255,255,255,.25) 26px,
            transparent 27px
        ),
        linear-gradient(
            45deg,
            transparent 49.5%,
            rgba(255,255,255,.18) 50%,
            transparent 50.5%
        );
}

.web-top-right {
    top: -100px;
    right: -100px;

    background:
        repeating-radial-gradient(
            circle at 0 100%,
            transparent 0 25px,
            rgba(255,255,255,.25) 26px,
            transparent 27px
        ),
        linear-gradient(
            -45deg,
            transparent 49.5%,
            rgba(255,255,255,.18) 50%,
            transparent 50.5%
        );
}


/* SPIDER */

.crawler {
    position: fixed;
    left: -60px;
    top: 30%;
    z-index: 20;
    pointer-events: none;
    opacity: 0;

    animation:
        spiderCrawl 20s linear infinite;
}

.crawler span {
    display: block;
    font-size: 28px;

    filter:
        drop-shadow(
            0 0 8px
            rgba(230,57,70,.5)
        );
}

@keyframes spiderCrawl {

    0% {
        left: -60px;
        top: 32%;
        opacity: 0;
    }

    8% {
        opacity: .8;
    }

    25% {
        left: 25%;
        top: 34%;
    }

    45% {
        left: 55%;
        top: 30%;
    }

    65% {
        left: 78%;
        top: 35%;
    }

    78% {
        opacity: .7;
    }

    88% {
        opacity: 0;
    }

    100% {
        left: 110%;
        top: 31%;
        opacity: 0;
    }
}


/* SITE */

.site {
    width: min(92%, 980px);
    margin: auto;
}


/* HEADER */

.header,
.page-header {
    text-align: center;
    padding: 70px 20px 40px;
}

.logo-spider,
.page-icon {
    font-size: 45px;
}

.logo-spider {
    cursor: pointer;

    animation:
        floatSpider 4s ease-in-out infinite;
}

@keyframes floatSpider {

    0%,100% {
        transform:
            translateY(0)
            rotate(-3deg);
    }

    50% {
        transform:
            translateY(-8px)
            rotate(3deg);
    }
}

.tiny-text {
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .08em;
}

.header h1,
.page-header h1 {
    margin: 8px 0;

    font-size:
        clamp(2.6rem, 8vw, 5rem);

    line-height: 1;
    letter-spacing: -.05em;
}

.subtitle,
.page-header p {
    color: var(--muted);
}

.back-home {
    display: block;

    margin-bottom: 25px;

    color: var(--muted);

    text-decoration: none;

    transition: .2s;
}

.back-home:hover {
    color: white;
    transform: translateX(-3px);
}


/* WEB LINE */

.web-line {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 25px;

    color: var(--red);
}

.web-line span {
    width: 80px;
    height: 1px;
    background: var(--border);
}


/* NAV */

.nav {
    position: sticky;
    top: 8px;
    z-index: 10;

    display: flex;
    justify-content: center;

    flex-wrap: wrap;
    gap: 5px;

    padding: 7px;

    background:
        rgba(6,9,16,.78);

    border: 1px solid var(--border);
    border-radius: 14px;

    backdrop-filter: blur(15px);
}

.nav a {
    color: var(--muted);

    text-decoration: none;

    padding: 9px 13px;

    border-radius: 9px;

    transition: .2s;
}

.nav a:hover,
.nav a.active {
    color: white;

    background:
        rgba(230,57,70,.12);
}


/* HERO */

.hero {
    margin-top: 35px;

    display: grid;

    grid-template-columns:
        1fr
        220px;

    gap: 25px;

    padding: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(230,57,70,.09),
            rgba(40,120,223,.07)
        ),
        var(--surface);

    border: 1px solid var(--border);
    border-radius: 22px;

    box-shadow:
        0 20px 70px
        rgba(0,0,0,.25);
}

.eyebrow {
    color: var(--red-bright);

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .12em;
}

.hero h2 {
    font-size:
        clamp(2rem,5vw,3.5rem);

    line-height: 1.1;

    margin:
        10px 0
        20px;
}

.red {
    color: var(--red-bright);
}

.hero p {
    color: var(--muted);
}


/* BUTTONS */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.button {
    text-decoration: none;

    padding: 11px 17px;

    border-radius: 10px;

    transition: .2s;
}

.primary {
    color: white;
    background: var(--red);
}

.primary:hover {
    transform: translateY(-2px);
    background: var(--red-bright);
}

.secondary {
    color: white;
    border: 1px solid var(--border);
}

.secondary:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}


/* NOTE */

.hero-note {
    position: relative;

    align-self: center;

    padding: 25px;

    background: var(--paper);

    color: #24201a;

    transform: rotate(2deg);

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.3);

    transition: .25s;
}

.hero-note:hover {
    transform:
        rotate(0deg)
        translateY(-3px);
}

.pin {
    position: absolute;

    top: -12px;
    left: 50%;

    transform:
        translateX(-50%);
}

.hero-note p,
.hero-note small {
    color: #645b4e;
}

.hero-note p {
    margin: 0;
}


/* SECTIONS */

.section {
    margin-top: 90px;

    scroll-margin-top: 80px;
}

.section-heading {
    display: flex;
    align-items: baseline;

    gap: 15px;

    margin-bottom: 25px;
}

.section-heading span {
    color: var(--red);

    font-size: .8rem;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;

    font-size: 1.8rem;
}


/* DESK */

.desk {
    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 18px;
}

.desk-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding-bottom: 20px;

    border-bottom:
        1px solid var(--border);
}

.desk-label {
    color: var(--red);

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .12em;

    margin: 0;
}

.desk-top h3 {
    margin: 3px 0 0;
}

.online-dot {
    color: #6ee787;

    font-size: .8rem;

    white-space: nowrap;
}

.desk-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 12px;

    margin-top: 20px;
}

.desk-item {
    display: flex;

    gap: 15px;

    padding: 18px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid var(--border);

    border-radius: 13px;

    transition: .2s;
}

.desk-item:hover {
    transform: translateY(-3px);
}

.desk-icon {
    font-size: 25px;
}

.desk-title {
    display: block;

    color: var(--muted);

    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.desk-item strong {
    display: block;
}

.desk-item small {
    display: block;

    color: var(--muted);

    font-size: .78rem;
}


/* QUICK CARDS */

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;
}

.quick-card {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 20px;

    color: var(--text);

    text-decoration: none;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 14px;

    transition: .2s;
}

.quick-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(230,57,70,.4);
}

.quick-card span {
    font-size: 25px;
}

.quick-card small {
    color: var(--muted);
}


/* PAPER */

.paper {
    padding: 30px;

    background: var(--surface);

    border-left:
        3px solid var(--red);

    border-radius:
        0 15px 15px 0;
}

.paper p {
    color: var(--muted);
}

.scribble {
    color:
        var(--red-bright) !important;

    font-family: cursive;

    transform: rotate(-1deg);
}


/* PROJECTS */

.projects {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;
}

.project-card {
    padding: 25px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 15px;

    transition: .2s;
}

.project-card:hover {
    transform:
        translateY(-5px)
        rotate(-.3deg);

    border-color:
        rgba(230,57,70,.5);
}

.project-card.featured {
    border-color:
        rgba(230,57,70,.35);
}

.project-top {
    display: flex;

    justify-content: space-between;

    gap: 10px;
}

.project-number {
    color: var(--red);

    font-size: .75rem;

    font-weight: bold;
}

.project-status {
    padding:
        3px 8px;

    border-radius: 6px;

    font-size: .68rem;
}

.building {
    color: #ffd166;

    background:
        rgba(255,209,102,.08);
}

.webbed {
    color: #75b9ff;

    background:
        rgba(40,120,223,.10);
}

.abandoned-tag {
    color: #ff8992;

    background:
        rgba(230,57,70,.08);
}

.project-card p {
    color: var(--muted);
}

.tag {
    display: inline-block;

    padding: 3px 8px;

    margin: 3px 2px 0 0;

    color: #b7c4d6;

    background: var(--surface-light);

    border-radius: 6px;

    font-size: .7rem;
}


/* NOTEBOOK */

.notebook {
    padding: 30px;

    background: #111827;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size:
        100% 28px;
}

.note {
    padding: 14px 0;

    border-bottom:
        1px dashed
        rgba(255,255,255,.08);
}

.note-date {
    color: var(--red);

    font-family: monospace;

    font-size: .75rem;
}

.note p {
    margin: 3px 0;

    color: #c4cfdd;
}

.notebook-footer {
    color: var(--muted);

    font-family: cursive;
}


/* INTERESTS */

.interest-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;
}

.interest {
    padding: 18px;

    text-align: center;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 12px;

    transition: .2s;
}

.interest:hover {
    transform: rotate(-1deg) translateY(-3px);
}


/* STICKY NOTES */

.note-stack {
    display: grid;

    gap: 15px;
}

.sticky-note {
    padding: 20px;

    color: #171717;

    box-shadow:
        0 8px 20px
        rgba(0,0,0,.2);

    transform: rotate(-1deg);
}

.sticky-note:nth-child(2) {
    transform: rotate(1deg);
}

.sticky-note:nth-child(3) {
    transform: rotate(-.5deg);
}

.note-red {
    background: #ff8c94;
}

.note-blue {
    background: #8fc7ff;
}

.note-yellow {
    background: #f5e58a;
}


/* MUSIC */

.music-intro {
    display: flex;

    align-items: center;

    gap: 25px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(40,120,223,.12),
            rgba(230,57,70,.08)
        );

    border:
        1px solid var(--border);

    border-radius: 18px;
}

.music-symbol {
    display: grid;

    place-items: center;

    min-width: 80px;
    height: 80px;

    font-size: 40px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.04);
}

.music-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.music-tags span {
    padding:
        9px 14px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        20px;
}


/* RANDOM */

.random-box {
    padding: 35px;

    text-align: center;

    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,.02),
            rgba(255,255,255,.02) 10px,
            transparent 10px,
            transparent 20px
        );

    border:
        1px dashed var(--border);

    border-radius: 18px;
}

.random-box p {
    color: var(--muted);
}

button {
    padding:
        11px 18px;

    color: white;

    background: var(--red);

    border: none;

    border-radius: 9px;

    cursor: pointer;

    font: inherit;

    transition: .2s;
}

button:hover {
    transform: scale(1.03);

    background:
        var(--red-bright);
}

#message {
    min-height: 28px;

    color:
        var(--red-bright) !important;

    font-weight: 600;
}

.random-list {
    display: grid;

    gap: 10px;
}

.random-list div {
    padding: 16px 20px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 10px;

    transition: .2s;
}

.random-list div:hover {
    transform:
        translateX(5px);

    border-color:
        rgba(230,57,70,.3);
}


/* FOOTER */

footer {
    text-align: center;

    margin:
        100px 0 40px;

    padding-top: 30px;

    border-top:
        1px solid var(--border);
}

.footer-web {
    font-size: 25px;
}

footer p {
    color: var(--muted);

    font-size: .85rem;
}

footer .copyright {
    font-size: .7rem;
}


/* MOBILE */

@media (max-width:700px) {

    .site {
        width: 92%;
    }

    .header,
    .page-header {
        padding:
            50px 10px 35px;
    }

    .hero {
        grid-template-columns: 1fr;

        padding: 25px;
    }

    .hero-note {
        width: 85%;
        margin: 10px auto;
    }

    .desk-grid,
    .projects {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .interest-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .music-intro {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        justify-content: flex-start;

        overflow-x: auto;

        flex-wrap: nowrap;

        scrollbar-width: none;

        -webkit-overflow-scrolling:
            touch;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex: 0 0 auto;

        font-size: .82rem;

        padding:
            8px 11px;
    }

    .crawler {
        display: none;
    }

    .web {
        opacity: .1;
    }
}


/* SMALL PHONES */

@media (max-width:400px) {

    .site {
        width: 94%;
    }

    .header h1,
    .page-header h1 {
        font-size: 2.5rem;
    }

    .buttons {
        flex-direction: column;
    }

    .button {
        text-align: center;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            .01ms !important;

        transition-duration:
            .01ms !important;
    }
}

/* ==========================================
   SOCIALS
========================================== */

.socials {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;
}

.social-card {
    display: flex;

    align-items: center;

    gap: 16px;

    padding: 20px;

    color: var(--text);

    text-decoration: none;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 15px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.social-card:hover {
    transform:
        translateY(-4px)
        rotate(-.3deg);

    background:
        var(--surface-light);

    border-color:
        rgba(230,57,70,.45);
}

.social-icon {
    display: grid;

    place-items: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    font-size: 25px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid var(--border);

    border-radius: 12px;
}

.social-info {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.social-info strong {
    font-size: 1rem;
}

.social-info small {
    color: var(--muted);

    font-size: .78rem;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.social-arrow {
    margin-left: auto;

    color: var(--muted);

    font-size: 1.1rem;

    transition:
        transform .2s ease,
        color .2s ease;
}

.social-card:hover .social-arrow {
    color: var(--red-bright);

    transform:
        translate(3px, -3px);
}

/* PLAYLIST */

.playlist-card {
    display: flex;

    align-items: center;

    gap: 25px;

    padding: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(230,57,70,.09),
            rgba(40,120,223,.07)
        ),
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.2);

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.playlist-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(230,57,70,.4);
}

.playlist-icon {
    display: grid;

    place-items: center;

    flex-shrink: 0;

    width: 90px;
    height: 90px;

    font-size: 42px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid var(--border);

    border-radius: 50%;

    box-shadow:
        0 0 30px
        rgba(230,57,70,.08);
}

.playlist-info {
    min-width: 0;
}

.playlist-label {
    color:
        var(--red-bright);

    font-size: .7rem;

    font-weight: 700;

    letter-spacing: .12em;
}

.playlist-info h3 {
    margin:
        5px 0 8px;

    font-size: 1.5rem;
}

.playlist-info p {
    max-width: 650px;

    margin:
        0 0 18px;

    color:
        var(--muted);
}


/* PLAYLIST MOBILE */

@media (max-width: 700px) {

    .playlist-card {
        flex-direction: column;

        align-items: flex-start;

        padding: 25px;
    }

    .playlist-icon {
        width: 70px;
        height: 70px;

        font-size: 32px;
    }

    .playlist-info .button {
        width: 100%;

        display: block;

        text-align: center;
    }

}


/* SOCIALS MOBILE */

@media (max-width: 700px) {

    .socials {
        grid-template-columns: 1fr;
    }

}