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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Source Serif Pro", "Noto Serif SC", "Iowan Old Style", Charter, Georgia, serif;
    background-color: #f5f4ed;
    color: #1f1d18;
    line-height: 1.45;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #f5f4ed;
    border-bottom: 1px solid #d4d1c5;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.logotype {
    font-family: "Source Serif Pro", "Noto Serif SC", serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    color: #1B365D;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: #6b665b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #1B365D;
}

.nav-link.active {
    color: #1B365D;
}

/* ===== SECTIONS ===== */
.section {
    padding: 72px 0;
}

.section-header {
    margin-bottom: 48px;
}

.kicker {
    font-family: "Source Serif Pro", "Noto Serif SC", serif;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1B365D;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 16px;
    color: #6b665b;
    font-weight: 400;
}

/* ===== ABOUT ===== */
.about-section {
    padding-top: 80px;
    border-bottom: 1px solid #d4d1c5;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #d4d1c5;
    background-color: #efeee5;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio {
    max-width: 520px;
}

.name {
    font-family: "Source Serif Pro", "Noto Serif SC", serif;
    font-size: 36px;
    font-weight: 500;
    color: #1f1d18;
    line-height: 1.1;
    margin-bottom: 6px;
}

.tagline {
    font-size: 15px;
    color: #1B365D;
    margin-bottom: 16px;
    font-weight: 400;
}

.description {
    font-size: 16px;
    color: #6b665b;
    line-height: 1.55;
    margin-bottom: 32px;
}

.skills {
    text-align: center;
}

.skills .kicker {
    margin-bottom: 16px;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    padding: 4px 14px;
    background-color: #efeee5;
    border: 1px solid #d4d1c5;
    font-size: 12px;
    color: #1f1d18;
    font-weight: 400;
    transition: border-color 0.2s, background-color 0.2s;
}

.skill-tag:hover {
    border-color: #1B365D;
    background-color: #f5f4ed;
}

/* ===== PROJECTS ===== */
.projects-section {
    background-color: #efeee5;
    border-bottom: 1px solid #d4d1c5;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background-color: #d4d1c5;
    border: 1px solid #d4d1c5;
}

.project-card {
    background-color: #f5f4ed;
    padding: 28px 28px 24px;
    transition: background-color 0.2s;
}

.project-card:hover {
    background-color: #faf9f5;
}

.project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.project-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.project-name {
    font-family: "Source Serif Pro", "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 500;
    color: #1B365D;
    line-height: 1.2;
}

.project-stack {
    font-size: 11px;
    color: #6b665b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
    padding: 2px 8px;
    background-color: #efeee5;
    border: 1px solid #d4d1c5;
}

.project-desc {
    font-size: 14px;
    color: #6b665b;
    line-height: 1.5;
    margin-bottom: 14px;
}

.project-meta {
    margin-bottom: 14px;
}

.meta-item {
    font-size: 11px;
    color: #1B365D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.link-github,
.link-demo {
    font-size: 13px;
    font-weight: 400;
    color: #1B365D;
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-github:hover,
.link-demo:hover {
    opacity: 0.7;
}

.link-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: #d4d1c5;
    margin: 0 12px;
}

/* ===== CONTACT ===== */
.contact-section {
    background-color: #f5f4ed;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 56px;
    background-color: #efeee5;
    border: 1px solid #d4d1c5;
    text-decoration: none;
    transition: border-color 0.2s;
}

.contact-card:hover {
    border-color: #1B365D;
}

.contact-icon {
    color: #1B365D;
}

.contact-label {
    font-family: "Source Serif Pro", "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 500;
    color: #1f1d18;
}

.contact-handle {
    font-size: 13px;
    color: #6b665b;
    font-weight: 400;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #f5f4ed;
    border-top: 1px solid #d4d1c5;
    padding: 40px 0;
    text-align: center;
}

.footer-rule {
    width: 40px;
    height: 1px;
    background-color: #d4d1c5;
    margin: 0 auto 20px;
}

.colophon {
    font-size: 12px;
    color: #6b665b;
    font-weight: 400;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .about-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .skills {
        text-align: left;
    }

    .skill-list {
        justify-content: flex-start;
    }

    .avatar {
        width: 160px;
        height: 160px;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 860px) {
    .section {
        padding: 88px 0;
    }

    .name {
        font-size: 42px;
    }
}