/* ===================================
   Reset & Base
   =================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #faf9f7;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h3 a {
    color: inherit;
    border-bottom: none;
}

h3 a:hover {
    border-bottom: 1px solid #2f2f2f60;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2f2f2f;
    text-decoration: none;
    border-bottom: 1px solid #2f2f2f60;
    transition: border-color 0.2s ease;
}

a:hover {
    border-bottom-color: #2f2f2f;
}

strong {
    font-weight: 600;
}

/* ===================================
   Sticky Header
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.header-content {
    max-width: 730px;
    margin: 0 auto;
    padding: 4rem 2rem 0.5rem;
    transition: padding 0.3s ease;
}

.site-header.scrolled .header-content {
    padding-top: 1.5rem;
}

.header-name {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
    color: #1a1a1a;
}

.site-header.scrolled {
    background-color: rgba(250, 249, 247, 0.8);
    border-bottom: 1px solid #e0ddd8;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===================================
   Layout
   =================================== */

main {
    max-width: 730px;
    margin: 0 auto;
    padding: 0.75rem 2rem 8rem;
}

section {
    margin-bottom: 0;
}

.section-divider {
    border: none;
    border-top: 1px solid #e0ddd8;
    margin: 5rem 0;
}

/* ===================================
   Identity Section
   =================================== */

.identity {
    margin-bottom: 0;
    padding-top: 0;
}

.identity h1 {
    font-size: 2.125rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.identity .supporting {
    font-size: 1.25rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===================================
   Current Focus Section
   =================================== */

.current-focus .intro {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.focus-list {
    list-style: none;
    padding-left: 0;
}

.focus-list li {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.focus-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b6f47;
    font-size: 1.5rem;
    line-height: 1.2;
}

.focus-list strong {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ===================================
   How I Work Section
   =================================== */

.principles {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.principle p {
    margin-bottom: 0;
    line-height: 1.7;
}

.principle strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* ===================================
   Experiments Section
   =================================== */

.experiments .intro {
    color: #4a4a4a;
    margin-bottom: 1rem;
}

.experiments .intro:last-of-type {
    margin-bottom: 4rem;
}

.experiment {
    margin-bottom: 5rem;
    padding-top: 1rem;
}

.experiment:last-child {
    margin-bottom: 0;
}

.experiment h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.experiment p {
    color: #4a4a4a;
    margin-bottom: 1.25rem;
}

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

/* ===================================
   Selected Work Section
   =================================== */

.selected-work .intro {
    color: #4a4a4a;
    margin-bottom: 4rem;
}

.project {
    margin-bottom: 5rem;
    padding-top: 1rem;
}

.project:last-child {
    margin-bottom: 0;
}

.project h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.project p {
    color: #4a4a4a;
    margin-bottom: 1.25rem;
}

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

.project .status {
    font-size: 0.9375rem;
    font-style: italic;
    color: #6b6b6b;
}

/* ===================================
   Contact Section
   =================================== */

.contact .intro {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.contact .linkedin {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 0;
}

/* ===================================
   Mobile Responsive
   =================================== */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-content {
        padding: 3rem 1.5rem 0.375rem;
    }

    .site-header.scrolled .header-content {
        padding-top: 1.25rem;
    }

    .header-name {
        font-size: 1.5rem;
    }

    main {
        padding: 0.625rem 1.5rem 6rem;
    }

    h1 {
        font-size: 2rem;
    }

    .identity {
        padding-top: 0;
    }

    .identity h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .section-divider {
        margin: 4rem 0;
    }

    .experiments .intro:last-of-type {
        margin-bottom: 3rem;
    }

    .experiment {
        margin-bottom: 4rem;
    }

    .experiment h3 {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }

    .selected-work .intro {
        margin-bottom: 3rem;
    }

    .project {
        margin-bottom: 4rem;
    }

    .project h3 {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }

    .principles {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 2.5rem 1.25rem 0.25rem;
    }

    .site-header.scrolled .header-content {
        padding-top: 1rem;
    }

    .header-name {
        font-size: 1.375rem;
    }

    main {
        padding: 0.5rem 1.25rem 5rem;
    }

    .identity {
        padding-top: 0;
    }

    .identity h1 {
        font-size: 1.875rem;
    }

    .section-divider {
        margin: 3rem 0;
    }

    .experiments .intro:last-of-type {
        margin-bottom: 2.5rem;
    }

    .experiment {
        margin-bottom: 3.5rem;
    }

    .experiment h3 {
        font-size: 1.25rem;
    }

    .selected-work .intro {
        margin-bottom: 2.5rem;
    }

    .project {
        margin-bottom: 3.5rem;
    }

    .project h3 {
        font-size: 1.25rem;
    }
}

