@font-face {
    font-family: 'Iosevka Aile';
    src: url('/assets/fonts/Iosevka-Aile-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iosevka Aile';
    src: url('/assets/fonts/Iosevka-Aile-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


html {
    font-size: 20px;
    /* base size */
}

body {
    font-family: 'Iosevka Aile', serif;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.65;
    letter-spacing: -0.03em;

    max-width: 740px;
    /* ⬅️ wider than before */
    margin: 2rem auto;
    /* ⬅️ reduced top/bottom spacing */
    padding: 0 1rem;
    /* ⬅️ slightly more than 1rem for breathing room */

    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    font-weight: normal;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

p,
ul,
ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

code,
pre {
    font-family: 'Courier New', Courier, monospace;
    background: #f4f4f4;
    padding: 0.2em 0.4em;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    text-underline-offset: 0.2em;
    text-decoration-color: #40E0D0;
    text-decoration-thickness: 0.1em;
}

header {
    margin-bottom: 2rem;
}

nav a {
    margin-right: 1rem;
    text-decoration: none;
    color: inherit;
}

nav a:hover {
    text-decoration: underline;
}

main>*+* {
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
        padding: 1rem;
    }
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.site-title a {
    font-weight: 900;
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: inherit;
}

nav a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    nav {
        justify-content: flex-start;
    }
}

.timeline {
    position: relative;
    margin-left: 2rem;
    border-left: 2px solid #ccc;
    padding-left: 2rem;
    margin-top: 2rem;
}

.timeline .event {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.timeline .dot {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    left: -27px;
    /* aligns dot with vertical line */
    top: 4px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #ccc;
}

.timeline .content {
    margin-left: 0.5rem;
}

.timeline .date {
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
}

.timeline .role {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.timeline .company {
    font-style: italic;
    margin-bottom: 0.25rem;
}

.timeline .desc {
    font-size: 0.95rem;
    color: #333;
    margin-top: 0.25rem;
}