/* Design settings: change these values to update the whole site. */
:root {
  --navy: #18384d;
  --accent: #226e93;
  --ink: #263238;
  --muted: #526372;
  --pale: #f3f6f8;
  --line: #dce5eb;
  --white: #fff;
  --width: 1180px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Lato, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.7; }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1,h2,h3 { color: var(--navy); line-height: 1.2; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.045em; margin: 0 0 22px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); letter-spacing: -.025em; margin: 0 0 24px; }
h3 { font-size: 1.3rem; margin: 0 0 16px; }
p { margin: 0 0 16px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding-block: 12px; }
.brand { font-weight: 750; font-size: 1.08rem; color: var(--navy); text-decoration: none; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
/* Profile */
#profile { background: var(--pale); padding: 64px 0; border-bottom: 1px solid var(--line); }
.profile { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.intro p:first-of-type { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.intro p:last-child { margin-bottom: 0; }
.portrait img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
/* Biography and career */
#bio { padding: 64px 0; }
#bio .wrap { max-width: 920px; }
#experience { margin-top: 42px; }
.timeline { list-style: none; padding: 0 0 0 24px; margin: 0 0 0 8px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 19px 12px; }
.timeline li::before { content: ''; position: absolute; left: -31px; top: .55em; width: 10px; height: 10px; background: var(--accent); border: 2px solid white; border-radius: 50%; }
.timeline p { margin: 0; }
.timeline strong { color: var(--navy); }
/* Research and section headings */
.band { padding: 46px 0 0; }
.band h2 { margin-bottom: 0; border-top: 1px solid var(--line); padding-top: 38px; }
#research,#research-topics { background: var(--pale); }
#research h2 { border: 0; padding-top: 0; }
#research-topics { padding: 28px 0 60px; }
.research-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.research-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 14px; }
.research-card img { width: 100%; height: 210px; object-fit: cover; }
.research-card:nth-child(2) img { object-fit: contain; background: white; padding: 12px; }
.research-card h3 { margin: 24px 22px 16px; }
.research-card p { margin-inline: 22px; }
/* Team and former students */
#team-members,#past-students { padding: 24px 0 40px; }
.team-group { margin-bottom: 28px; padding: 24px; background: var(--pale); border-radius: var(--radius); }
.team-group ul,#past-students ul { list-style: none; padding: 0; margin: 0; }
.team-group li,#past-students li { padding: 15px 0; border-top: 1px solid var(--line); }
.team-group li p,#past-students li p { margin: 0; }
#past-students li { padding: 20px 0; }
#past-students li a:first-child { font-weight: 700; }
#publications { background: var(--navy); padding: 44px 0; }
#publications h2 { padding: 0; border: 0; }
#publications a { display: inline-block; color: white; font-size: 1.6rem; }
@media(max-width: 900px) {
 .header-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
 .profile { gap: 28px; }
 .research-grid { grid-template-columns: 1fr; }
 .research-card img { height: 240px; object-fit: contain; background: var(--pale); }
 html { scroll-padding-top: 130px; }
}
@media(max-width: 600px) {
 .wrap { width: calc(100% - 36px); }
 .site-header { position: static; }
 html { scroll-padding-top: 18px; }
 nav { gap: 6px 15px; }
 .profile { grid-template-columns: 1fr; }
 .portrait { grid-row: 1; max-width: 280px; }
 #profile,#bio { padding: 34px 0; }
 .team-group { padding: 18px; }
 .band { padding-top: 25px; }
 .band h2 { padding-top: 25px; }
}
@media print { .site-header { display: none; } .wrap { width: 100%; } .research-grid { display: block; } .research-card { break-inside: avoid; margin-bottom: 16px; } }
