@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #20231f;
    --muted: #6e746d;
    --paper: #f7f8f4;
    --white: #fff;
    --green: #c9ef74;
    --line: #e6e9e1;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-nav {
    display: flex;
    width: min(1120px, calc(100% - 48px));
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: var(--green);
    font-size: 1rem;
}

.brand-dot,
.accent {
    color: #739c29;
}

.nav-links {
    display: flex;
    gap: 34px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.hero {
    position: relative;
    display: grid;
    width: min(1120px, calc(100% - 48px));
    min-height: 530px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
    overflow: hidden;
    margin: 0 auto;
    padding: 48px 8.5%;
    border-radius: 28px;
    background: #eaf0e2;
}

.hero-copy,
.portrait-frame {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: #66842e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.hero h1,
.page-heading h1,
.contact-card h1 {
    margin-bottom: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.7rem, 6vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1.08;
}

.hero-intro {
    max-width: 455px;
    margin-bottom: 30px;
    color: #555d51;
    font-size: 1.06rem;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 15px;
    padding: 0 21px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.91rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    background: #3c4932;
}

.hero-email {
    margin: 16px 0 0;
}

.hero-email a {
    color: #536a34;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.portrait-frame {
    justify-self: center;
    width: min(100%, 300px);
    padding: 13px 13px 18px;
    transform: rotate(3deg);
    border: 1px solid rgba(32, 35, 31, 0.08);
    border-radius: 17px;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(49, 62, 36, 0.13);
}

.portrait-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.08;
    border-radius: 10px;
    background: #dce8ca;
    object-fit: cover;
}

.portrait-caption {
    display: block;
    padding-top: 12px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.hero-orbit {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(107, 137, 65, 0.14);
    border-radius: 50%;
}

.orbit-one {
    top: -130px;
    right: -40px;
}

.orbit-two {
    right: 12%;
    bottom: -214px;
    width: 370px;
    height: 370px;
}

.section {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0 104px;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.about-copy h2 {
    margin-bottom: 0;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -0.045em;
}

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

.project-card {
    min-height: 230px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.project-card-accent {
    background: #f0f4e8;
}

.project-number {
    display: inline-block;
    margin-bottom: 24px;
    color: #789346;
    font-size: 0.78rem;
    font-weight: 700;
}

.project-card h3 {
    margin-bottom: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
}

.project-card p {
    min-height: 52px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.91rem;
}

.tag {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 5px;
    background: #f1f3ed;
    color: #60685b;
    font-size: 0.72rem;
    font-weight: 600;
}

.site-footer {
    display: flex;
    width: min(1120px, calc(100% - 48px));
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.page-main {
    width: min(1000px, calc(100% - 48px));
    min-height: calc(100vh - 158px);
    margin: 0 auto;
    padding: 64px 0 88px;
}

.page-heading {
    max-width: 720px;
    margin: 0 auto 54px;
    text-align: center;
}

.page-heading h1,
.contact-card h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
}

.about-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 60px;
    max-width: 850px;
    margin: 0 auto;
}

.about-portrait {
    overflow: hidden;
    border-radius: 18px;
    background: #dce8ca;
}

.about-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 0.82;
    object-fit: cover;
}

.about-copy h2 {
    margin-bottom: 18px;
    font-size: 1.75rem;
}

.about-copy p {
    color: var(--muted);
}

.about-copy h3 {
    margin: 25px 0 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.skill-list li {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: #596052;
    font-size: 0.8rem;
}

.text-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.contact-main {
    display: grid;
    place-items: center;
}

.contact-card {
    width: min(100%, 690px);
    padding: 64px 40px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    text-align: center;
}

.contact-card h1 {
    margin-bottom: 20px;
}

.contact-intro {
    max-width: 470px;
    margin: 0 auto 28px;
    color: var(--muted);
}

.contact-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.77rem;
}

@media (max-width: 760px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 56px 9%;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-intro {
        margin-right: auto;
        margin-left: auto;
    }

    .portrait-frame {
        width: min(75%, 270px);
    }

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

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

    .project-card p {
        min-height: 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 560px;
    }

    .about-portrait {
        width: min(75%, 330px);
        justify-self: center;
    }

    .page-main {
        padding-top: 48px;
    }
}

@media (max-width: 480px) {
    .site-nav {
        width: calc(100% - 32px);
        min-height: 72px;
    }

    .nav-links {
        gap: 14px;
    }

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

    .hero,
    .section,
    .page-main,
    .site-footer {
        width: calc(100% - 32px);
    }

    .hero {
        border-radius: 18px;
        padding: 44px 7%;
    }

    .section {
        padding: 70px 0;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 15px 0;
    }

    .contact-card {
        padding: 44px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
