:root {
    --bg: #f3f5f9;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --soft: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --accent: #111827;
    --accent-soft: #e2e8f0;
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --max-width: 1280px;
    --sidebar-width: 320px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 35%),
            linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a:hover {
    text-decoration: underline;
}

p,
ul,
h1,
h2,
h3 {
    margin-top: 0;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 24px;
}

.sidebar__inner {
    position: sticky;
    top: 24px;
}

.profile-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.profile-card__eyebrow {
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soft);
}

.profile-card__name {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.profile-card__role {
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.profile-card__tagline {
    margin-bottom: 24px;
    color: var(--muted);
}

.side-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
}

.side-nav__link {
    display: block;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
}

.side-nav__link:hover,
.side-nav__link:focus-visible {
    background: var(--surface-strong);
    border-color: var(--line);
    color: var(--text);
    text-decoration: none;
    transform: translateX(2px);
}

.contact-card {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.contact-card__title {
    margin-bottom: 16px;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.contact-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.contact-list__item {
    display: grid;
    gap: 2px;
}

.contact-list__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--soft);
}

.content {
    display: grid;
    gap: 24px;
}

.hero,
.section {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.hero {
    padding: 32px;
}

.hero__top {
    margin-bottom: 28px;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero__title {
    max-width: 14ch;
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero__text {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section {
    padding: 28px 32px 32px;
}

.section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.section__index {
    margin: 0;
    min-width: 34px;
    color: var(--soft);
    font-weight: 700;
    font-size: 0.9rem;
}

.section__title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section__body {
    color: var(--muted);
}

.section__body p:last-child {
    margin-bottom: 0;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.skill-card {
    padding: 18px 18px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-strong);
}

.skill-card__title {
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text);
}

.timeline {
    display: grid;
    gap: 18px;
}

.job-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
}

.job-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.job-card__title {
    margin-bottom: 4px;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--text);
}

.job-card__period {
    margin: 0;
    color: var(--soft);
    font-size: 0.95rem;
}

.job-card__badge {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.job-card__list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.job-card__list li + li {
    margin-top: 8px;
}

.job-card__stack {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 0.95rem;
}

.split-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.compact-section {
    height: 100%;
}

.footer__container {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

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

    .sidebar__inner {
        position: static;
    }

    .side-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .page {
        padding: 16px;
        gap: 16px;
    }

    .profile-card,
    .hero,
    .section {
        padding: 22px;
        border-radius: 22px;
    }

    .hero__title {
        max-width: none;
    }

    .skill-grid,
    .split-sections,
    .side-nav {
        grid-template-columns: 1fr;
    }

    .job-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__container {
        place-items: center;
        flex-direction: column;
        gap: 16px;
    }
}

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

    .profile-card,
    .hero,
    .section {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .profile-card__name {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 2.2rem;
    }
}