:root {
    --background: #f7f6f2;
    --primary: #162b3a;
    --secondary: #626d75;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--primary);
    font-family: -apple-system, BlinkMacSystemFont,
                 "Helvetica Neue", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
}

.landing {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    padding: 32px;
    text-align: center;
}

.landing-main {
    grid-row: 2;
}

.landing-main h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.main-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    font-size: 1rem;
}

.main-links a {
    padding: 10px 4px;
}

.landing-footer {
    grid-row: 3;
    align-self: end;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding-top: 32px;
    font-size: 0.8rem;
    color: var(--secondary);
}

@media (max-width: 600px) {
    .landing {
        padding: 24px 16px;
    }

    .main-links {
        gap: 28px;
        margin-top: 20px;
    }

    .landing-footer {
        gap: 20px;
    }
}

/* Profile page */

.profile-container {
    max-width: 1100px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 40px 48px 24px;
    display: flex;
    flex-direction: column;
}

.profile-header nav {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--secondary);
}

.profile-header a {
    display: inline-block;
    padding: 12px 0;
}

.profile-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
    gap: 48px;
    padding: 64px 0 48px;
}

.profile-intro h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.profile-subtitle {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary);
}

.profile-description {
    max-width: 680px;
    margin-top: 28px;
    font-size: 1rem;
    line-height: 1.8;
}

.profile-description p {
    margin: 0 0 16px;
}

.profile-description p:last-child {
    margin-bottom: 0;
}

.profile-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 2px;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid #d4d6d2;
}

.profile-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.section-content h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.section-content p {
    margin: 2px 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--secondary);
}

.profile-entry + .profile-entry {
    margin-top: 20px;
}

.interest-list p {
    margin: 0 0 8px;
    color: var(--primary);
}

.interest-list p:last-child {
    margin-bottom: 0;
}

.profile-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: auto;
    padding: 28px 0 0;
    border-top: 1px solid #d4d6d2;
    font-size: 0.8rem;
    color: var(--secondary);
}

@media (max-width: 760px) {
    .profile-container {
        padding: 24px;
    }

    .profile-intro {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 40px 0 32px;
    }

    .profile-photo {
        grid-row: 1;
        width: 140px;
    }

    .profile-description {
        margin-top: 24px;
    }

    .profile-section {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 0;
    }

    .profile-footer {
        gap: 20px;
    }
}
