:root {
    --ink: #193231;
    --ink-soft: #47605f;
    --paper: #fbfaf7;
    --paper-alt: #f0eee7;
    --white: #ffffff;
    --primary: #356965;
    --primary-dark: #234c49;
    --accent: #d9a16f;
    --accent-soft: #f0dcc8;
    --border: rgba(25, 50, 49, 0.14);
    --shadow: 0 24px 70px rgba(25, 50, 49, 0.13);
    --radius: 24px;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

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

.section {
    padding: 108px 0;
    scroll-margin-top: 88px;
}

.section--light {
    background: var(--paper-alt);
}

.section--dark {
    color: var(--white);
    background: var(--ink);
}

.skip-link,
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--white);
    background: var(--ink);
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid rgba(25, 50, 49, 0.08);
    background: rgba(251, 250, 247, 0.92);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
}

.site-brand__name {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-brand__role {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.custom-logo {
    display: block;
    max-height: 58px;
    width: auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
}

.menu-toggle__line {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
}

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: clamp(50px, 7vw, 105px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section--dark .eyebrow,
.section-heading--light .eyebrow {
    color: var(--accent);
}

.hero h1,
.section-heading h2,
.contact h2,
.entry h1,
.page-main h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3.4rem, 8vw, 7.1rem);
}

.hero__intro {
    max-width: 690px;
    margin: 30px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.12rem, 2vw, 1.34rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--white);
    background: var(--primary);
}

.button--primary:hover,
.button--primary:focus {
    background: var(--primary-dark);
}

.button--secondary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.button--secondary:hover,
.button--secondary:focus {
    background: var(--accent-soft);
}

.button--full {
    width: 100%;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hero__meta li {
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero__visual {
    position: relative;
}

.hero__visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -30px 40px 60px -45px;
    border-radius: 48% 52% 44% 56%;
    background: var(--accent-soft);
    transform: rotate(-6deg);
}

.hero__visual img,
.photo-placeholder {
    min-height: 570px;
    width: 100%;
    border-radius: 48% 48% 24px 24px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    border: 1px solid rgba(25, 50, 49, 0.12);
    background:
        radial-gradient(circle at 70% 20%, rgba(217, 161, 111, 0.45), transparent 30%),
        linear-gradient(145deg, #dfe8e5, #f5eee7);
    text-align: center;
}

.photo-placeholder span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.photo-placeholder small {
    margin-top: 6px;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 60px;
}

.section-heading h2,
.contact h2,
.entry h1,
.page-main h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.prose,
.value-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}

.prose {
    font-size: 1.05rem;
}

.prose p:first-child {
    margin-top: 0;
}

.value-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
}

.value-card__number {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.value-card h3 {
    margin: auto 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1.12;
}

.value-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.timeline {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border);
}

.timeline__item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    padding: 34px 0;
    border-bottom: 1px solid var(--border);
}

.timeline__year {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.timeline__item h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
}

.timeline__item p {
    max-width: 700px;
    margin: 0;
    color: var(--ink-soft);
}

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

.project-card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.project-card--placeholder {
    background: rgba(255, 255, 255, 0.04);
}

.project-card__type {
    margin: 0 0 40px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.project-card h3 {
    margin: auto 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.15;
}

.project-card p,
.project-card li {
    color: rgba(255, 255, 255, 0.74);
}

.project-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.project-card li {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 0.78rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 0.72fr);
    align-items: start;
    gap: 80px;
}

.contact h2 {
    max-width: 770px;
}

.contact p {
    max-width: 720px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.contact-link span {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-link strong {
    overflow-wrap: anywhere;
}

.contact-card .button {
    margin-top: 24px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.8);
    background: #102423;
}

.site-footer__inner {
    min-height: 210px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.site-footer strong {
    color: var(--white);
}

.site-footer p {
    margin: 4px 0 0;
}

.site-footer__links {
    display: flex;
    gap: 22px;
}

.site-footer__links a {
    color: var(--white);
}

.site-footer__legal {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.page-main {
    min-height: 70vh;
    padding: 100px 0;
}

.page-main__inner {
    max-width: 900px;
}

.entry__header {
    margin-bottom: 48px;
}

.entry__content {
    font-size: 1.05rem;
}

.entry-card {
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.entry-card h2 {
    margin-bottom: 8px;
}

@media (max-width: 1050px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-card {
        min-height: auto;
    }
}

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

    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 80px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
        background: var(--paper);
    }

    .site-nav--open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-nav a {
        display: block;
        padding: 10px 12px;
    }

    .hero {
        min-height: auto;
    }

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

    .hero__visual {
        order: -1;
        max-width: 520px;
    }

    .hero__visual img,
    .photo-placeholder {
        min-height: 430px;
    }

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

    .timeline__item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__legal {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(calc(100% - 26px), var(--max-width));
    }

    .site-header__inner {
        min-height: 72px;
    }

    .site-nav {
        top: 72px;
        right: 13px;
        left: 13px;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero__visual img,
    .photo-placeholder {
        min-height: 360px;
    }

    .prose,
    .value-card,
    .project-card,
    .contact-card {
        padding: 24px;
    }
}
