/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: hsl(45, 33%, 94%);
    --text-color: hsl(0, 0%, 13%);
    --link-color: #6779c1;
    --accent-color: hsl(45, 33%, 70%);
    --container-padding: 48px 24px;
    --font-serif: 'EB Garamond', serif;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 2.5rem;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    animation: fadeIn 0.6s ease-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    margin: 60px 0 80px;
}

.hero h1 {
    font-size: 7rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

/* Bio Section */
.bio {
    margin-bottom: 100px;
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.bio-intro {
    font-size: 3rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.3;
}

.bio-text p {
    margin-bottom: 30px;
    text-align: justify;
}

.bio-image {
    position: relative;
}

.bio-image img {
    width: 100%;
    height: auto;
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    transform: translate(10%, -10%);
}

/* Typography */
.semibold-text {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.underline-link {
    position: relative;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.underline-link:hover {
    text-decoration-color: var(--link-color);
    opacity: 0.8;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 80px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-size: 2.2rem;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--link-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.6);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-color);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    :root {
        --container-padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 6rem;
    }
    
    .bio-intro {
        font-size: 2.7rem;
    }
}

/* When content stacks (narrow viewports) */
@media (max-width: 900px) {
    .bio-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bio-image {
        max-width: 300px;
        margin: 40px auto;
    }
    
    .bio-image img {
        transform: translate(0, 0);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .hero {
        margin: 40px 0 60px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .bio-intro {
        font-size: 2.5rem;
    }
    
    .bio-text p {
        text-align: left;
        font-size: 2.2rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-around;
    }
    
    .nav-link {
        font-size: 2rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 30px 16px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .bio-intro {
        font-size: 2.2rem;
    }
    
    .bio-text p {
        font-size: 2rem;
    }
    
    .main-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 1.8rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .container {
        animation: none;
    }
}