:root {
    --color-bg: #fefdfb;
    --color-text: #111c;
    --color-muted: #535862;
    --color-subtle: #717680;
    --color-accent: #f54a00;
    --color-border: #ececec;
    --color-border-strong: #d5d7da;

    --font-body: "Inter", sans-serif;
    --font-display: "Fraunces", serif;

    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-9: 36px;
    --space-10: 40px;
    --space-13: 52px;
    --space-16: 64px;
    --space-20: 80px;

    --radius-md: 12px;
    --radius-full: 999px;
    --content-width: 680px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

.site-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 100vh;
}

.visual-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

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

.content-panel {
    padding: var(--space-16) var(--space-6);
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-9);
}

.hero-copy {
    flex: 1;
}

.avatar {
    display: none;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    padding-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--color-accent);
    font-size: 1.05rem;
}

.contact-text a,
.timeline-role .company,
.contributions a,
.email {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.section {
    margin-top: var(--space-13);
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -21.5px;
    top: 22px;
    bottom: -32px;
    width: 1px;
    background: var(--color-border-strong);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-strong);
}

.timeline-item.current::before {
    background: var(--color-accent);
}

.timeline-item.current .timeline-date {
    color: var(--color-accent);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 2px;
}

.timeline-role {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.4;
}

.contributions {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.contributions li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.contributions .icon {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--color-muted);
}

.contributions span {
    line-height: 1.55;
    color: var(--color-muted);
}

.contributions em {
    font-style: normal;
    color: var(--color-text);
    font-weight: 500;
}

.contact-text {
    margin-bottom: var(--space-3);
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .site-layout {
        grid-template-columns: 1fr;
    }

    .visual-panel {
        position: static;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .content-panel {
        padding: var(--space-10) var(--space-4);
    }

    h1 {
        font-size: 2.9rem;
    }

}
