:root {
    --maroon: #641c2b;
    --deep-maroon: #3e111c;
    --beige: #f3ecdf;
    --paper: #fbf9f5;
    --ink: #292421;
    --muted: #756d64;
    --line: #d9cec0;
    --leaf: #184d3b;
    --sage: #8a9a56;
    --coral: #d36f5f;
    --gold: #b8872e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    margin: 0 auto;
    max-width: 1120px;
    padding-left: 32px;
    padding-right: 32px;
}

:root {
    --electric: #00a6a6;
    --hot-pink: #e84a82;
    --sun: #f3c969;
}

.site-header {
    background: linear-gradient(90deg, var(--deep-maroon), var(--maroon) 48%, var(--electric));
    border-bottom: 4px solid var(--sun);
}

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

.wordmark {
    color: var(--paper);
    font-size: 1.35rem;
    font-weight: bold;
}

.nav-links,
.footer-links {
    display: flex;
    color: var(--maroon);
    gap: 24px;
}

.nav-links {
    color: var(--paper);
}

.nav-links,
.footer,
.footer-links,
.button {
    font-family: Georgia, "Times New Roman", serif;
}

.nav-links {
    color: var(--paper);
    font-size: 0.83rem;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover,
.reading-item a:hover {
    color: var(--maroon);
}

.hero {
    min-height: 610px;
    overflow: hidden;
    position: relative;
    padding-bottom: 110px;
    padding-top: 150px;
    background: linear-gradient(120deg, #f6d8c8, #d6eee6 52%, #f3e1a9);
    border-bottom: 4px solid var(--electric);
}

.hero > *:not(.hero-botanical) {
    animation: rise-in 700ms both;
    position: relative;
    z-index: 1;
}

.hero > *:nth-child(2) {
    animation-delay: 90ms;
}

.hero > *:nth-child(3) {
    animation-delay: 180ms;
}

.hero > *:nth-child(4) {
    animation-delay: 270ms;
}

.hero-botanical {
    animation: float-gently 8s ease-in-out infinite;
    filter: drop-shadow(12px 15px 0 rgba(0, 166, 166, 0.2));
    max-width: 310px;
    opacity: 0.92;
    position: absolute;
    right: 18px;
    top: 126px;
    width: 34vw;
}

.kicker,
.section-label,
.reading-type,
.project-meta {
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.kicker {
    color: var(--coral);
}
.section-label {
    color: var(--gold);
}

.reading-type {
    color: var(--leaf);
}

.project-meta {
    color: var(--sage);
}

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

h1 {
    color: var(--deep-maroon);
    font-size: clamp(3.2rem, 8vw, 7.4rem);
    font-weight: normal;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin: 28px 0;
    max-width: 900px;
    text-shadow: 5px 5px 0 rgba(232, 74, 130, 0.16);
}

h1 em {
    color: var(--maroon);
    font-style: italic;
}

.hero-copy {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 520px;
}

.text-link {
    border-bottom: 1px solid var(--maroon);
    color: var(--maroon);
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    margin-top: 24px;
    padding-bottom: 4px;
}

.text-link span {
    font-size: 1.1rem;
    margin-left: 10px;
}

.section {
    padding-bottom: 110px;
    padding-top: 110px;
}

.split-section {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 80px;
    grid-template-columns: 1fr 2fr;
}

h2 {
    color: var(--deep-maroon);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: normal;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 22px;
}

.split-section div {
    max-width: 620px;
}

.split-section div p {
    color: var(--muted);
    font-size: 1.1rem;
}

.section-tinted {
    background: linear-gradient(120deg, #f6d8c8, #d6eee6 52%, #f3e1a9);
    border-bottom: 4px solid var(--electric);
}

.affiliations-section {
    background: #fff5cf;
    border-bottom: 4px solid var(--gold);
}

.affiliations-heading {
    align-items: end;
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.affiliations-heading h2 {
    margin-bottom: 0;
}

.affiliations-heading p {
    color: var(--muted);
    margin-bottom: 8px;
    max-width: 250px;
}

.affiliation-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
}

.affiliation {
    animation: rise-in 700ms both;
    background: #f7f0e8;
    border: 3px solid var(--deep-maroon);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 30px;
    box-shadow: 10px 10px 0 var(--sun);
    transition: border-color 160ms ease, transform 160ms ease;
}

.affiliation:hover {
    border-color: var(--maroon);
    transform: translateY(-3px);
}

.affiliation:nth-child(2) {
    animation-delay: 140ms;
    box-shadow: 10px 10px 0 var(--electric);
}

.affiliation-mark {
    align-items: center;
    display: flex;
    height: 104px;
    justify-content: center;
    margin: -30px -30px 24px;
    overflow: hidden;
    transition: filter 220ms ease, transform 220ms ease;
}

.affiliation:hover .affiliation-mark {
    filter: saturate(1.15);
    transform: scale(1.025);
}

.saluki-mark {
    background: var(--maroon);
}

.spartan-mark {
    background: var(--leaf);
}

.affiliation-mark img {
    display: block;
    max-height: 76px;
    max-width: 72%;
    object-fit: contain;
}

.affiliation strong {
    color: var(--deep-maroon);
    font-size: 1.22rem;
    font-weight: normal;
}

.affiliation span {
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    margin-top: 28px;
}

.journey-section {
    background: linear-gradient(135deg, #cde9e0, #f5d6dd 55%, #f7e5ac);
    border-bottom: 4px solid var(--hot-pink);
}

.journey-heading {
    align-items: end;
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.journey-heading h2 {
    margin-bottom: 0;
}

.journey-heading p {
    color: var(--muted);
    margin-bottom: 8px;
    max-width: 220px;
}

.journey-map {
    animation: float-gently 9s ease-in-out infinite;
    display: block;
    margin-top: 44px;
    width: 100%;
}

.project-grid,
.reading-list {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
}

.project {
    animation: rise-in 650ms both;
    border-top: 3px solid var(--coral);
    background: rgba(255, 253, 249, 0.72);
    box-shadow: 9px 9px 0 rgba(232, 74, 130, 0.16);
    padding: 20px 22px 22px;
}

.project:nth-child(2) {
    animation-delay: 120ms;
    border-color: var(--leaf);
    box-shadow: 9px 9px 0 rgba(0, 166, 166, 0.18);
}

.project-affiliation {
    align-items: center;
    display: flex;
    gap: 14px;
    margin: 22px 0 30px;
}

.project-mark {
    align-items: center;
    border-radius: 50%;
    display: flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
    overflow: hidden;
    transition: transform 220ms ease;
}

.project:hover .project-mark {
    transform: rotate(-8deg) scale(1.08);
}

.project-mark img {
    max-height: 42px;
    max-width: 76%;
}

.project-affiliation strong,
.project-affiliation small {
    display: block;
}

.project-affiliation strong {
    color: var(--deep-maroon);
    font-size: 0.98rem;
    font-weight: normal;
}

.project-affiliation small {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 3px;
}

.project-number {
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.75rem;
}

.project h3,
.reading-item h3 {
    color: var(--deep-maroon);
    font-size: 1.45rem;
    font-weight: normal;
    margin: 28px 0 10px;
}

.project p,
.reading-item > p:not(.reading-type) {
    color: var(--muted);
}

.project-meta {
    display: block;
    margin-top: 26px;
}

.project-link {
    color: var(--maroon);
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    margin-top: 18px;
    text-decoration: underline;
    text-decoration-color: var(--hot-pink);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.project-link:hover {
    color: var(--deep-maroon);
}

.project-link span {
    margin-left: 5px;
}

.reading-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
}

.reading-heading p {
    color: var(--muted);
    margin-bottom: 26px;
}

.reading-list {
    grid-template-columns: repeat(3, 1fr);
}

.reading-item {
    animation: rise-in 650ms both;
    background: rgba(255, 253, 249, 0.7);
    border-top: 1px solid var(--line);
    box-shadow: 6px 6px 0 rgba(184, 135, 46, 0.24);
    padding: 20px 18px 24px;
}

.reading-item:nth-child(2) {
    animation-delay: 100ms;
}

.reading-item:nth-child(3) {
    animation-delay: 200ms;
}

.reading-item h3 {
    margin-top: 20px;
}

.reading-item a {
    color: var(--maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
}

.reading-item a span {
    margin-left: 5px;
}

.resume-section {
    background: linear-gradient(120deg, var(--deep-maroon), var(--maroon) 55%, #8b2752);
    border-top: 5px solid var(--sun);
    color: white;
}

.resume-content {
    align-items: end;
    display: flex;
    justify-content: space-between;
}

.resume-section h2,
.resume-section .section-label {
    color: var(--beige);
}

.resume-section p:not(.section-label) {
    color: #d8c9bb;
    margin-bottom: 0;
}

.button {
    background: var(--beige);
    color: var(--deep-maroon);
    display: inline-block;
    font-size: 0.8rem;
    padding: 12px 18px;
    white-space: nowrap;
}

.button:hover {
    background: white;
}

.button span {
    margin-left: 12px;
}

.footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.78rem;
    justify-content: space-between;
    min-height: 100px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-gently {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

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

@media (max-width: 700px) {
    .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 550px;
        padding-bottom: 80px;
        padding-top: 110px;
    }

    .hero-botanical {
        bottom: 14px;
        max-width: 190px;
        opacity: 0.7;
        right: -30px;
        top: auto;
        width: 46vw;
    }

    .split-section,
    .project-grid,
    .reading-list {
        gap: 42px;
        grid-template-columns: 1fr;
    }

    .split-section {
        padding-top: 75px;
    }

    .section {
        padding-bottom: 75px;
        padding-top: 75px;
    }

    .reading-heading,
    .journey-heading,
    .affiliations-heading,
    .resume-content,
    .footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .footer {
        justify-content: center;
    }

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