:root {
    --paper: #f8f7f3;
    --ink: #2e2e2e;
    --green: #0e2a22;
    --sage: #a3b29e;
    --sand: #d9d3c6;
    --line: #d5d7d0;
    --muted: #58615c;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65
}

a {
    color: inherit
}

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

h1, h2, h3 {
    font-family: var(--serif);
    color: #171b19;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 22px
}

h1 {
    font-size: clamp(32px, 5.7vw, 59px)
}

h2 {
    font-size: clamp(23px, 3.4vw, 35px)
}

h3 {
    font-size: 20px
}

p {
    margin: 0 0 22px
}

button, input, textarea {
    font: inherit
}

button, a, input, textarea {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #627c55;
    outline-offset: 4px
}

.container {
    width: min(1200px, calc(100% - 88px));
    margin-inline: auto
}

.narrow {
    max-width: 790px
}

.section {
    padding-block: 24px 35px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .17em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 20px
}

.lead {
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.5;
    max-width: 720px
}

.small {
    font-size: 14px;
    color: var(--muted)
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper)
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    color: #171b19
}

.brand img {
    width: 49px;
    height: 40px;
    border-right: 1px solid var(--line);
    padding-right: 8px
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 25px
}

.nav nav > a:not(.btn) {
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap
}

.nav nav > a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 7px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-decoration: none;
    background: var(--green);
    color: white;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 13px 23px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.3
}

.btn:hover {
    background: #24483c
}

.btn:disabled {
    opacity: .6;
    cursor: wait
}

.menu-toggle {
    display: none
}

.hero {
    display: grid;
    grid-template-columns:1.1fr 1fr;
    align-items: center;
    gap: 24px;
    padding-block: 85px 65px;
    min-height: 520px
}

.hero h1 {
    max-width: 670px
}

.hero > img {
    width: 100%
}

.topic-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-block: 20px;
    border-block: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .14em;
    font-weight: 600;
    text-align: center
}

.topic-strip span {
    color: #849081
}

.split {
    display: grid;
    grid-template-columns:1.15fr .85fr;
    gap: 60px;
    align-items: start;
    margin-top: 1px
}

.visual-panel {
    background: #edf0e8;
    padding: 38px 30px;
    text-align: center;
    border: 1px solid var(--line)
}

.visual-panel p {
    font-family: var(--serif);
    font-size: 23px;
    margin: 20px 0 0
}

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

.feature {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 24px;
    text-decoration: none;
    transition: background .15s
}

.feature:hover {
    background: #eef0e9
}

.feature img {
    height: 130px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 26px
}

.feature p {
    flex: 1
}

.text-link {
    font-weight: 600;
    text-underline-offset: 4px;
    color: var(--green)
}

.page-head {
    padding-block: 75px 25px
}

.page-head h1 {
    max-width: 1000px
}

.intro {
    font-size: 20px;
    padding-bottom: 20px
}

.bio {
    display: grid;
    grid-template-columns:290px 1fr;
    gap: 65px;
    border-top: 1px solid var(--line)
}

.bio aside img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 25px
}

.bio h2 {
    font-size: 34px
}

.prose p {
    line-height: 1.75
}

.prose h2 {
    margin-top: 42px
}

.model {
    padding: 24px;
    background: #eef0e9;
    border: 1px solid var(--line);
    border-radius: 7px
}

.model ol {
    list-style: none;
    padding: 0;
    margin: 0
}

.model li {
    position: relative;
    background: var(--paper);
    padding: 13px;
    text-align: center;
    border: 1px solid var(--sage);
    border-radius: 4px;
    margin-bottom: 24px;
    line-height: 1.4
}

.model li:not(:last-child):after {
    content: '↓';
    position: absolute;
    top: 100%;
    left: calc(50% - 7px);
    color: var(--green)
}

.model li:last-child {
    background: var(--green);
    color: white;
    margin-bottom: 0
}

.model li span {
    display: block;
    font-size: 13px
}

.service-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 20px
}

.service {
    border-top: 1px solid var(--line);
    padding: 25px 15px 10px 0
}

.service h3 {
    margin-bottom: 12px
}

.note {
    border-left: 3px solid var(--sage);
    background: #eef0e9;
    padding: 18px 22px;
    font-size: 15px;
    margin: 30px 0
}

.resources {
    padding-left: 20px;
    margin-bottom: 35px
}

.resources li {
    margin: 12px 0
}

.ajax-form {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px 22px
}

.full {
    grid-column: 1/-1
}

.ajax-form .note, .ajax-form p {
    margin: 0
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0
}

.field label {
    font-size: 15px;
    font-weight: 600
}

.field small {
    color: var(--muted)
}

input, textarea {
    width: 100%;
    border: 1px solid #a9b0a7;
    border-radius: 4px;
    background: #fff;
    padding: 12px;
    color: var(--ink)
}

textarea {
    resize: vertical;
    min-height: 120px
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.submit {
    display: flex;
    align-items: center;
    gap: 20px
}

.form-status {
    font-size: 14px
}

.thank-you {
    min-height: 55vh
}

.skip {
    position: absolute;
    left: -10000px
}

.skip:focus {
    left: 12px;
    top: 12px;
    background: white;
    z-index: 10;
    padding: 10px
}

footer {
    border-top: 1px solid var(--line);
    background: #eef0e9;
    padding: 45px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns:1.5fr 1fr 1fr;
    gap: 25px
}

.footer-grid p {
    font-size: 15px;
    margin: 14px 0
}

.footer-grid > div:not(:first-child) a {
    display: block;
    text-decoration: none;
    margin: 7px 0;
    font-size: 14px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 25px
}

@media (max-width: 1000px) {
    .nav nav {
        gap: 14px
    }

    .brand {
        font-size: 20px
    }

    .container {
        width: calc(100% - 52px)
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
        background: none;
        border: 1px solid var(--line);
        padding: 8px 13px;
        border-radius: 4px
    }

    .nav {
        min-height: 70px;
        flex-wrap: wrap;
        padding-block: 12px
    }

    .nav nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 16px
    }

    .nav nav.open {
        display: flex
    }

    .hero, .split, .bio {
        grid-template-columns:1fr;
        gap: 24px
    }

    .hero {
        padding-block: 48px 30px;
        min-height: 0
    }

    .hero > img {
        max-width: 440px;
        margin: auto
    }

    .bio aside {
        max-width: 300px
    }

    .cards {
        grid-template-columns:1fr
    }

    .feature img {
        max-width: 320px;
        align-self: center
    }

    .footer-grid {
        grid-template-columns:1fr 1fr
    }

    .footer-grid > div:first-child {
        grid-column: 1/-1
    }

    .topic-strip {
        flex-wrap: wrap;
        gap: 8px
    }

    .page-head {
        padding-top: 45px
    }

    .section {
        padding-block: 30px 45px
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 36px)
    }

    .ajax-form, .service-grid, .footer-grid {
        grid-template-columns:1fr
    }

    .footer-bottom, .submit {
        flex-direction: column;
        align-items: flex-start
    }

    .brand {
        font-size: 19px
    }

    .hero h1 {
        font-size: 46px
    }

    .topic-strip {
        font-size: 9px
    }

    .field {
        grid-column: 1/-1
    }
}


/* ==========================================
   Mobile navigation
   ========================================== */

/* Hidden on desktop */
.menu-toggle {
    display: none;
}

/* Hamburger icon */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--green);
    border-radius: 1px;
    transform-origin: center;
    transition: transform 200ms ease,
    opacity 200ms ease;
}

/* Animate hamburger into a close icon */
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================
   Mobile-specific overrides
   ========================================== */

@media (max-width: 768px) {

    /* Remove the original Menu button styling */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;
        min-width: 44px;

        padding: 0;
        margin: 0;

        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;

        color: var(--green);
        cursor: pointer;

        flex-shrink: 0;

        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Accessible keyboard focus */
    .menu-toggle:focus-visible {
        outline: 2px solid var(--green);
        outline-offset: 3px;
    }

    /* Display Get in touch as a regular nav link */
    #nav-links a.nav-contact {
        display: block;

        width: auto;
        min-height: 0;

        padding: 0;
        margin: 0;

        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;

        color: var(--ink);

        font-family: inherit;
        font-size: inherit;
        font-weight: 400;
        line-height: inherit;
        letter-spacing: normal;

        text-align: left;
        text-transform: none;
        text-decoration: none;

        align-self: flex-start;
    }

    #nav-links a.nav-contact:hover {
        background: transparent;
        color: var(--green);
        text-decoration: none;
    }

}


/* Respect reduced-motion accessibility preferences */
@media (prefers-reduced-motion: reduce) {
    .hamburger span {
        transition: none;
    }
}

@media (max-width: 768px) {

    /* Consistent typography across all mobile menu entries */
    #nav-links a,
    #nav-links a.nav-contact {
        font-family: var(--sans);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: normal;
        text-transform: none;
        color: var(--ink);
    }

}

/* ==========================================
   Science page — opening quotation
   ========================================== */

.science-quote {
    margin: 0 0 48px;
    padding: 8px 0 8px 28px;
    border-left: 2px solid var(--sage);
}

.science-quote p {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(23px, 2.6vw, 32px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: var(--green);
}

.science-quote cite {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 768px) {

    .science-quote {
        padding-left: 20px;
        margin-bottom: 32px;
    }

}

/* ==========================================
   Introductory editorial text
   ========================================== */

.intro-copy > p {
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink);
}

@media (max-width: 768px) {

    .intro-copy > p {
        font-size: 18px;
        line-height: 1.65;
    }

}