:root {
    --bg: #0d1117;
    --card: #0f1720;
    --border: #30363d;
    --muted: #8b949e;
    --accent: #58a6ff;
    --text: #c9d1d9;
    --gap: 12px;
    --radius: 10px;
    --side-width: 450px;
    --ui-font: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --fz-sm: 13px;
    --fz-base: 15px;
    --fz-lg: 18px;
}

/* Box sizing and base */
*, *::before, *::after {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ui-font);
    font-size: var(--fz-base);
    color: var(--text);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    padding: clamp(12px,2.5vw,28px);
    color-scheme: dark;
}

/* Layout */
.container {
 /*   width: 100%;*/
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0,var(--side-width)) 1fr;
    gap: var(--gap);
    align-items: start;
    align-content: start;
}

@media (max-width:880px) {
    .container {
        grid-template-columns: 1fr
    }
}

/* Card (aside) */
.panel {
  
    padding: clamp(14px,2vw,20px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Avatar */
.avatar {
    width: 280px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Header text */
.profile-header {
    text-align: center
}

.hname {
    margin: 8px 0 4px;
    font-size: clamp(18px,2.2vw,22px);
    line-height: 1.1;
    font-weight: 700;
}

.bio {
    margin: 0;
    color: var(--muted);
    font-size: var(--fz-base);
    line-height: 1.45;
    word-break: break-word;
}

/* Stats */
.stats-widget {
    margin-top: 18px
}

.stats-list {
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: calc(var(--radius) - 4px);
    border: 1px solid rgba(255,255,255,0.02);
    background: transparent;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    gap: 12px;
    border-radius: 6px;
}

    .stat-row + .stat-row {
        border-top: 1px dashed rgba(255,255,255,0.02)
    }

.stat-label {
    color: var(--muted);
    font-size: var(--fz-sm)
}

.stat-value {
    color: var(--text);
    font-weight: 600;
    font-size: var(--fz-base)
}

/* Age */
.age-value {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 900;
    color: #b8a5ff;
}

.age-int {
    font-size: 1.2rem;
    line-height: 1
}

.age-frac {
    font-size: 0.95rem;
    opacity: 0.95;
    transform: translateY(-0.06em)
}

/* Social links */
.social-links {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--muted);
    text-decoration: none;
    transition: transform .18s ease, color .18s ease;
    border-left: 1px solid rgba(255,255,255,0.03);
}

    .social:first-child {
        border-left: none
    }

    .social svg {
        width: 20px;
        height: 20px;
        display: block;
        fill: currentColor
    }

    .social:hover {
        color: var(--accent);
        transform: translateY(-3px)
    }

    .social:active {
        transform: translateY(0)
    }

/* Footer */
.footer {
    text-align: center;
    margin-top: 6px;
    font-size: var(--fz-sm);
    color: var(--muted)
}

/* Accessibility utilities */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important;
        transform: none !important
    }
}

/* Light mode */
@media (prefers-color-scheme:light) {
    :root {
        --bg: #f6f8fa;
        --card: #ffffff;
        --border: #e1e4e8;
        --muted: #6b7280;
        --text: #0f1720;
        --accent: #0969da;
    }
}
