:root {
    color-scheme: light;
    --page-bg: #fafafa;
    --surface: #ffffff;
    --surface-muted: #f1f3f5;
    --surface-strong: #e5e8ec;
    --text: #303946;
    --text-muted: #68717d;
    --heading: #182230;
    --accent: #20558a;
    --accent-hover: #163f69;
    --accent-soft: #edf3f8;
    --accent-contrast: #ffffff;
    --border: #dfe3e8;
    --header-bg: rgba(250, 250, 250, 0.97);
    --shadow-sm: none;
    --shadow-md: 0 12px 32px rgba(24, 34, 48, 0.08);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --content-width: 820px;
    --shell-width: 1180px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #0b1220;
    --surface: #101827;
    --surface-muted: #172131;
    --surface-strong: #243044;
    --text: #d8dee8;
    --text-muted: #9aa4b2;
    --heading: #f0f3f7;
    --accent: #8bb5df;
    --accent-hover: #b0cee9;
    --accent-soft: #172b3e;
    --accent-contrast: #08111f;
    --border: #2a3545;
    --header-bg: rgba(11, 18, 32, 0.97);
    --shadow-sm: none;
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    background: var(--page-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--page-bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--accent-hover);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

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

h1,
h2,
h3 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    color: var(--heading);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2rem, 4.3vw, 3rem);
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
}

h3 {
    font-size: 1.15rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--accent-contrast);
    background: var(--accent);
    font-weight: 750;
    transform: translateY(-160%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    width: min(100%, var(--shell-width));
    min-height: 68px;
    margin: 0 auto;
    padding: 10px 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--accent);
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 4px;
    color: #ffffff;
    background: var(--accent);
    box-shadow: none;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.site-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.site-nav-links a {
    padding: 8px 11px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}

.site-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle,
.menu-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
}

.theme-toggle {
    padding: 7px 12px;
}

.theme-toggle:hover,
.menu-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.theme-icon {
    font-size: 1rem;
    line-height: 1;
}

.menu-toggle {
    display: none;
    width: 40px;
    padding: 0;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-icon::before {
    top: -5px;
}

.menu-icon::after {
    top: 5px;
}

.site-header[data-menu-open="true"] .menu-icon {
    background: transparent;
}

.site-header[data-menu-open="true"] .menu-icon::before {
    transform: translateY(5px) rotate(45deg);
}

.site-header[data-menu-open="true"] .menu-icon::after {
    transform: translateY(-5px) rotate(-45deg);
}

/* Shared page layout */
.site-shell {
    display: grid;
    grid-template-columns: 244px minmax(0, var(--content-width));
    gap: 58px;
    width: min(100%, var(--shell-width));
    margin: 0 auto;
    padding: 48px 24px 84px;
}

.site-shell--wide {
    display: block;
    max-width: 1080px;
}

.main-content {
    min-width: 0;
}

.profile-card {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

.profile-photo {
    display: block;
    width: 176px;
    height: 176px;
    margin: 0 0 20px;
    border: 1px solid var(--border);
    border-radius: 5px;
    object-fit: cover;
    object-position: center 28%;
    box-shadow: none;
}

.profile-name {
    margin: 0 0 5px;
    color: var(--heading);
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.profile-title,
.profile-affiliation {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.profile-affiliation {
    color: var(--text);
    font-weight: 650;
}

.profile-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 21px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
    text-align: left;
}

.profile-links li,
.profile-links a {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    border-radius: 0;
    text-decoration: none;
}

.profile-links a:hover {
    color: var(--accent);
    background: transparent;
}

.profile-link-icon {
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: transparent;
}

.profile-link-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
}

.page-heading {
    margin-bottom: 34px;
}

.page-heading h1 {
    margin-bottom: 12px;
}

.page-heading p:last-child {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.section-block {
    margin-top: 54px;
}

.section-block:first-child {
    margin-top: 0;
}

.section-block > h2 {
    margin-bottom: 18px;
}

.section-intro {
    margin: -7px 0 24px;
    color: var(--text-muted);
}

.hero-section {
    padding: 18px 0 8px;
}

.hero-section h1 {
    max-width: 700px;
    margin-bottom: 20px;
}

.hero-lede {
    max-width: 720px;
    margin-bottom: 26px;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.72;
}

.hero-section .hero-lede:last-child {
    margin-bottom: 0;
}

.hero-section + .section-block {
    margin-top: 30px;
}

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

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--heading);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 780;
    text-decoration: none;
}

.button:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.button--primary {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: none;
}

.button--primary:hover {
    color: #ffffff;
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

:root[data-theme="dark"] .button--primary,
:root[data-theme="dark"] .button--primary:hover {
    color: var(--accent-contrast);
}

.about-copy p {
    margin-bottom: 18px;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.interest-grid li {
    padding: 16px 0;
    border: 0;
    border-top: 2px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.interest-grid strong,
.interest-grid span {
    display: block;
}

.interest-grid strong {
    margin-bottom: 5px;
    color: var(--heading);
    font-size: 0.98rem;
}

.interest-grid span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Teaching */
.teaching-list {
    border-top: 1px solid var(--border);
}

.teaching-item {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 22px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}

.teaching-term {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.teaching-item h2,
.teaching-item h3 {
    margin-bottom: 5px;
    font-size: 1.03rem;
}

.teaching-item h2 a,
.teaching-item h3 a {
    color: var(--heading);
    text-decoration: none;
}

.teaching-item h2 a:hover,
.teaching-item h3 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.teaching-item p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

/* News */
.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-list li {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.news-list li:first-child {
    padding-top: 0;
}

.news-date {
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.news-copy {
    color: var(--text);
    line-height: 1.62;
}

.news-copy strong {
    color: var(--heading);
}

.news-scroll {
    max-height: 430px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--accent) var(--accent-soft);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.news-scroll .news-list {
    padding-right: 14px;
}

.news-scroll .news-list li:first-child {
    padding-top: 15px;
}

.news-scroll .news-list li:last-child {
    border-bottom: 0;
}

.news-scroll::-webkit-scrollbar {
    width: 10px;
}

.news-scroll::-webkit-scrollbar-track {
    background: var(--accent-soft);
}

.news-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--accent-soft);
    border-radius: 5px;
    background: var(--accent);
}

.news-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Publications */
.publication-group {
    margin-top: 42px;
}

.publication-group:first-of-type {
    margin-top: 0;
}

.publication-group > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.group-count {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 0.75rem;
    letter-spacing: 0;
}

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

.publication-card {
    position: relative;
    padding: 22px 0 20px;
    overflow: hidden;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.publication-card::before {
    content: none;
}

.publication-title {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.publication-authors,
.publication-venue {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.55;
}

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

.publication-venue {
    color: var(--accent);
    font-weight: 680;
}

.publication-links,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.publication-links a,
.tag-list li {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--accent);
    background: var(--surface-muted);
    font-size: 0.76rem;
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
}

.publication-links a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: none;
    transform: none;
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.project-category {
    align-self: flex-start;
    margin-bottom: 17px !important;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--accent) !important;
    background: var(--accent-soft);
    font-size: 0.7rem !important;
    font-weight: 780;
    line-height: 1.2 !important;
}

.project-meta {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card h2 {
    margin-bottom: 10px;
    font-size: 1.14rem;
}

.project-card p {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.62;
}

.project-outcome {
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    color: var(--text) !important;
    background: var(--accent-soft);
    font-weight: 680;
}

.tag-list {
    margin-top: auto;
}

.tag-list li {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

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

.contact-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: none;
}

.contact-card h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.contact-card p,
.contact-card address {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.93rem;
    font-style: normal;
    line-height: 1.7;
}

/* Resume */
.resume-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.resume-header .page-heading {
    margin-bottom: 0;
}

.resume-preview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    align-items: start;
}

.resume-preview-frame {
    display: block;
    width: 100%;
    height: 76vh;
    min-height: 640px;
    max-height: 900px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.resume-preview-link {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.resume-preview {
    display: block;
    width: 100%;
    height: auto;
}

.resume-notes {
    position: sticky;
    top: 96px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: none;
}

.resume-notes h2 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.resume-facts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.resume-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.84rem;
}

.resume-facts li:last-child {
    border-bottom: 0;
}

.resume-facts strong {
    color: var(--heading);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    display: flex;
    width: min(100%, var(--shell-width));
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto;
    padding: 18px 24px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.site-footer a {
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .site-shell {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 36px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-photo {
        width: 138px;
        height: 138px;
    }

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

@media (max-width: 900px) {
    .site-brand {
        min-height: 40px;
    }

    .site-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .site-controls {
        grid-column: 2;
        grid-row: 1;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .theme-toggle,
    .menu-toggle {
        min-height: 40px;
    }

    .site-nav-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .site-nav-links a {
        display: grid;
        min-height: 40px;
        place-items: center;
    }

    .js .site-nav-links {
        display: none;
    }

    .js .site-header[data-menu-open="true"] .site-nav-links {
        display: flex;
    }

    .site-shell {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 34px;
    }

    .profile-card {
        position: static;
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        column-gap: 22px;
        align-items: start;
        text-align: left;
    }

    .profile-photo {
        grid-row: 1 / span 4;
        width: 116px;
        height: 116px;
        margin: 0;
        border-radius: 4px;
    }

    .profile-links {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px 18px;
        margin-top: 18px;
    }

    .profile-links li {
        min-width: 0;
    }

    .profile-links a,
    .profile-location {
        width: 100%;
        min-height: 38px;
        padding: 7px 0;
    }

    .resume-preview-shell {
        grid-template-columns: 1fr;
    }

    .resume-notes {
        position: static;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .site-header-inner,
    .site-shell,
    .site-footer-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .site-brand {
        gap: 8px;
        min-height: 40px;
        font-size: 0.84rem;
    }

    .brand-mark {
        width: 31px;
        height: 31px;
    }

    .theme-label {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .menu-toggle {
        height: 40px;
    }

    .site-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 7px;
        padding-bottom: 4px;
    }

    .js .site-header[data-menu-open="true"] .site-nav-links {
        display: grid;
    }

    .site-nav-links a {
        text-align: center;
    }

    .site-shell {
        gap: 28px;
        padding-top: 26px;
        padding-bottom: 62px;
    }

    .profile-card {
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 0;
        padding: 0 0 20px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .profile-photo {
        width: 88px;
        height: 88px;
        border-width: 1px;
        border-radius: 4px;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-title,
    .profile-affiliation {
        margin-bottom: 4px;
        font-size: 0.76rem;
    }

    .profile-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 14px;
        margin-top: 16px;
        padding-top: 12px;
    }

    .profile-links li {
        font-size: 0.76rem;
    }

    .profile-link-icon {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .profile-link-icon svg {
        width: 15px;
        height: 15px;
    }

    .hero-section {
        padding-top: 6px;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .interest-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .publication-group > h2 {
        align-items: flex-start;
        justify-content: space-between;
    }

    .group-count {
        flex: 0 0 auto;
        margin-top: 1px;
    }

    .publication-links a {
        min-height: 36px;
        padding: 6px 11px;
    }

    .contact-card {
        padding: 18px;
    }

    .contact-card a {
        overflow-wrap: anywhere;
    }

    .teaching-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .news-list li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .news-scroll {
        max-height: 400px;
    }

    .resume-header {
        display: block;
    }

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

    .resume-preview-frame {
        height: 72vh;
        min-height: 520px;
    }

    .site-footer-inner {
        display: block;
        min-height: 0;
        text-align: center;
    }

    .site-footer-inner > span {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 300px) {
    .site-brand > span:last-child {
        display: none;
    }

    .profile-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
