/* One stylesheet for the whole site. Editorial, single column, light + dark. */

:root {
    --bg: #ffffff;
    --text: #15171a;
    --muted: #6b6f76;
    --faint: #e7e7e7;
    --accent: #002147; /* Oxford blue, kept from the original */
    --award: #8a5a00;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --measure: 720px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 19px/1.7 var(--serif);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color 0.15s; }
a:hover { text-decoration-color: currentColor; }
p a, li a { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

/* Header */

.site-header { font-family: var(--sans); padding: 40px 0 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.site-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* Content */

main { padding: 72px 0 96px; }

h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 800; margin: 0 0 20px; }
h2 { font-size: 26px; font-weight: 700; margin: 72px 0 24px; }
h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 40px 0 16px; }
main > .wrap > h2:first-child, main > .wrap > h1 + h2 { margin-top: 0; }

p { margin: 0 0 1.3em; }
ul { margin: 0 0 1.3em; padding-left: 1.2em; }
li { margin-bottom: 0.5em; }
li::marker { color: var(--muted); }
strong { font-weight: 600; }

.lede { font-size: 22px; line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }

/* About intro */

.intro { display: flex; gap: 22px; align-items: center; margin-bottom: 40px; }
.intro img { width: 84px; height: 94px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.intro h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; }
.intro p { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--muted); }

.affiliations { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px; padding: 26px 0; margin: 0 0 40px; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); font-family: var(--sans); }
.affiliations span, .affiliations a { display: block; }
.affiliations .role + * { margin-top: 0; }
.affiliations .role { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.affiliations .role:hover { color: var(--accent); text-decoration-color: currentColor; }
.affiliations .inst { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.affiliations .inst:hover { text-decoration: underline; text-underline-offset: 4px; }
.affiliations .unit { font-size: 14px; color: var(--accent); margin: 2px 0 8px; }
.affiliations .addr { font-size: 13px; line-height: 1.6; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--sans); font-size: 15px; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--faint); list-style: none; }
.links li { margin: 0; }

/* Publication lists */

.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li { margin: 0 0 26px; }
.pub-title { display: block; font-weight: 600; line-height: 1.4; color: var(--text); }
a.pub-title { color: var(--text); }
.pub-meta { display: block; font-family: var(--sans); font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.pub-meta a { color: var(--muted); }
.pub-meta .me { color: var(--text); font-weight: 600; }
.award { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--award); border: 1px solid currentColor; border-radius: 99px; padding: 1px 9px; margin-top: 8px; }

/* Figures */

figure { margin: 32px 0; }
figure img { border-radius: 6px; }
figcaption { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 12px; }

/* Legal pages */

.legal { font-size: 17px; }
.legal h3 { margin-top: 36px; }

/* Footer */

.site-footer { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 32px 0 48px; border-top: 1px solid var(--faint); }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
    body { font-size: 17px; }
    main { padding: 48px 0 72px; }
    .lede { font-size: 19px; }
    .affiliations { grid-template-columns: 1fr; gap: 24px; }
    h2 { margin-top: 56px; }
}
