:root {
    --color-gradient-purple: #ad7fa8;
    --color-gradient-blue: #729fcf;
    --gradient-primary: linear-gradient(to right, #ad7fa8, #729fcf);
    
    /* Text colors matching variant.fund */
    --color-dark-gray: #444444;
    --color-muted: rgba(20, 20, 20, 0.7);
    --color-muted-extra: rgba(20, 20, 20, 0.5);
    
    /* Background colors */
    --bg-body: #EBEFF5;
    --bg-card: #fff;
    --bg-footer: #E3E8EE;
}

@font-face {
    font-family: 'Px Grotesk';
    src: url('../fonts/Px Grotesk Regular Font.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Px Grotesk';
    src: url('../fonts/Px Grotesk Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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

body {
    font-family: 'Px Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-dark-gray);
    background-color: var(--bg-body);
}

/* Hero Section */
header {
    padding: 3rem 4rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container .logo {
    display: block;
    max-width: 100%;
    height: auto;
}

header .tagline {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-dark-gray);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

/* Project Grid */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.project-card {
    flex-basis: 350px;
    flex-grow: 1;
    max-width: 100%;
    padding: 2rem;
    border: none;
    border-radius: 12px;
    background-color: var(--bg-card);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
}

.project-description {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.project-status {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--color-muted-extra);
}

.project-status span {
    font-weight: 600;
    color: var(--color-dark-gray);
}

.project-topics {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--color-muted-extra);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-links a {
    color: var(--color-gradient-blue);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: var(--color-gradient-purple);
    text-decoration: underline;
}

.project-links a:focus {
    color: var(--color-gradient-purple);
    text-decoration: underline;
    outline: 2px solid var(--color-gradient-blue);
    outline-offset: 2px;
}

/* About Section */
#about p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.divider {
    border-top: 1px solid var(--color-muted-extra);
    margin: 2rem 0;
}

.contact-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-icon {
    height: 23px;
    width: auto;
    transition: opacity 0.2s ease;
    display: block;
}

.contact-icons a {
    text-decoration: none;
    display: inline-block;
    vertical-align: top;
}

.contact-icons a:hover .contact-icon {
    opacity: 0.9;
}

.contact-icons a:focus {
    outline: 2px solid var(--color-gradient-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--bg-footer);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--color-muted-extra);
    font-size: 0.9rem;
}

/* Responsive Typography - Desktop */
@media (min-width: 768px) {
    header {
        padding: 4rem 4rem;
    }

    header .tagline {
        font-size: 2rem;
    }

    section h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    header {
        padding: 5rem 4rem;
    }

    header .tagline {
        font-size: 2rem;
    }

    .project-card {
        flex-basis: calc(50% - 0.125rem);
        max-width: calc(50% - 0.125rem);
    }
}

/* Ensure single card on last row stretches on larger screens */
@media (min-width: 1024px) {
    .project-grid:has(.project-card:last-child:nth-child(odd)) .project-card:last-child {
        flex-basis: 100%;
        max-width: 100%;
    }
}
