/* CHANGE THE LOOK HERE. These colours are used throughout the website. */
:root {
  --paper: #fafbf9;
  --ink: #222d28;
  --muted: #636d66;
  --green: #165f9e;
  --line: #d8e0e7;
  --tint: #eaf2f9;
  /* ETH uses DIN Next; Arial is its recommended system-font alternative. */
  --sans: "DIN Next", "DIN Next LT Pro", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: #d8eaf8; }
a { color: inherit; text-decoration-color: #91aac0; text-underline-offset: .25em; }
a:hover { color: var(--green); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 2px; }
button, input { font: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
.wrap { width: min(100% - 4rem, 1016px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .5rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; display: flex; justify-content: flex-end; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; position: absolute; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2rem; row-gap: 4px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.intro { padding: 44px 0; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.intro-copy { min-width: 0; }
.eyebrow { color: var(--green); font-size: 14px; font-weight: 500; letter-spacing: .035em; line-height: 1.6; }
.intro-name { margin: 24px 0 24px; font-family: var(--sans); font-weight: 600; font-size: clamp(3.7rem, 6.6vw, 5.2rem); line-height: .96; letter-spacing: -.035em; }
.name-period { display: inline-block; color: var(--green); transform: translateX(.04em); }
.intro-role { font-size: 17px; margin-bottom: 12px; }
.intro-text { color: var(--muted); max-width: 580px; line-height: 1.8; }
.text-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 8px; margin-top: 17px; }
.text-links a { font-size: 14px; color: var(--green); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.text-links a:hover { text-decoration: underline; }
.text-links span { font-size: 15px; }
.portrait { width: 84%; max-width: 340px; margin: 0; justify-self: end; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 65%; border-radius: 24px; }
.section { --section-accent: var(--green); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 30px 28px 32px; margin-bottom: 22px; border-top: 3px solid var(--section-accent); border-radius: 3px; }
#research { --section-accent: #165f9e; background: #eef4f8; }
#education { --section-accent: #655d7b; --line: #dedbe5; background: #f3f1f6; }
#teaching { --section-accent: #247078; --green: #247078; --line: #cfe1e2; background: #edf5f5; }
#blog { --section-accent: #895332; --green: #895332; --line: #e5d9cb; background: #f7f2ea; }
#contact { --section-accent: #4b535d; --green: #394552; background: #eff0f1; }
.section-label { display: flex; align-items: baseline; gap: 14px; }
.section-label h2 { color: var(--section-accent); }
.section-number { font: 13px ui-monospace, monospace; color: var(--section-accent); }
h2 { font-family: var(--sans); font-size: 27px; font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.section-intro { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.publication + .publication { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 14px; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); letter-spacing: .025em; }
.tag { font-size: 12px; padding: 1px 7px; background: var(--tint); color: var(--green); border-radius: 3px; }
h3 { margin-top: 8px; font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
h3 a, h4 a { text-decoration: none; }
h3 a:hover, h4 a:hover { text-decoration: underline; }
.publication p { margin-top: 6px; color: var(--muted); }
.publication .authors { font-size: 13px; }
.authors strong { color: var(--ink); font-weight: 700; }
.publication .text-links { margin-top: 4px; }
.blog-all { margin-top: 16px; }
.reports { margin-top: 18px; border-block: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 12px 0; color: var(--green); font-size: 14px; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
.summary-mark { font-size: 18px; line-height: 1.5; }
details[open] > summary .summary-mark { transform: rotate(45deg); }
.report-list { padding-bottom: 10px; }
.report-list article { padding-block: 12px; }
.report-list article + article { border-top: 1px solid var(--line); }
.report-list h3 { font-size: 19px; margin-top: 6px; }
.report-list .text-links { margin-top: 6px; }
.education-item { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; padding-block: 12px; }
.education-item:first-child { padding-top: 0; }
.education-item:last-child { padding-bottom: 0; }
.education-item + .education-item { border-top: 1px solid var(--line); }
.education-date { padding-top: 2px; color: var(--section-accent); font-size: 13px; white-space: nowrap; }
.education-item h3 { margin: 0; font-size: 17px; }
.education-item p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 2px; }
.course-title { font-size: 22px; line-height: 1.35; margin: 10px 0; }
#teaching .section-content > .eyebrow:not(:first-child) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.teaching-level { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.course-description { color: var(--muted); }
.resources { margin-top: 18px; }
.resource { display: flex; gap: 20px; border-top: 1px solid var(--line); padding-block: 15px; }
.resource:last-child { padding-bottom: 0; }
.resource-number { flex-shrink: 0; white-space: nowrap; color: var(--green); font: 12px ui-monospace, monospace; padding-top: 7px; }
.resource-body { min-width: 0; }
.section-content { min-width: 0; overflow-wrap: anywhere; }
h4 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.resource p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.resource .text-links { margin-top: 4px; column-gap: 20px; }
.contact { padding-bottom: 32px; }
.contact p { color: var(--muted); }
.email-link { display: inline-block; color: var(--green); margin-top: 13px; font-size: 20px; text-decoration: none; overflow-wrap: anywhere; }
.email-link:hover { text-decoration: underline; }
.email-link span { margin-left: 10px; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 24px 32px; font-size: 12px; color: var(--muted); }
.site-footer a { text-decoration: none; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 3rem); }
  .intro { padding-block: 34px; }
  .intro-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
  .intro-name { font-size: clamp(3.35rem, 8vw, 4.1rem); }
  .section { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px 26px; }
  .section-intro { margin-bottom: 16px; }
  nav { gap: 1.2rem; }
}
@media (max-width: 620px) {
  .intro-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .portrait { width: 80%; max-width: 300px; justify-self: center; }
  .portrait img { aspect-ratio: 1 / 1; object-position: center 70%; }
  .site-header { justify-content: flex-start; }
  .site-header nav { width: calc(100% - 26px); margin-left: 26px; justify-content: space-between; column-gap: 12px; row-gap: 4px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 2.5rem); }
  .site-header { padding-block: 12px; }
  nav a { font-size: 14px; }
  nav { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 12px; row-gap: 0; }
  nav a { justify-content: center; }
  .education-item { grid-template-columns: 1fr; gap: 3px; }
  .intro { padding-block: 28px 30px; }
  .intro-name { font-size: clamp(2.9rem, 12vw, 3.45rem); margin-top: 22px; }
  .intro-role { margin-top: 22px; }
  .intro-text { font-size: 16px; }
  .text-links { column-gap: 18px; }
  .section { padding-inline: 18px; margin-bottom: 18px; }
  h3 { font-size: 20px; }
  .course-title { font-size: 22px; }
  .desktop-break { display: none; }
  .email-link { font-size: 17px; min-height: 44px; }
}
@media (max-width: 360px) { nav { column-gap: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  .site-header, .site-footer, .skip-link { display: none; }
  .intro { padding-block: 20px 30px; }
  .section { padding-block: 25px; break-inside: avoid; }
  .intro-name { font-size: 42pt; }
  a { text-decoration: none; }
}

/* The fluid lives behind the biography and never receives clicks or touches. */
.intro { position: relative; isolation: isolate; }
.fluid-background { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mask-image: linear-gradient(transparent, #000 12%, #000 86%, transparent); }
.intro-copy, .portrait { position: relative; }
@media print { .fluid-background { display: none; } }

/* Full-width flow, with the same centered content width as the other sections. */
.intro { overflow: clip; }
.intro-copy { background: none; }
.reveal-pending { opacity: 0; transform: translateY(28px); }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .fluid-background { display: none; }
  .intro-copy { background: none; }
}
@media (prefers-reduced-motion: reduce), print {
  .reveal-pending { opacity: 1; transform: none; }
}
