/* CSS Custom Properties for theming */
:root {
    /* Light theme (default) */
    --color-bg: #faf9f7;
    --color-bg-subtle: #f0efed;
    --color-text: #1a1a1a;
    --color-text-muted: #666;
    --color-accent: #2563eb;
    --color-glow: rgba(37, 99, 235, 0.5);
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e5e5;

    /* Typography */
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f0f0f;
        --color-bg-subtle: #1a1a1a;
        --color-text: #f5f5f5;
        --color-text-muted: #a3a3a3;
        --color-accent: #60a5fa;
        --color-glow: rgba(96, 165, 250, 0.4);
        --color-accent-hover: #93c5fd;
        --color-border: #2a2a2a;
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Pushes footer down */
    gap: var(--space-lg);
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Background */
.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 25% 25%, var(--color-accent), transparent 30%),
                radial-gradient(circle at 75% 75%, var(--color-bg-subtle), transparent 40%);
    opacity: 0.3;
    animation: gradient-flow 20s ease-in-out infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Main Content */
main {
    max-width: 540px;
    width: 100%;
    text-align: center;
    padding-top: var(--space-xl); /* Add space at the top */
}

/* Hero Section */
.hero {
    margin-bottom: var(--space-lg);
}
.hero h1 {
    font-family: var(--font-serif);
    /* Fluid Typography: scales from 2.5rem to 3.5rem */
    font-size: clamp(2.5rem, 1.92rem + 2.88vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
}

.tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Bio Section */
.bio {
    margin-bottom: var(--space-lg);
}

.bio p {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-subtle);
    transition: all 0.2s ease;
    position: relative;
}

.social-links a:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-glow), 0 0 25px var(--color-glow);
}

.social-links a:active {
    transform: translateY(0);
}

.social-links .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Footer */
footer {
    padding-top: var(--space-xl);
    text-align: center;
}

footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-links a {
        justify-content: center;
    }
}

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

main {
    animation: fadeIn 0.6s ease-out;
}

.hero {
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.bio {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.social-links {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

