:root {
    color-scheme: dark;
    --background: #0f172a;
    --surface: #172033;
    --surface-hover: #1d2940;
    --text: #f3f0e3;
    --muted: #b8c1d1;
    --accent: #7dd3fc;
    --accent-hover: #e0f2fe;
    --border: rgba(125, 211, 252, 0.2);
    --content-width: 68rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

header {
    padding-block: 1.25rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

a {
    color: var(--accent);
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.2em;
}

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

nav a {
    padding: 0.25rem 0;
    text-decoration: none;
}

nav a[aria-current="page"] {
    color: var(--text);
    border-bottom: 2px solid var(--accent);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 0.15rem;
}

main {
    flex: 1;
    padding-block: clamp(3rem, 8vw, 7rem);
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
    margin-top: 0;
}

.hero {
    max-width: 50rem;
    margin-inline: auto;
    text-align: center;
}

.hero p,
.page-intro {
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-links a {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--surface);
    text-decoration: none;
}

.hero-links a:hover,
.hero-links a:focus-visible {
    background: var(--surface-hover);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.about-copy {
    min-width: 0;
}

.content-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.profile-image {
    margin: 0;
}

.image-placeholder {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px dashed var(--accent);
    border-radius: 1rem;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

.profile-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    border-radius: 1rem;
}

.profile-image figcaption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.empty-state {
    max-width: 42rem;
    margin-inline: auto;
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    text-align: center;
}

footer {
    padding-block: 2rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

footer p {
    margin: 0;
}

@media (max-width: 42rem) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: min(100%, 20rem);
        margin-inline: auto;
        grid-row: 1;
    }
}

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