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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #e2e8f0;
    background-color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
header {
    padding: 48px 0 24px;
}

nav {
    display: flex;
    gap: 32px;
    justify-content: center;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #f1f5f9;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 0 100px;
    border-bottom: 1px solid #1e293b;
}

/* Profile photo */
.profile-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    position: relative;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #334155;
}

.profile-photo .initials {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 48px;
    font-weight: 600;
    border-radius: 50%;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #f8fafc;
}

.tagline {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 24px;
}

.intro {
    max-width: 520px;
    margin: 0 auto 32px;
    color: #cbd5e1;
}

.links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    border: 1px solid #334155;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.links a:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #f8fafc;
}

/* Sections */
.section {
    padding: 80px 0;
    border-bottom: 1px solid #1e293b;
}

.section:last-of-type {
    border-bottom: none;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: #f8fafc;
}

.section p {
    color: #cbd5e1;
    margin-bottom: 16px;
}

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

.section p a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.section p a:hover {
    color: #bfdbfe;
}

/* Substack link */
.substack-link {
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.substack-link:hover {
    background: #cbd5e1;
}

/* Contact links */
.contact-links {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.contact-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #334155;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.contact-links a:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #f8fafc;
}

/* Footer */
footer {
    padding: 48px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .profile-photo .initials {
        font-size: 40px;
    }

    .section {
        padding: 60px 0;
    }

    nav {
        gap: 24px;
    }

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

    .links a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
