/* ---------- Base ---------- */

:root {
    --ink: #202722;
    --muted: #626d64;
    --green: #304b3d;
    --green-deep: #23382d;
    --lime: #d8ef70;
    --coral: #e87358;
    --canvas: #f5f7f1;
    --paper: #ffffff;
    --line: #dce3d9;
    --content-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 4px;
}

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

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

h1,
h2,
h3 {
    line-height: 1.25;
}

h1,
h2 {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 500;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: 4.5rem;
}

h2 {
    max-width: 760px;
    margin-bottom: 32px;
    font-size: 2.75rem;
}

h3 {
    font-size: 1.12rem;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(12px);
}

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

.brand {
    color: var(--ink);
    font-size: 1.04rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand:hover {
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

nav a {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 58px;
    background-color: var(--canvas);
    background-image:
        linear-gradient(rgb(48 75 61 / 5%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(48 75 61 / 5%) 1px, transparent 1px);
    background-size: 38px 38px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    column-gap: 72px;
}

.hero-content > * {
    min-width: 0;
}

.hero-content > .eyebrow,
.hero-content > h1,
.hero-description {
    grid-column: 1;
}

.hero-description {
    max-width: 620px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--green);
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 650;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--green);
}

.button-primary:hover {
    color: #ffffff;
    background: var(--green-deep);
}

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

.button-secondary:hover {
    background: #e7eddf;
}

.hero-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    padding: 28px;
    border: 1px solid #c5d0c3;
    background: var(--paper);
    box-shadow: 12px 12px 0 var(--lime);
    animation: arrive 650ms ease-out both;
}

.diagram-label,
.diagram-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.diagram-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
}

.diagram-label span {
    width: 9px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--coral);
}

.diagram-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: center;
}

.diagram-node {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fafbf8;
}

.diagram-node strong {
    font-size: 0.9rem;
}

.diagram-node small {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.diagram-node-accent {
    border-color: var(--green);
    background: var(--lime);
}

.diagram-connector {
    height: 1px;
    background: var(--green);
}

.diagram-footnote {
    margin-top: 20px;
    font-size: 0.62rem;
}

.highlights {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    list-style: none;
    font-size: 0.84rem;
}

.highlights li::before {
    content: "/";
    margin-right: 8px;
    color: var(--coral);
    font-weight: 800;
}

/* ---------- Sections ---------- */

.section {
    padding: 86px 0;
}

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

.card {
    padding: 24px 0 26px;
    border-top: 1px solid var(--line);
}

.card h3 {
    margin-bottom: 8px;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
}

.section-muted {
    background: var(--canvas);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
}

.experience-grid > div {
    padding: 24px 26px 0 0;
}

.experience-grid > div + div {
    padding-left: 26px;
    border-left: 1px solid var(--line);
}

.experience-grid p {
    color: var(--muted);
}

/* ---------- Profile ---------- */

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 84px;
}

.profile-content h2 {
    margin-bottom: 0;
}

.profile-content p {
    color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-section {
    padding: 78px 0;
    background: var(--lime);
}

.contact-section .eyebrow {
    color: var(--green);
}

.contact-section h2 {
    max-width: 750px;
}

.contact-section p:not(.eyebrow) {
    max-width: 700px;
}

.contact-placeholder {
    width: fit-content;
    margin-top: 24px;
    padding-top: 8px;
    border-top: 1px solid rgb(32 39 34 / 35%);
    color: var(--green-deep);
    font-size: 0.88rem;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: 25px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-inner p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ---------- Responsive layout ---------- */

@keyframes arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.35rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 0.9fr);
        column-gap: 36px;
    }

    .hero-visual {
        padding: 20px;
    }

    .diagram-flow {
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
    }

    .diagram-node {
        min-height: 100px;
        padding: 9px;
    }
}

@media (max-width: 820px) {
    .hero-content {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .hero-visual {
        grid-column: 1;
        grid-row: auto;
        margin: 12px 10px 30px 0;
    }

    .highlights {
        grid-column: 1;
    }

    .diagram-flow {
        grid-template-columns: 1fr;
    }

    .diagram-node {
        min-height: 72px;
        padding: 12px 14px;
    }

    .diagram-connector {
        justify-self: center;
        width: 1px;
        height: 12px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 0;
        padding: 14px 0;
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    nav {
        justify-content: center;
        gap: 8px 18px;
    }

    nav a {
        font-size: 0.84rem;
    }

    .hero {
        padding: 58px 0 48px;
    }

    h1 {
        max-width: 100%;
        font-size: 2.25rem;
        hyphens: auto;
        overflow-wrap: normal;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 62px 0;
    }

    .card-grid,
    .experience-grid,
    .profile-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .experience-grid > div,
    .experience-grid > div + div {
        padding: 20px 0 0;
        border-left: 0;
    }

    .profile-content {
        gap: 24px;
    }

    .contact-section {
        padding: 58px 0;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------- Legal pages ---------- */

.legal-content {
    max-width: 800px;
}

.legal-content h1 {
    margin-bottom: 40px;
}

.legal-content h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.legal-content p {
    color: var(--color-muted);
}

.legal-content a {
    overflow-wrap: anywhere;
}

.legal-back {
    margin-top: 50px;
}

