@font-face {
    font-family: 'Syne';
    font-style: normal;
    font-weight: 500 800;
    font-display: optional;
    src: local('Syne'), local('Syne Medium'),
        url('assets/fonts/syne-latin-500-800.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: local('IBM Plex Mono'), local('IBMPlexMono'),
        url('assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: optional;
    src: local('IBM Plex Mono Medium'), local('IBM Plex Mono'), local('IBMPlexMono-Medium'),
        url('assets/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}

:root {
    --bg: #e9e3d5;
    --bg-shape: #d4cab5;
    --surface: #f8f4ea;
    --surface-strong: #efe6d6;
    --text: #201a16;
    --muted: #50483f;
    --line: #201a16;
    --accent: #b0402c;
    --accent-soft: #d18857;
    --font-display: 'Syne', 'Avenir Next', 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-synthesis-weight: none;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: clamp(1rem, 2vw, 2rem) 0 2.5rem;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 500;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    text-decoration-skip-ink: none;
}

a:hover {
    color: var(--text);
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.7;
}

ul {
    margin: 0;
    padding: 0;
}

.screen {
    width: min(1120px, 93vw);
    margin: 0 auto;
    min-height: calc(100vh - clamp(1rem, 2vw, 2rem) - 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.profile-card {
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    height: 100%;
    box-shadow: 8px 8px 0 var(--line);
}

.identity {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: start;
}

.identity__text {
    min-width: 0;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    display: block;
    border: 2px solid var(--line);
    object-fit: cover;
}

.profile-card h1 {
    margin: 0 0 0.2rem;
    font-size: clamp(2rem, 3.8vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.subtitle {
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.label {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.handles {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.handles li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.handles li + li {
    padding-top: 0.55rem;
    border-top: 1px dashed var(--line);
}

.handles span {
    color: var(--muted);
}

.hero__content {
    background: var(--surface-strong);
    border: 2px solid var(--line);
    border-radius: 20px;
    padding: 1.6rem clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 3vw, 2.2rem);
    box-shadow: 12px 12px 0 var(--line);
    position: relative;
}

.hero__content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 14px;
    background: var(--accent-soft);
    border-left: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    border-top-right-radius: 18px;
}

.tiny-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.hero__content h2 {
    margin: 0 0 1.2rem;
    max-width: min(40rem, 100%);
    font-weight: 700;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: wrap;
}

.webrings-footer {
    align-self: center;
    display: flex;
    gap: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: lowercase;
    background: var(--surface);
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    box-shadow: 4px 4px 0 var(--line);
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .profile-card {
        height: auto;
    }

    .profile-card,
    .hero__content {
        box-shadow: 7px 7px 0 var(--line);
    }
}

@media (max-width: 600px) {
    .profile-card,
    .hero__content {
        padding: 1.3rem;
        box-shadow: 5px 5px 0 var(--line);
    }

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

    .webrings-footer {
        width: 100%;
        justify-content: center;
        gap: 0.85rem;
        padding: 0.55rem 0.7rem;
        flex-wrap: wrap;
    }
}
