@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-2: #21262d;
    --border: #30363d;
    --text: #e6edf3;
    --muted: #7d8590;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --tag-bg: #1f2937;
    --tag-border: #374151;
    --tag-hover: #273549;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

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

/* ── Layout ── */

.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ── Profile card (index) ── */

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border);
    object-fit: cover;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-location {
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.profile-bio {
    color: var(--muted);
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.7;
}

/* ── Divider ── */

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--border);
    margin: 32px 0;
}

/* ── Interests ── */

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 16px;
    text-align: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 100px;
    background-color: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.tag:hover {
    background-color: var(--tag-hover);
    border-color: var(--accent);
    color: var(--accent-hover);
    text-decoration: none;
}

.tag-icon {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ── Social links ── */

.socials {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.social-btn:hover {
    background-color: var(--surface-2);
    border-color: var(--accent);
    color: var(--text);
    text-decoration: none;
}

.social-btn i {
    font-size: 1em;
    color: var(--muted);
}

/* ── Sub-page ── */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.content-block {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.content-block p + p {
    margin-top: 16px;
}

/* ── Responsive ── */

@media (max-width: 480px) {
    .page {
        padding: 40px 20px 60px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .profile-avatar {
        width: 96px;
        height: 96px;
    }

    .page-title {
        font-size: 1.5rem;
    }
}
