:root {
    --color-bg: #f5f3f0;
    --color-surface: #ffffff;
    --color-text-primary: #2a2826;
    --color-text-secondary: #6b6662;
    --color-accent: #8b7e74;
    --color-border: #d9d5d0;
    
    --font-display: 'Cormorant Garamond', serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

[data-theme="dark"] {
    --color-bg: #1a1816;
    --color-surface: #2a2826;
    --color-text-primary: #e8e6e3;
    --color-text-secondary: #a8a5a0;
    --color-accent: #9d8f84;
    --color-border: #3a3836;
}

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

/* Custom text selection colors */
::selection {
    background-color: var(--color-accent);
    color: var(--color-surface);
}

::-moz-selection {
    background-color: var(--color-accent);
    color: var(--color-surface);
}

/* Custom focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

body {
    font-family: var(--font-display);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 126, 116, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(42, 40, 38, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.375rem;
    transition: all 0.3s ease;
}

.theme-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0;
}

.theme-toggle button i {
    width: 18px;
    height: 18px;
}

.theme-toggle button:hover {
    background: var(--color-bg);
    color: var(--color-text-primary);
}

.theme-toggle button.active {
    background: var(--color-accent);
    color: var(--color-surface);
}

header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.site-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.site-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin: 3rem auto;
    opacity: 0.5;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.intro-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.intro-section .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.intro-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.intro-section p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}

.people-section {
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.person-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out backwards;
    position: relative;
}

.person-card:nth-child(2) { animation-delay: 0.5s; }
.person-card:nth-child(3) { animation-delay: 0.6s; }
.person-card:nth-child(4) { animation-delay: 0.7s; }
.person-card:nth-child(5) { animation-delay: 0.8s; }
.person-card:nth-child(6) { animation-delay: 0.9s; }
.person-card:nth-child(7) { animation-delay: 1.0s; }

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
}

.person-card:hover {
    transform: translateX(8px);
    border-color: var(--color-accent);
}

.person-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.person-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.person-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.person-link:hover {
    color: var(--color-text-primary);
}

.person-link i {
    width: 14px;
    height: 14px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.social-icon:hover {
    color: var(--color-text-primary);
    background: var(--color-bg);
}

.social-icon i {
    width: 16px;
    height: 16px;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

/* Tooltip styles */
.social-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.375rem 0.625rem;
    background: var(--color-text-primary);
    color: var(--color-surface);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.social-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--color-text-primary);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.social-icon:hover::before,
.social-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-text-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 2rem 1.5rem;
    }
    
    .person-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .person-card {
        padding: 1.5rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }
    
    header {
        padding-top: 3.5rem;
    }
}