:root {
    --background: #ffffff;
    --surface: #f6f4f2;
    --surface-strong: #ece8e4;
    --text: #242124;
    --muted: #69636a;
    --border: #ded8d3;
    --accent: #8b1e3f;
    --accent-dark: #65152e;
    --accent-soft: #f3e7eb;
    --shadow: 0 18px 45px rgba(46, 35, 39, 0.08);
    --radius: 20px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

code {
    padding: 0.12rem 0.35rem;
    border-radius: 5px;
    background: #eee8e5;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

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

.narrow {
    max-width: 850px;
}

.section {
    padding: 92px 0;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 999;
    padding: 10px 15px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #971f46;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

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

.site-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.25;
}

.brand-name {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-unit {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.77rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-link {
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.9rem, 6vw, 5.6rem);
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 3.7vw, 3.35rem);
}

h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

h4 {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

p {
    margin-top: 0;
}

.lead {
    color: #4d474d;
    font-size: clamp(1.08rem, 1.65vw, 1.28rem);
}

.hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 86% 16%, rgba(139, 30, 63, 0.12), transparent 30%),
        linear-gradient(180deg, #fff 0%, #fbfaf9 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
    gap: 80px;
    align-items: center;
}

.hero h1 span {
    display: block;
    margin-top: 10px;
    color: var(--accent);
    font-size: 0.45em;
    letter-spacing: 0;
}

.hero-degree {
    margin-top: -14px;
    color: var(--muted);
    font-weight: 700;
}

.hero-tagline {
    max-width: 720px;
    margin-bottom: 30px;
    color: #494349;
    font-size: 1.25rem;
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.hero-panel span {
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    font-weight: 750;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-row.compact {
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
    background: var(--accent);
    color: #fff;
}

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

.button-secondary {
    border-color: var(--border);
    background: #fff;
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.button-small {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 0.88rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.section-heading > p {
    max-width: 520px;
    color: var(--muted);
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.resource-card,
.tool-card,
.publication-highlight,
.selected-publication-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(46, 35, 39, 0.045);
}

.feature-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.card-number {
    margin-bottom: 36px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.feature-card p {
    color: var(--muted);
}

.feature-card .text-link {
    margin-top: auto;
}

.text-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.page-intro {
    padding-top: 100px;
    padding-bottom: 62px;
    background:
        radial-gradient(circle at 82% 15%, rgba(139, 30, 63, 0.10), transparent 30%),
        #fff;
}

.page-intro h1 {
    font-size: clamp(2.55rem, 5vw, 4.7rem);
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.section-nav a {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.research-section {
    scroll-margin-top: 90px;
}

.research-heading {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 50px;
}

.section-index {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

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

.align-start {
    align-items: start;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #514b51;
    font-size: 0.87rem;
    font-weight: 700;
}

.tag-list-large .tag {
    padding: 10px 15px;
    font-size: 0.94rem;
}

.link-list {
    display: grid;
    border-top: 1px solid var(--border);
}

.link-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible {
    color: var(--accent);
}

.subsection {
    margin-top: 60px;
}

.subsection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.subsection-heading p {
    color: var(--muted);
}

.resource-card {
    padding: 25px;
}

.resource-card p {
    color: var(--muted);
}

.publication-highlight {
    padding: 28px;
}

.publication-meta {
    color: var(--muted);
}

.role-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.tool-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
}

.tool-card p {
    color: var(--muted);
}

.tool-note,
.data-note {
    margin-top: 16px;
    padding-left: 13px;
    border-left: 3px solid var(--border);
    color: var(--muted);
    font-size: 0.87rem;
}

.selected-publication-list {
    display: grid;
    gap: 18px;
}

.selected-publication-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 24px;
    padding: 30px;
}

.publication-order {
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.publication-content h3 {
    max-width: 900px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.authors {
    margin-bottom: 9px;
    color: #514b51;
    font-size: 0.93rem;
}

.author-highlight {
    color: var(--accent-dark);
}

.publication-role-line {
    margin-top: 14px;
}

.publication-summary {
    max-width: 850px;
    margin-top: 15px;
    color: var(--muted);
}

.year-groups {
    display: grid;
    gap: 55px;
}

.year-group {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 30px;
}

.year-heading {
    position: sticky;
    top: 105px;
    align-self: start;
    color: var(--accent);
    font-size: 1.6rem;
}

.publication-list {
    border-top: 1px solid var(--border);
}

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

.publication-row h4 {
    max-width: 940px;
    margin-bottom: 12px;
    font-size: 1.17rem;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.inline-links a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.inline-links a:hover,
.inline-links a:focus-visible {
    text-decoration: underline;
}

.notice {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.notice-error {
    border-color: #d7a4b2;
    background: #fff3f6;
}

.site-footer {
    padding: 60px 0 24px;
    background: #242124;
    color: #f8f5f3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.site-footer .eyebrow {
    color: #eab1c1;
}

.site-footer h2 {
    margin-bottom: 10px;
    font-size: 2.1rem;
}

.site-footer p {
    color: #c9c3c7;
}

.contact-links {
    display: grid;
    gap: 11px;
}

.contact-links a,
.link-pending {
    color: #f8f5f3;
    text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: #eab1c1;
}

.link-pending {
    color: #a9a3a7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid #484148;
    font-size: 0.82rem;
}

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

@media (max-width: 900px) {
    .section {
        padding: 72px 0;
    }

    .hero-grid,
    .card-grid-three,
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-heading,
    .subsection-heading {
        align-items: start;
        flex-direction: column;
        gap: 5px;
    }

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

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

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .site-nav {
        width: 100%;
    }

    .nav-link {
        flex: 1;
        text-align: center;
    }

    .section {
        padding: 58px 0;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-panel,
    .card-grid-two {
        grid-template-columns: 1fr;
    }

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

    .selected-publication-card,
    .year-group {
        grid-template-columns: 1fr;
    }

    .year-heading {
        position: static;
        margin-bottom: -12px;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-bottom {
        gap: 8px;
    }
}
