@font-face {
    font-family: "mini-wakuwaku";
    src: url("./fonts/mini-wakuwaku-maru.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "mini-wakuwaku";
    src: url("./fonts/cyrillic.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "mini-wakuwaku";
    src: url("./fonts/cyrillic-ext.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
        U+FE2E-FE2F;
}

:root {
    --bg: #000000;
    --surface2: #1e2030;

    --text: #f1f5f9;
    --subtext: #94a3b8;

    --cyan: #38bdf8;
    --coral: #ff757f;
    --radius: 8px;
}

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

::selection {
    background: rgba(255, 117, 127, 0.25);
    color: var(--text);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family:
        "mini-wakuwaku",
        "M PLUS Rounded 1c",
        ui-sans-serif,
        system-ui,
        sans-serif;
    font-weight: 400;
    padding: 28px;
    -webkit-font-smoothing: antialiased;
}

main {
    width: 100%;
    max-width: 1300px;
    margin: auto;
}

.hero {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 45px;
}

.avatar {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.hero-text h1 {
    font-family: "mini-wakuwaku", "M PLUS Rounded 1c", sans-serif;
    font-size: clamp(4.5rem, 11vw, 7.5rem);
    line-height: 0.95;
    color: var(--cyan);
    font-weight: 400;
    letter-spacing: -1px;
}

.hero-text p {
    margin-top: 14px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--subtext);
    max-width: 650px;
}

.now-playing {
    color: var(--text);
    font-size: 1rem;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

section {
    padding-top: 14px;
    border-top: 1px solid var(--surface2);
}

section h2,
.section-title {
    display: inline-block;
    margin-bottom: 14px;
    font-family: "mini-wakuwaku", "M PLUS Rounded 1c", sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--cyan);
    letter-spacing: 0.5px;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--subtext);
}

.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.link-grid a,
.stack-list a {
    color: var(--coral);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 700;
    position: relative;
    width: fit-content;
}

.link-grid a:focus-visible,
.stack-list a:focus-visible,
.project-link:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
    border-radius: 4px;
}

.link-grid a::after,
.stack-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: var(--coral);
    transition: width 0.2s ease;
}

.link-grid a:hover::after,
.stack-list a:hover::after {
    width: 100%;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-list span,
.stack-list p {
    color: var(--subtext);
    font-size: 0.98rem;
    line-height: 1.6;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-link {
    display: grid;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    color: var(--text);
    text-decoration: none;
    position: relative;
    border-radius: 4px;
    transition: color 0.16s ease;
}

.project-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: var(--cyan);
    transition: width 0.2s ease;
}

.project-link:hover::after {
    width: 100%;
}

.project-name {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--coral);
}

.project-name small {
    color: var(--coral);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.project-link > small {
    color: var(--subtext);
    font-size: 0.9rem;
    line-height: 1.45;
}

.quote-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-block {
    min-width: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.refresh-button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--subtext);
    font: inherit;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.refresh-button span {
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.refresh-button:hover {
    background: var(--surface2);
    color: var(--cyan);
}

.refresh-button:hover span {
    transform: rotate(35deg);
}

.refresh-button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid var(--surface2);
    color: var(--subtext);
    font-size: 0.88rem;
}

.arch {
    color: var(--cyan);
}

.footer-dot {
    color: var(--surface2);
}

.footer-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.footer-badge img {
    image-rendering: pixelated;
    display: block;
}

.footer-badge:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

.pixel-badge {
    image-rendering: pixelated;
    display: block;
}

.badge-code {
    width: 100%;
    height: 48px;
    background: #000000;
    color: var(--subtext);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 6px 8px;
    font-family: monospace;
    font-size: 0.8rem;
    resize: none;
    cursor: pointer;
    margin-top: 4px;
}

.badge-code:focus {
    outline: 2px solid var(--cyan);
    color: var(--text);
}

@media (max-width: 1000px) {
    body {
        padding: 20px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .avatar {
        width: 170px;
        height: 170px;
    }

    .hero-text h1 {
        font-size: clamp(3rem, 14vw, 5rem);
        letter-spacing: -0.5px;
    }

    .hero-text p,
    p,
    .link-grid a,
    .stack-list a,
    .stack-list span,
    .project-name {
        font-size: 0.92rem;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .column {
        gap: 22px;
    }

    .project-name {
        gap: 6px;
    }

    .footer-badges {
        margin-left: 0;
    }
}
