/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 20px;
    line-height: 1.75;
    color: #2a2a2a;
    background-color: #faf9f6;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header and Navigation */
header {
    padding: 2.5rem 0 2rem;
    border-bottom: 0.5px solid #d4d1c8;
    background-color: #fefdfb;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2a2a2a;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-family: 'Inter', -apple-system, sans-serif;
}

.nav-links a {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8b3a3a;
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 3rem 3rem;
}

/* Hero section */
.hero {
    text-align: left;
    padding: 3rem 0 4rem;
    margin-bottom: 4rem;
    border-bottom: 0.5px solid #e8e5dd;
}

.hero h1 {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.tagline {
    font-size: 1.25rem;
    color: #6b6b6b;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
}

/* Introduction section */
.intro {
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #3a3a3a;
}

.intro p {
    margin-bottom: 1.75rem;
}

.intro p:first-child::first-letter {
    font-size: 4.5rem;
    line-height: 0.85;
    float: left;
    margin: 0.1rem 0.15rem 0 0;
    font-weight: 400;
    color: #8b3a3a;
}

/* Work page styles */
.page-title {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 4rem;
    letter-spacing: -0.3px;
    padding-bottom: 1.5rem;
    border-bottom: 0.5px solid #d4d1c8;
    text-transform: uppercase;
    color: #1a1a1a;
}

.project {
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 0.5px solid #e8e5dd;
}

.project:last-child {
    border-bottom: none;
}

.project-title {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.project-subtitle {
    font-size: 0.9rem;
    color: #8b8b8b;
    font-style: italic;
    margin-bottom: 1.75rem;
    letter-spacing: 0.3px;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 1.5rem;
}

.project-meta {
    font-size: 0.9rem;
    color: #6b6b6b;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid #e8e5dd;
    line-height: 1.7;
}

.project-meta p {
    margin-bottom: 0.5rem;
}

.project-meta strong {
    font-weight: 500;
    color: #2a2a2a;
    font-variant: small-caps;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* Bio page styles */
.bio-section {
    margin-bottom: 4rem;
}

.bio-section h2 {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bio-section p {
    margin-bottom: 1.5rem;
    line-height: 1.85;
    color: #3a3a3a;
    font-size: 1.05rem;
}

.bio-section ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.bio-section li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    color: #3a3a3a;
    font-size: 1.05rem;
}

.bio-section li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: #8b3a3a;
}

/* Contact page styles */
.contact-info {
    max-width: 600px;
    margin: 3rem auto;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #3a3a3a;
}

.contact-info a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #8b3a3a;
    transition: all 0.2s ease;
    font-weight: 500;
}

.contact-info a:hover {
    color: #8b3a3a;
    border-bottom-color: #1a1a1a;
}

/* Footer */
footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 3rem 4rem;
    text-align: center;
    color: #9b9b9b;
    font-size: 0.85rem;
    border-top: 0.5px solid #d4d1c8;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.3px;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    /* Stack images above text on mobile */
    .project-description img {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 280px;
        height: auto !important;
        margin: 0 auto 1.5rem auto !important;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 2rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .hero {
        padding: 2rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .intro p:first-child::first-letter {
        font-size: 3.5rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .project-title {
        font-size: 1.35rem;
    }

    main {
        padding: 3rem 2rem 4rem;
    }

    footer {
        padding: 2.5rem 2rem 3rem;
    }
}
