:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #202522;
    background: #f4f5f2;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    min-width: 320px;
    margin: 0;
    line-height: 1.7;
}

a {
    color: inherit;
}

.site-header {
    color: #fff;
    background: #111613;
}

.site-nav {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 clamp(1.25rem, 5vw, 5rem);
    background: #111613;
}

.site-brand {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #68756d;
    border-radius: 50%;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 1.7vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a,
.language-links a {
    color: #e5e9e5;
    font-size: 0.88rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.language-links a:hover,
.language-links a:focus-visible {
    color: #c0d7be;
}

.language-links {
    display: flex;
    flex: 0 0 auto;
    gap: 0.8rem;
}

.language-links a {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.hero {
    --hero-background: url("assets/images/backgrounds/the-fractal-forest.jpg");
    position: relative;
    display: grid;
    min-height: min(76vh, 52rem);
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    padding: 5rem 1.5rem;
    background: #1d2b22;
    text-align: center;
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgb(9 17 13 / 66%), rgb(9 17 13 / 42%)),
        var(--hero-background);
    background-position: center;
    background-size: cover;
    content: "";
}

.hero-content {
    width: min(100%, 54rem);
}

.portrait-placeholder {
    display: grid;
    width: clamp(6.5rem, 14vw, 9rem);
    aspect-ratio: 1;
    place-items: center;
    margin: 0 auto 1.5rem;
    border: 3px solid rgb(255 255 255 / 78%);
    border-radius: 50%;
    background: rgb(20 30 24 / 62%);
    box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 24%);
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-eyebrow,
.section-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #d4e1d1;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.7rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.12;
    text-wrap: balance;
}

.hero-roles {
    margin: 1.1rem 0 0;
    color: #e0e7e1;
    font-size: clamp(1rem, 2.3vw, 1.3rem);
    letter-spacing: 0.04em;
}

.hero-roles span {
    padding: 0 0.3em;
    color: #c6d8c2;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 2rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.hero-link:hover,
.hero-link:focus-visible {
    border-color: #fff;
    background: rgb(255 255 255 / 14%);
}

main {
    display: grid;
    width: min(100% - 2rem, 68rem);
    gap: 2rem;
    margin: 3rem auto;
}

.content-section {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid #e3e7e2;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 0.75rem 2.5rem rgb(28 39 31 / 5%);
}

.section-eyebrow {
    color: #55725a;
}

.content-section h2,
.life-graph-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.content-section h3 {
    margin: 2rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.content-section p {
    margin: 0 0 1rem;
    color: #4b534d;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.notes-section {
    padding-block: 1.75rem;
}

.notes-section h2 {
    font-size: 1.2rem;
}

.life-graph-section {
    overflow: hidden;
    border: 1px solid #29322d;
    border-radius: 0.8rem;
    background: #121214;
    color: #f5f6f4;
    box-shadow: 0 0.75rem 2.5rem rgb(28 39 31 / 8%);
}

.life-graph-heading {
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem) 0;
}

.life-graph-heading .section-eyebrow {
    color: #a9b5ac;
}

.life-graph-section h2 {
    margin-bottom: 0.5rem;
}

.life-graph-intro {
    max-width: 42rem;
    margin: 0;
    color: #c2cbc4;
}

.grafo-embed {
    display: block;
    width: 100%;
    height: 72rem;
    border: 0;
    background: #121214;
}

.site-footer {
    padding: 1.5rem 1rem 2rem;
    color: #d4d9d5;
    background: #111613;
    font-size: 0.85rem;
    text-align: center;
}

.site-footer p {
    margin: 0.25rem;
}

.page-heading {
    padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
    border: 1px solid #29322d;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #17231b, #111613);
    color: #fff;
}

.page-heading .section-eyebrow {
    color: #a9c1a9;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.page-content {
    min-height: 12rem;
}

.page-content p {
    color: #68716a;
}

@media (max-width: 600px) {
    .site-nav {
        min-height: 4rem;
        gap: 0.8rem;
        padding-inline: 1rem;
    }

    .nav-links {
        gap: 0.65rem 0.85rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .language-links {
        gap: 0.5rem;
    }

    .language-links a {
        font-size: 0.7rem;
    }

    .hero {
        min-height: 70vh;
        padding-inline: 1.25rem;
    }

    main {
        width: min(100% - 1.25rem, 68rem);
        gap: 1.25rem;
        margin-block: 1.5rem;
    }

}

@media (max-width: 800px) {
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 0.75rem;
    }

    .site-brand {
        margin-right: auto;
    }

    .language-links {
        margin-left: auto;
    }

    .nav-links {
        order: 1;
        width: 100%;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
