:root {
        --bg: #292a56d0;
        --hair: #885fa4;
        --text: hsl(239, 35%, 90%);
        --acc: #ffff43;
    }

    @font-face {
        font-family: 'OSTitle';
        src: url('display.ttf');
        font-display: swap;
    }

    @font-face {
        font-family: 'jp';
        src: url('web_dos-v_re_jpn19.woff');
        font-display: swap;
    }

    * { box-sizing: border-box; }

    body {
        margin: 0;
        min-height: 100vh;
        display: grid;
        align-content: center;
        background-color: var(--bg);
        user-select: none;
        -webkit-user-select: none;
    }

    container {
        width: min(980px, calc(100vw - 32px));
        justify-self: center;
        display: block;
        padding: 32px;
        color: var(--text);
        font-family: jp;
        backdrop-filter: blur(3px);
    }

    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    h1 {
        margin: 0;
        color: var(--acc);
        font-family: OSTitle;
        font-weight: lighter;
    }

    h2 {
        margin: 0 0 8px;
        font-family: jp;
        font-weight: bolder;
    }

    a { color: var(--acc); }

    p {
        font-size: large;
        line-height: 1.55;
        margin: 0;
    }

    linkportion {
        height: 100%;
        display: flex;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
    }

    linkportion a { text-decoration: none; }

    linkportion a:hover {
        text-decoration: dotted underline 1px;
    }

    .cards {
        margin-top: 28px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .project-card {
        border: 2px solid var(--hair);
        background: rgba(20, 18, 48, 0.38);
        backdrop-filter: blur(2px);
        overflow: hidden;
        transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
        transform-origin: center;
        display: flex;
        flex-direction: column;
        text-decoration: none;
    }

    .project-card:hover {
        transform: rotate(-1.5deg) ;
        background: rgba(68, 46, 105, 0.62);
        box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.22);
    }

    .profile-photo {
        position: relative;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        border-bottom: 2px solid var(--hair);
        background: rgba(255, 255, 255, 0.04);
    }

    .profile-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 220ms ease, transform 300ms ease;
        transform: scale(1.01);
    }

    .profile-photo img.alt {
        opacity: 0;
    }

    .project-card:hover .profile-photo img.main {
        opacity: 0;
    }

    .project-card:hover .profile-photo img.alt {
        opacity: 1;
    }

    .project-card:hover .profile-photo img {
        transform: scale(1.06);
    }

    .card-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    .project-card .meta {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px;
    }

    .avatar {
        width: 48px;
        height: 48px;
        border: 2px solid var(--hair);
        display: grid;
        place-items: center;
        color: var(--acc);
        font-family: OSTitle;
        font-size: 1.1rem;
        flex: 0 0 auto;
        background: rgba(255, 255, 255, 0.05);
    }

    .project-card .footer {
        margin-top: 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .project-card .footer span {
        opacity: 0.85;
        font-size: 0.95rem;
    }

    .project-card .footer a {
        text-decoration: none;
        white-space: nowrap;
    }

    .project-card .footer a:hover {
        text-decoration: dotted underline 1px;
    }

    @media (max-width: 860px) {
        container { margin-top: 8%; }

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