:root {
    --blue: #34618e;
    --blue-dark: #2a4f73;
    --ink: #22303c;
    --muted: #5f6b73;
    --bg: #f7f5f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    margin-bottom: 100px;
    color: var(--ink);
    background-color: var(--bg);
    font-family: "Iowan Old Style BT", Georgia, serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.home_menu {
    margin: 80px 0 34px 0;
}

.links {
    margin-top: 14px;
    font-family: "Inter", -apple-system, sans-serif;
}

.links a {
    display: inline-block;
    margin-right: 18px;
    font-size: 16px;
    font-weight: 500;
}

.home_title {
    font-family: "Iowan Old Style BT", Georgia, serif;
    text-align: left;
    font-size: 40px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.tagline {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--muted);
    margin: 10px 0 0 0;
    letter-spacing: -0.01em;
}

.about {
    font-family: "Iowan Old Style BT", Georgia, serif;
}

.home_body {
    font-size: 19px;
    margin: 0 0 26px 0;
    line-height: 168%;
    font-weight: 300;
    color: #222;
}

/* ---- Featured research areas ---- */
.areas_section {
    margin: 44px 0 8px 0;
}

.areas_heading {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px 0;
    text-align: center;
}

.areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.area_card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 16px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.area_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(40,55,75,0.16);
}

.area_card_inner {
    display: block;
    padding: 18px;
    text-align: center;
}

.area_card_title {
    display: block;
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 145%;
    color: var(--ink);
}

@media (max-width: 620px) {
    .areas {
        grid-template-columns: 1fr;
    }
    .area_card {
        aspect-ratio: 16 / 9;
    }
}

/* ---- Content sections ---- */
.block {
    margin-top: 52px;
}

.section_heading {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 22px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6ddcb;
}

.papers + .section_heading {
    margin-top: 46px;
}

.area {
    margin: 0 0 24px 0;
}

.area_title {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 5px 0;
    letter-spacing: -0.01em;
}

.area_title a {
    color: var(--ink);
    font-weight: 600;
}

.area_title a:hover {
    color: var(--blue);
}

.area_body {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 17px;
    line-height: 158%;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.area_body b {
    font-weight: 500;
    color: var(--ink);
}

.see_all {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 15px;
    margin: 22px 0 0 0;
}

/* ---- News ---- */
.news {
    font-family: "Iowan Old Style BT", Georgia, serif;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news li {
    display: flex;
    gap: 16px;
    margin: 0 0 14px 0;
    font-size: 16px;
    line-height: 150%;
}

.news_date {
    flex-shrink: 0;
    width: 46px;
    color: var(--muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.news_item {
    color: #333;
    font-weight: 300;
}

/* ---- Contact footer ---- */
.contact {
    margin: 56px 0 40px 0;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 18px;
}

.contact_label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.contact a {
    font-weight: 500;
}

/* ---- Topic pages ---- */
.back {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 15px;
    margin: 40px 0 30px 0;
}

.topic_title {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    color: var(--ink);
}

.topic_body {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 19px;
    line-height: 168%;
    font-weight: 300;
    color: #222;
    margin: 0 0 26px 0;
}

.papers_heading {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 44px 0 20px 0;
}

.papers {
    font-family: "Iowan Old Style BT", Georgia, serif;
    list-style: none;
    padding: 0;
    margin: 0;
}

.papers li {
    margin: 0 0 22px 0;
    line-height: 152%;
}

.paper_title {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
}

.paper_meta {
    font-size: 15px;
    font-weight: 300;
    color: var(--muted);
    margin-top: 3px;
}

.paper_meta b {
    font-weight: 600;
    color: var(--ink);
}

.paper_links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.paper_note {
    font-size: 13.5px;
    font-weight: 400;
    font-style: italic;
    color: var(--blue);
    margin-top: 5px;
}

.me_first {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.pub_legend {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--muted);
    margin: -8px 0 30px 0;
}

.paper_links a {
    font-family: "Iowan Old Style BT", Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--blue);
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid #e0dccf;
    border-radius: 20px;
    background: #fbfaf6;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.paper_links a:hover {
    border-color: var(--blue);
    background: #edf1f6;
}

/* ---- Publications with thumbnails ---- */
.papers_thumbs li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.paper_thumb {
    flex: 0 0 150px;
    width: 150px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0dccf;
    background: #fbfaf6;
    display: block;
}

.paper_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.paper_thumb_fallback img {
    object-fit: cover;
    object-position: center;
}

.paper_info {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 620px) {
    .papers_thumbs li {
        flex-direction: column;
        gap: 10px;
    }
    .paper_thumb {
        width: 100%;
        flex-basis: auto;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .home_menu {
        margin-top: 48px;
    }
    .home_title {
        font-size: 36px;
    }
    .home_body {
        font-size: 18px;
    }
    .topic_title {
        font-size: 30px;
    }
    .topic_body {
        font-size: 18px;
    }
}
