:root {
    --ink: #172633;
    --muted: #61707b;
    --line: #dce5e7;
    --paper: #fcfdfb;
    --tint: #f1f6f4;
    --accent: #276f67;
    --max: 1120px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.66 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
}

a {
    color: var(--accent);
    text-underline-offset: 3px
}

a:hover {
    text-decoration-thickness: 2px
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 34px
}

header {
    border-bottom: 1px solid var(--line)
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px
}

.brand {
    font-family: Georgia, serif;
    color: var(--ink);
    font-size: 21px;
    text-decoration: none;
    font-weight: bold
}

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

nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px
}

nav a[aria-current=page],
nav a:hover {
    color: var(--ink)
}

main {
    padding-top: 72px;
    padding-bottom: 95px
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
    line-height: 1.2
}

h1 {
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 500;
    margin: 0 0 14px
}

h2 {
    font-size: 30px;
    font-weight: 500
}

h3 {
    font-size: 22px;
    font-weight: 500
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--accent);
    margin: 0 0 13px
}

.lead {
    font-size: 18px;
    max-width: 640px;
    line-height: 1.7
}

.muted {
    color: var(--muted)
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: 36px;
}

.hero {
    padding: 4px 0 34px
}

.tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 35px
}

.tile {
    padding: 24px 25px;
    min-height: 170px;
    border: 1px solid var(--line);
    background: var(--tint);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform .18s, border-color .18s
}

.tile:hover {
    transform: translateY(-3px);
    border-color: #83ada8
}

.tile .symbol {
    font-size: 22px;
    color: var(--accent);
    line-height: 1
}

.tile strong {
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    margin-top: 20px
}

.tile span:last-child {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px
}

.sidebar {
    border-left: 1px solid var(--line);
    padding-left: 29px
}

.sidebar h2 {
    font-size: 25px;
    margin: 7px 0 25px
}

.update {
    padding: 0 0 22px;
    margin-bottom: 23px;
    border-bottom: 1px solid var(--line)
}

.tag {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 750;
    color: var(--accent)
}

.update h3 {
    font: 600 15px/1.45 system-ui, sans-serif;
    letter-spacing: normal;
    margin: 6px 0
}

.update h3 a {
    text-decoration: none;
    color: var(--ink)
}

.update h3 a:hover {
    color: var(--accent)
}

.update p {
    font-size: 12px;
    margin: 4px 0;
    color: var(--muted)
}

.aside-link {
    font-size: 13px
}

.page-head {
    max-width: 800px;
    margin-bottom: 35px
}

.content {
    max-width: 770px
}

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

.panel {
    border: 1px solid var(--line);
    padding: 24px;
    border-radius: 10px;
    background: white
}

.panel h3 {
    margin-top: 0
}

.paper {
    border-bottom: 1px solid var(--line);
    padding: 20px 0
}

.paper:first-child {
    padding-top: 0
}

.paper h3 {
    font: 600 18px/1.4 system-ui, sans-serif;
    letter-spacing: normal;
    margin: 7px 0
}

.paper p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--muted)
}

.paper a {
    text-decoration: none
}

.linkline {
    margin: 12px 0
}

.notice {
    background: var(--tint);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 14px
}

.filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0
}

.filterbar button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 30px;
    padding: 8px 17px;
    cursor: pointer
}

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

footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    font-size: 12px;
    color: var(--muted)
}

.footerline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap
}

@media(max-width:800px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 45px
    }

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

    .container {
        padding: 0 22px
    }

    main {
        padding-top: 44px
    }

    .topbar {
        flex-wrap: wrap;
        padding: 20px 0
    }

    .cards {
        grid-template-columns: 1fr
    }
}

@media(max-width:480px) {
    .tile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .tile {
        min-height: 145px;
        padding: 16px
    }

    .tile strong {
        font-size: 20px
    }

    .tile span:last-child {
        font-size: 12px
    }

    nav {
        gap: 13px
    }
}

/* Revised academic-site components */
.tile-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.tile-grid.three .tile:last-child {
    grid-column: 1 / 2
}

.tile strong {
    overflow-wrap: anywhere
}

.research-area {
    border-top: 1px solid var(--line);
    padding: 5px 0
}

.research-area:last-child {
    border-bottom: 1px solid var(--line)
}

.research-area summary {
    font-family: Georgia, serif;
    font-size: 23px;
    cursor: pointer;
    list-style: none;
    padding: 21px 32px 21px 0;
    position: relative
}

.research-area summary::-webkit-details-marker {
    display: none
}

.research-area summary:after {
    content: '+';
    font-family: system-ui;
    position: absolute;
    right: 5px;
    font-size: 25px;
    color: var(--accent)
}

.research-area[open] summary:after {
    content: '−'
}

.area-content {
    padding: 0 8px 22px 0
}

.area-content h3 {
    font-family: system-ui;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    margin-bottom: 6px
}

.related-publications .paper {
    padding: 12px 0
}

.related-publications .paper h3 {
    font-size: 14px
}

.conference-section {
    margin-top: 65px
}

.conference-entry {
    border-bottom: 1px solid var(--line);
    padding: 20px 0
}

.conference-entry h3 {
    font: 600 17px/1.45 system-ui;
    margin: 6px 0;
    letter-spacing: normal
}

.conference-entry p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 14px
}

.file-links {
    display: flex;
    gap: 18px;
    margin-top: 9px
}

.file-links a {
    font-size: 14px
}

.cv-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--tint);
    padding: 23px 25px;
    margin-bottom: 38px
}

.cv-card h2 {
    margin-top: 0;
    font-size: 25px
}

.cv-card p {
    margin: 8px 0
}

.small {
    font-size: 14px
}

.tile:focus-visible,
.research-area summary:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px
}

@media(max-width:520px) {
    .tile-grid.three {
        grid-template-columns: 1fr
    }

    .tile-grid.three .tile:last-child {
        grid-column: auto
    }
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: start;
}

.hero-copy .lead {
    max-width: unset
}

.hero-photo {
  margin: 0;
  max-width: 180px;
}

.hero-photo img {
    width: 100%;
    display: block;
    border-radius: 10px;
    filter: grayscale(100%);
    border: 1px solid var(--line);
    background: #eee
}

.hero-photo figcaption {
    margin-top: 10px
}

.sidebar h2 {
    margin-top: 0
}

@media(max-width:900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .hero-photo {
        max-width: 340px
    }
}

/* Compact typography */

body {
    font-size: 14px;
}

h1 {
    font-size: clamp(32px, 3.8vw, 48px);
}

h2 {
    font-size: 25px;
}

h3 {
    font-size: 19px;
}

.lead {
    font-size: 16px;
}

.tile strong {
    font-size: 19px;
}

.sidebar h2 {
    font-size: 21px;
}

.research-area summary {
    font-size: 20px;
}

/* More compact layout */

main {
    padding-top: 50px;
    padding-bottom: 65px;
}

.hero {
    padding-bottom: 20px;
}

.tile-grid {
    margin-top: 20px;
    gap: 12px;
}

.tile {
    min-height: 135px;
    padding: 18px;
}

.tile strong {
    margin-top: 12px;
}

.home-layout {
    gap: 36px;
}

.sidebar {
    padding-left: 22px;
}