:root {
    color-scheme: light;
    --bg: #edf2f9;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --text: #10233b;
    --muted: #4d6179;
    --accent: #0f5cc0;
    --accent-dark: #0a468f;
    --accent-soft: rgba(15, 92, 192, 0.08);
    --border: rgba(16, 35, 59, 0.12);
    --shadow: 0 18px 40px rgba(18, 38, 63, 0.08);
    --shadow-pop: 0 26px 50px rgba(18, 38, 63, 0.16);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 999px;
    --max-width: 1040px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(rgba(17, 38, 63, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 38, 63, 0.03) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(15, 92, 192, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 116, 144, 0.08), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
    min-height: 100vh;
}

a {
    color: inherit;
}

.page {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.main {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.hero,
.section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero:hover,
.hero:focus-within,
.section:hover,
.section:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-pop);
    border-color: rgba(15, 92, 192, 0.18);
}

.hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
    align-items: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 2rem 0 2rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 92, 192, 0.24), rgba(15, 92, 192, 0));
}

.headshot {
    aspect-ratio: 6 / 5;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(16, 35, 59, 0.14);
    background: linear-gradient(135deg, #dbe8f8, #eef4fb);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.headshot:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(18, 38, 63, 0.14);
    border-color: rgba(15, 92, 192, 0.22);
}

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

.eyebrow {
    margin: 0 0 0.75rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

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

h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    line-height: 0.97;
    letter-spacing: -0.04em;
    font-weight: 600;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

h2 {
    margin-bottom: 0.5rem;
    font-size: 1.45rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.subtitle {
    max-width: 42rem;
    margin-bottom: 1.5rem;
    font-size: 1.08rem;
    color: var(--muted);
}

.subtitle a {
    color: var(--accent);
    text-decoration: none;
}

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

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section {
    padding: 1.75rem;
}

.section-intro {
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.bio {
    margin: 0;
    font-size: 1.05rem;
}

.bio a {
    color: var(--accent);
    text-decoration: none;
}

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

.chip,
.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.72rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chip {
    width: 3rem;
    padding: 0;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(15, 92, 192, 0.16);
    box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
}

.chip svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.chip:hover,
.chip:focus-visible {
    background: var(--accent);
    color: var(--panel-strong);
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(18, 38, 63, 0.14);
}

.publication-list {
    display: grid;
    gap: 1rem;
}

.teaching-list {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.teaching-item {
    padding: 1.15rem 1.25rem;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.teaching-item:hover,
.teaching-item:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(18, 38, 63, 0.12);
    border-color: rgba(15, 92, 192, 0.18);
}

.teaching-meta,
.teaching-title {
    margin-bottom: 0;
}

.teaching-meta {
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.teaching-title {
    font-size: 1rem;
}

.teaching-note {
    margin-bottom: 0;
}

.teaching-link {
    color: var(--accent);
    text-decoration: none;
}

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

.publication {
    padding: 1.35rem;
    background: var(--panel-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.publication:hover,
.publication:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(18, 38, 63, 0.12);
    border-color: rgba(15, 92, 192, 0.18);
}

.publication h3 {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

.publication-meta {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.publication-meta strong {
    color: var(--text);
    font-weight: 700;
}

.publication-summary {
    margin-bottom: 1rem;
}

.publication-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.action {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(15, 92, 192, 0.16);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.05);
}

.action:hover,
.action:focus-visible {
    color: var(--panel-strong);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(18, 38, 63, 0.14);
}

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

@media (max-width: 760px) {
    .page {
        width: min(calc(100% - 1.25rem), var(--max-width));
        padding-top: 1.25rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .headshot {
        width: min(240px, 100%);
        margin: 0 auto;
    }

    .link-row,
    .publication-actions {
        justify-content: center;
    }

    .section {
        padding: 1.35rem;
    }
}
