:root {
    --bg: #f4f3ef;
    --surface: #ffffff;
    --surface-soft: #eaf0f1;
    --text: #20272b;
    --muted: #5d686e;
    --line: #d5dbdd;
    --accent: #235f69;
    --accent-dark: #17464e;
    --accent-soft: #dce9eb;
    --max-width: 1120px;
    --text-width: 760px;
    --radius-large: 26px;
    --radius-medium: 18px;
    --shadow-soft: 0 14px 38px rgba(32, 39, 43, 0.065);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 700;
    letter-spacing: -0.018em;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--text);
    color: #fff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    border-bottom: 1px solid rgba(32, 39, 43, 0.12);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    min-height: 76px;
}

.site-name {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav,
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.site-nav {
    justify-content: center;
}

.site-nav a,
.projects-link,
.footer-nav a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover,
.projects-link:hover,
.footer-nav a:hover {
    color: var(--text);
}

.projects-link::after {
    content: " ↗";
}

.hero {
    padding: clamp(58px, 9vw, 112px) 0 clamp(64px, 8vw, 104px);
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 450px);
    align-items: center;
    gap: clamp(48px, 7vw, 88px);
}

.hero__label,
.project-card__type,
.status-card__label {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero__position {
    display: grid;
    gap: 2px;
    max-width: 700px;
    margin-bottom: 24px;
    color: var(--text);
    font-size: clamp(20px, 2.15vw, 26px);
    font-weight: 600;
    line-height: 1.28;
}

.hero__position span {
    display: block;
}

.hero__organization {
    display: block;
}

.hero__summary {
    max-width: 650px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(17px, 1.6vw, 19px);
    line-height: 1.58;
    text-wrap: pretty;
}

.hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.button--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button--primary:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.hero-photo {
    width: 100%;
    margin: 0;
    aspect-ratio: 1;
}

.hero-photo picture,
.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.hero-photo img {
    border: 1px solid rgba(32, 39, 43, 0.08);
    border-radius: var(--radius-large);
    background: #dedcd8;
    object-fit: contain;
    box-shadow: var(--shadow-soft);
}

.page-layout {
    padding-bottom: 0;
}

.content-section {
    display: grid;
    grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
    gap: clamp(36px, 7vw, 92px);
    padding: clamp(52px, 7vw, 84px) 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 24px;
}

.content-section:last-child {
    padding-bottom: clamp(52px, 7vw, 84px);
    border-bottom: 0;
}

.section-heading {
    align-self: start;
}

.section-number {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.prose,
.section-body {
    max-width: var(--text-width);
}

.prose p,
.section-body p {
    margin-bottom: 1.25em;
}

.prose p:last-child,
.section-body p:last-child {
    margin-bottom: 0;
}

.hero__summary,
.prose p,
.section-body p,
.project-card p,
.status-card p {
    text-wrap: pretty;
}

h1,
h2,
h3,
.hero__position,
.button,
.contact-card__value {
    hyphens: none;
    word-break: normal;
}

.section-intro {
    color: var(--muted);
}

.text-link-row {
    padding-top: 8px;
}

.text-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45em;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.text-link__label {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: text-decoration-color 150ms ease;
}

.text-link > span[aria-hidden="true"] {
    flex: 0 0 auto;
    text-decoration: none;
}

.text-link:hover .text-link__label,
.text-link:focus-visible .text-link__label {
    text-decoration-color: currentColor;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.expertise-list li {
    position: relative;
    padding: 12px 0 12px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.expertise-list li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.muted-note {
    margin-top: 26px;
    color: var(--muted);
    font-size: 15px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: var(--surface);
}

.project-card h3 {
    margin-bottom: 18px;
}

.project-card p {
    color: var(--muted);
}

.project-card .text-link {
    margin-top: auto;
    padding-top: 14px;
}

.status-card {
    grid-column: 2;
    margin-top: 24px;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid #c6d4d6;
    border-radius: var(--radius-medium);
    background: var(--surface-soft);
}

.status-card h3 {
    margin-bottom: 22px;
}

.status-card p {
    max-width: 760px;
    margin-bottom: 16px;
}

.status-card__date {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.status-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 24px;
}

.status-card__links a {
    font-size: 15px;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: var(--text-width);
    font-style: normal;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.contact-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.contact-card__label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.contact-card__value {
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 700;
}

.secondary-link {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.secondary-link a {
    color: var(--accent-dark);
    text-decoration-color: rgba(23, 70, 78, 0.35);
}

.site-footer {
    padding: 38px 0;
    background: var(--text);
    color: rgba(255, 255, 255, 0.76);
}

.site-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.site-footer p {
    margin-bottom: 5px;
    font-size: 14px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.footer-nav {
    justify-content: flex-end;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        padding-bottom: 16px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        width: min(100%, 450px);
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .status-card,
    .secondary-link {
        grid-column: 1;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .site-header__inner {
        min-height: 68px;
        gap: 18px;
    }

    .site-name {
        font-size: 15px;
    }

    .projects-link {
        font-size: 13px;
    }

    .site-nav {
        display: none;
    }

    .hero {
        padding-top: 46px;
    }

    .hero__position {
        font-size: 19px;
    }

    .hero-photo {
        width: 100%;
    }

    .expertise-list,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 52px 0;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

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

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .site-header,
    .hero__links,
    .site-footer,
    .status-card__links {
        display: none;
    }

    .hero {
        padding: 24px 0;
    }

    .hero__grid {
        grid-template-columns: 1fr 180px;
        gap: 24px;
    }

    .hero-photo img,
    .project-card,
    .contact-card,
    .status-card {
        box-shadow: none;
    }

    .content-section {
        grid-template-columns: 180px 1fr;
        padding: 28px 0;
        break-inside: avoid;
    }
}
