:root {
    --ink: #161814;
    --muted: #5b6258;
    --paper: #f7f8f5;
    --surface: #ffffff;
    --line: #dce2d8;
    --green: #176f5f;
    --green-dark: #0d3f36;
    --coral: #c94436;
    --gold: #d2a62f;
    --shadow: 0 22px 70px rgba(22, 24, 20, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--green);
    font-weight: 700;
    text-decoration-color: rgba(23, 111, 95, 0.28);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--coral);
    text-decoration-color: rgba(201, 68, 54, 0.45);
}

.page-shell,
.site-nav-inner {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 248, 245, 0.92);
    border-bottom: 1px solid rgba(22, 24, 20, 0.09);
    backdrop-filter: blur(18px);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.navbar-brand {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--green);
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav-links a {
    color: var(--ink);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.site-nav-links a:hover {
    background: rgba(23, 111, 95, 0.1);
    color: var(--green-dark);
}

.profile-hero {
    position: relative;
    min-height: clamp(560px, 84vh, 760px);
    display: flex;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(14, 16, 12, 0.86) 0%, rgba(14, 16, 12, 0.62) 42%, rgba(14, 16, 12, 0.2) 100%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.profile-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 12px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
    z-index: -1;
}

.profile-hero-content {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 92px 0 84px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-hero .eyebrow {
    color: #ffcf5a;
}

.profile-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(4.4rem, 14vw, 9rem);
    line-height: 0.88;
    font-weight: 950;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.45;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.button-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    text-decoration: none;
}

.button-link {
    background: #ffffff;
    color: var(--ink);
    padding: 0 22px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.button-link:hover {
    background: #ffcf5a;
    color: var(--ink);
}

.text-link {
    color: #ffffff;
    padding: 0 4px;
}

.text-link:hover {
    color: #ffcf5a;
}

.intro-strip {
    background: var(--green-dark);
    color: #ffffff;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 72px);
    padding: 48px 0;
    align-items: center;
}

.intro-grid h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.02;
    font-weight: 920;
    letter-spacing: 0;
}

.intro-grid p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.13rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: clamp(36px, 6vw, 78px);
    padding: 72px 0 88px;
}

.profile-aside {
    position: sticky;
    top: 100px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.profile-photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    object-fit: cover;
}

.stat-block {
    border-left: 5px solid var(--green);
    background: var(--surface);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 12px 36px rgba(22, 24, 20, 0.08);
}

.stat-block.accent {
    border-left-color: var(--coral);
}

.stat-block span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-block strong {
    display: block;
    margin-top: 4px;
    font-size: 1.75rem;
    line-height: 1.05;
}

.stat-block p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.story-flow {
    display: grid;
    gap: 28px;
}

.story-section,
.contact-section,
.blog-page,
.blog-post {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 16px 50px rgba(22, 24, 20, 0.07);
}

.story-section h2,
.contact-section h2,
.blog-page h1,
.blog-post h1 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.06;
    font-weight: 920;
    letter-spacing: 0;
}

.story-section p,
.contact-section p,
.blog-post p,
.blog-page p {
    color: var(--muted);
}

.story-section p:last-child,
.contact-section p:last-child {
    margin-bottom: 0;
}

.clean-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 22px 0;
    list-style: none;
}

.clean-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.clean-list li::before {
    content: "";
    position: absolute;
    top: 0.74em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--gold);
}

.link-row,
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.link-row a,
.project-links a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 12px 14px;
    text-decoration: none;
}

.link-row a:hover,
.project-links a:hover {
    border-color: rgba(201, 68, 54, 0.45);
    background: #fff;
}

.project-links a {
    flex: 1 1 240px;
}

.project-links span,
.project-links strong {
    display: block;
}

.project-links span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-links strong {
    margin-top: 4px;
    color: var(--ink);
    font-size: 1.1rem;
}

.feature-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.05fr);
    gap: clamp(24px, 5vw, 48px);
    align-items: center;
    background: var(--ink);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.feature-section p {
    color: rgba(255, 255, 255, 0.78);
}

.feature-section a {
    color: #ffcf5a;
}

.feature-section figure {
    margin: 0;
}

.feature-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.feature-section figcaption {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.contact-section {
    background: var(--green-dark);
    color: #ffffff;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.82);
}

.contact-section a {
    color: #ffcf5a;
}

.blog-shell {
    width: min(860px, calc(100% - 40px));
    margin-inline: auto;
    padding: 72px 0 88px;
}

.blog-list {
    display: grid;
    gap: 16px;
}

.blog-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 14px 42px rgba(22, 24, 20, 0.07);
}

.blog-card:hover {
    border-color: rgba(23, 111, 95, 0.35);
    color: var(--ink);
    transform: translateY(-2px);
}

.blog-card-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.blog-card h2 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.2;
}

.blog-card time {
    color: var(--coral);
    font-weight: 850;
    white-space: nowrap;
}

.blog-card p {
    margin: 12px 0 0;
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
    padding: 28px 20px;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 860px) {
    .site-nav-inner {
        min-height: 64px;
    }

    .site-nav-links {
        gap: 2px;
    }

    .site-nav-links a {
        padding: 7px 8px;
        font-size: 0.86rem;
    }

    .profile-hero {
        min-height: 620px;
        background-position: 62% center;
    }

    .intro-grid,
    .content-layout,
    .feature-section {
        grid-template-columns: 1fr;
    }

    .content-layout {
        padding-top: 44px;
    }

    .profile-aside {
        position: static;
        grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
        align-items: stretch;
    }

    .profile-photo {
        grid-row: span 2;
        height: 100%;
    }
}

@media (max-width: 560px) {
    .page-shell,
    .site-nav-inner,
    .profile-hero-content,
    .blog-shell {
        width: min(100% - 28px, 1120px);
    }

    .site-nav-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 12px 0;
    }

    .site-nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .profile-hero {
        min-height: 590px;
        background-position: 68% center;
    }

    .profile-hero-content {
        padding-bottom: 58px;
    }

    .profile-hero h1 {
        font-size: 4.15rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button-link,
    .text-link {
        width: 100%;
    }

    .intro-grid {
        padding: 34px 0;
    }

    .intro-grid h2 {
        font-size: 1.95rem;
    }

    .intro-grid p:last-child {
        font-size: 1rem;
    }

    .profile-aside {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: min(260px, 100%);
    }

    .story-section,
    .contact-section,
    .blog-page,
    .blog-post,
    .blog-card {
        padding: 22px;
    }

    .blog-card-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}
