:root {
    color-scheme: dark;

    --bg: #0b1120;
    --panel: #111827;
    --text: #e5e7eb;
    --muted: #aeb8c7;
    --heading: #ffffff;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --border: #293548;
    --focus: #fbbf24;

    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

/* Header */

header {
    border-bottom: 1px solid var(--border);
}

.site-header {
    width: min(calc(100% - 2rem), var(--max-width));
    min-height: 76px;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-name {
    color: var(--heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
}

.site-name:hover {
    color: var(--heading);
    text-decoration: underline;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

nav a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

nav a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Main content */

main {
    width: min(calc(100% - 2rem), var(--max-width));
    margin-inline: auto;
}

/* Intro */

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 4rem;

    padding-block: 6rem;
}

.intro-text {
    max-width: 680px;
}

h1,
h2 {
    color: var(--heading);
    line-height: 1.2;
}

h1 {
    margin: 0 0 1.5rem;

    font-size: clamp(2.8rem, 8vw, 4.8rem);
    letter-spacing: -0.04em;
}

h2 {
    margin-top: 0;
    margin-bottom: 1rem;

    font-size: 1.8rem;
}

.intro-text p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-size: 1.15rem;
}

/* Photo */

.profile-photo {
    margin: 0;
    width: 100%;
    max-width: 400px;
    justify-self: center;
}

.profile-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;

    border: 1px solid var(--border);
    border-radius: 1.25rem;
}

@media (max-width: 760px) {
    .profile-photo {
        max-width: 360px;
    }
}

/* Contact */

.contact {
    max-width: 720px;
    padding-block: 1rem 5rem;
}

.contact p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.contact a {
    font-weight: 600;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
}

footer p {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding-block: 2rem;

    color: var(--muted);
    font-size: 0.95rem;
}

/* Mobile */

@media (max-width: 760px) {
    .site-header {
        min-height: auto;
        padding-block: 1.25rem;

        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    nav ul {
        gap: 0.6rem 1rem;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 2.5rem;

        padding-block: 3.5rem;
    }

    h1 {
        font-size: clamp(2.5rem, 13vw, 3.5rem);
    }

    .photo-placeholder {
        min-height: 300px;
    }

    .profile-photo img {
        max-height: none;
    }

    .contact {
        padding-bottom: 3.5rem;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
