html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #fdf3f5;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    color: #2b2b2b;
}

h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 17px;
}

p, li {
    line-height: 1.7;
}

.container {
    width: 700px;
    max-width: 100%;
    margin: 60px auto;
    padding: 50px 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.container img,
.container video,
.container pre,
.container table {
    max-width: 100%;
    height: auto;
}

.center {
    text-align: center;
}

.center > p {
    margin-bottom: 10px;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.left h3 {
    margin-top: 40px;
    margin-bottom: 16px;
}

.left h3:first-of-type {
    margin-top: 0;
}

.section {
    margin-top: 60px;
}

.section:first-of-type {
    margin-top: 0;
}

/* --- Navbar --- */

.navbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 10;
}

.navbar a {
    text-decoration: none;
    color: #555;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.navbar a:hover,
.navbar a.active {
    color: #d17a91;
}

.section,
#education {
    scroll-margin-top: 80px;
}

/* --- Rows (title + date) --- */

.row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 16px;
}

.row h4 {
    margin: 0;
}

.row p {
    margin: 0;
    white-space: nowrap;
}

.thick {
    font-weight: bold;
}

/* --- Links row --- */

.links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.links a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #444;
    background-color: #fff;
    border: 1px solid #eee;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.links a:hover {
    background-color: #fbe9ec;
}

.links img {
    width: 18px;
    height: 18px;
}

/* --- Project / Experience entries --- */

.project-entry {
    margin-top: 32px;
}

.project-entry:first-of-type {
    margin-top: 16px;
}

.project-entry ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.project-entry li {
    margin-bottom: 6px;
}

/* --- Tech tags --- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.tags span {
    font-size: 13px;
    color: #555;
    background: #f2f2f2;
    padding: 4px 10px;
    border-radius: 12px;
}

.tags .thick {
    background: none;
    padding: 0;
    color: #333;
    font-size: 14px;
}

/* --- Project images --- */

.project-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.project-images figure {
    margin: 0;
    width: 100%;
}

.project-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.project-images figcaption {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

hr {
    border: none;
    border-top: 1px solid #eee;
}

/* --- Mobile --- */

@media (max-width: 600px) {
    .container {
        margin: 0 auto;
        border-radius: 0;
        padding: 40px 24px;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .row p {
        white-space: normal;
    }

    .navbar {
        gap: 14px;
        justify-content: flex-start;
        overflow-x: auto;
    }
}