:root {
    --ink: #172026;
    --muted: #627078;
    --paper: #f8f8f5;
    --panel: #fff;
    --line: #dce2df;
    --teal: #0c6970;
    --amber: #a7652c;
    --shadow: 0 12px 28px rgba(23, 32, 38, .07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
}

main,
footer {
    max-width: 1180px;
    margin: auto;
    padding-left: 28px;
    padding-right: 28px;
}

.hero {
    padding: 92px 0 72px;
    border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
    margin: 0 0 13px;
    color: var(--teal);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .13em;
}

.hero h1 {
    margin: 0;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(3.6rem, 9vw, 7.2rem);
    letter-spacing: -.07em;
    line-height: .9;
}

.lede {
    max-width: 620px;
    margin: 28px 0;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.35;
}

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

.focuses span,
.type {
    padding: 5px 10px;
    border: 1px solid #b8cfcd;
    border-radius: 999px;
    color: var(--teal);
    font-size: .72rem;
    font-weight: 700;
}

.overview {
    display: grid;
    grid-template-columns: .92fr 1fr;
    gap: 70px;
    padding: 76px 0;
    border-bottom: 1px solid var(--line);
}

h2 {
    margin: 0;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -.045em;
    line-height: 1;
}

.overview p:last-child {
    margin: 0;
    color: #445258;
    font-size: 1.06rem;
}

.publications {
    padding: 72px 0 96px;
}

.section-topline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 20px;
}

.sort-control {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sort-control select {
    padding: 9px 36px 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.status {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .9rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(23, 32, 38, .11);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 19px;
}

.year {
    color: var(--amber);
    font-family: "Times New Roman", Georgia, serif;
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
}

.card h3 {
    margin: 0 0 16px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 1.55rem;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.venue {
    margin: 0 0 14px;
    color: var(--teal);
    font-size: .91rem;
    font-weight: 650;
}

.authors {
    margin: 0 0 19px;
    color: #526067;
    font-size: .88rem;
}

.card p {
    margin: 0 0 13px;
    color: #46545b;
    font-size: .92rem;
}

.contribution {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.contribution strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.empty {
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
}

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

@media (max-width: 720px) {
    main,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 65px 0 52px;
    }

    .overview {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 54px 0;
    }

    .publications {
        padding: 54px 0 70px;
    }

    .section-topline {
        flex-direction: column;
        align-items: start;
    }

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

    .card {
        min-height: 0;
    }

    footer {
        flex-direction: column;
    }
}

/* Publication index cards: concise by default; research narrative is revealed in the dialog. */

.card {
    width: 100%;
    min-height: 245px;
    appearance: none;
    cursor: pointer;
    text-align: left;
}

.card:hover,
.card:focus-visible {
    border-color: #96b9b7;
    outline: none;
}

.card .authors {
    margin-bottom: 28px;
}

.card .author-role {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: #7b888d;
    font-size: .75rem;
    font-weight: 400;
}

.work-dialog {
    width: min(720px, calc(100% - 32px));
    max-height: min(780px, calc(100% - 32px));
    padding: 36px;
    border: 0;
    border-radius: 16px;
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 24px 75px rgba(10, 23, 27, .32);
}

.work-dialog::backdrop {
    background: rgba(18, 31, 35, .58);
    backdrop-filter: blur(3px);
}

.close-dialog {
    position: absolute;
    top: 36px;
    right: 36px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    padding-right: 40px;
    margin-bottom: 32px;
}

.dialog-type {
    display: inline-block;
    margin: 0;
}

.work-dialog h3 {
    margin: 0 30px 19px 0;
    font-family: "Times New Roman", Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -.045em;
    line-height: 1.02;
}

.work-dialog .authors {
    margin: 0 0 20px;
}

.work-dialog .detail-block {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.work-dialog .detail-block h4 {
    margin: 0 0 7px;
    color: var(--teal);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.work-dialog .detail-block p {
    margin: 0;
    color: #46545b;
}

.detail-link {
    display: inline-block;
    margin-top: 17px;
    color: var(--teal);
    font-weight: 700;
}

.detail-link:hover {
    text-decoration: none;
}

.work-dialog .author-role-inline {
    color: #7b888d;
    font: inherit;
    font-weight: 400;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .work-dialog {
        padding: 28px 23px;
    }

    .close-dialog {
        top: 28px;
        right: 23px;
    }
}
