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

:root {
    /* Light mode colors */
    --bg-color: #fafafa;
    --text-color: #1a1a1a;
    --text-secondary: #4a4a4a;
    --link-color: #1a1a1a;
    --link-hover: #666;
    --border-color: #e0e0e0;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #e8e8e8;
    --text-secondary: #b0b0b0;
    --link-color: #e8e8e8;
    --link-hover: #999;
    --border-color: #2a2a2a;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    border-top: 4px solid #000;
}

/* Header - name on left, links on right */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header .name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
    color: var(--text-color);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

/* Container - centered with max-width for readability */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    max-width: 600px;
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}

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

/* Typography hierarchy */
.name {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.description:last-of-type {
    margin-bottom: 0;
}

/* Details list - compact and clean */
.details {
    list-style: none;
    margin-bottom: 2.5rem;
    padding-left: 0;
}

.details li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.details li:last-child {
    margin-bottom: 0;
}

/* Links */
.link {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

.separator {
    color: var(--text-secondary);
    margin: 0 0.25rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    width: 100%;
}

.footer p {
    margin: 0;
}

/* Dark mode toggle - minimal, no UI chrome */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 100;
    opacity: 0.6;
}

.theme-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.theme-icon {
    display: block;
}

[data-theme="dark"] .theme-icon::before {
    content: "☾";
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 1.5rem;
    }

    .header .name {
        font-size: 1.25rem;
    }

    .header-links {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.9375rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        font-size: 1.125rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .header .name {
        font-size: 1.125rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .content {
        max-width: 100%;
    }
}

/* Print styles */
@media print {
    .theme-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
