@import url("./scrollbar.css");
@font-face {
    font-family: 'Inter';
    src: url("/i/files/font/inter/Inter-VariableFont_opsz\,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("/i/files/font/inter/Inter-Italic-VariableFont_opsz\,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    text-align: center;
    cursor: default;
}

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

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
    cursor: default;
}

nav ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

nav li {
    display: inline;
    margin: 0 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

main {
    width: 80%;
    max-width: none;
    margin-top: 100px;
    margin-left: clamp(16px, 8vw, 120px);
    margin-right: auto;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    text-align: left;
    backdrop-filter: blur(6px);
}

section {
    margin-bottom: 60px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Projects section */
#projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 12px 0 0;
}

#projects li {
    margin: 0;
    font-size: 1rem;
    /* inherit and let the card control sizing */
}

#projects a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #cbd5e1;
    text-decoration: none;
}

#projects li i {
    color: #b6c2ff;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    main {
        width: 92%;
        margin-left: 4%;
        margin-right: 4%;
        padding: 22px 24px;
    }

    main,
    main * {
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    main {
        width: 96%;
        margin-left: 2%;
        margin-right: 2%;
        padding: 18px 20px;
    }

    #projects a {
        padding: 10px 12px;
    }
}

#bsky {
    margin-top: 40px;
}

#bsky h1 {
    margin-bottom: 14px;
}

#bsky .bsky-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 6px;
}

#bsky .bsky-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

#bsky .bsky-ident {
    display: flex;
    flex-direction: column;
}

#bsky .bsky-name {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
}

#bsky .bsky-handle a {
    color: #b6c2ff;
    text-decoration: none;
    font-size: 0.95rem;
}

#bsky .bsky-item {
    margin-top: 8px;
}

#bsky .bsky-repost {
    color: #9aa4af;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

#bsky .bsky-text {
    font-size: 1rem;
    margin: 6px 0 10px;
}

#bsky .bsky-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1.7em, 1fr));
    gap: 8px;
    margin-top: 6px;
    max-width: 600px;
}

#bsky .bsky-images img {
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 10px;
    display: block;
    background: #111;
    font-size: 10em;
}

#bsky .bsky-video video {
    width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    background: #111;
}

#bsky .bsky-quote {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    text-decoration: none;
}

#bsky .bsky-footer a {
    color: #b6c2ff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 12px;
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

@media (max-width: 480px) {
    #bsky .bsky-avatar {
        width: 48px;
        height: 48px;
    }

    #bsky .bsky-images {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

ul {
    list-style: none;
    margin-bottom: 8px;
}

#clocks .clocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

#clocks .clock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #cbd5e1;
}

#clocks .clock-item[title] {
    cursor: help;
}

#clocks .clock-item i {
    color: #b6c2ff;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

#clocks .clock-item span {
    margin-left: auto;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 480px) {
    #clocks .clock-item {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    #clocks .clock-item span {
        margin-left: 0;
        align-self: stretch;
        text-align: center;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 2em 0;
    flex-wrap: wrap;
}

.nav-links a,
#song-shuffle {
    font-size: 1.5em;
    font-weight: 700;
    padding: 0.5em 1em;
    border-radius: 8px;
    background: #222;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.08s ease;
    display: inline-flex;
    gap: 10px;
    border: none;
    cursor: pointer;
}

#song-shuffle {
    font-size: 1rem;
    padding: 0.4em 0.9em;
    gap: 8px;
}

#presence .dc-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

#presence .dc-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#presence .dc-ident {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#presence .dc-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
}

#presence .dc-handle {
    color: #b6c2ff;
    font-size: 0.95rem;
}

#presence .dc-sub .sub {
    display: block;
}

#presence .dc-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

#presence .dc-status {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

#presence .dc-right .fa-discord {
    color: #b6c2ff;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    #presence .dc-card {
        grid-template-columns: 48px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    #presence .dc-avatar { width: 48px; height: 48px; }
}

a, a:visited {
    color: #fff;
}