@font-face {
  font-family: "Literata";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/literata-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/literata-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/literata-latin-standard-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/literata-latin-ext-standard-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #235b6a;
  --accent: #5f9e98;
  --ink: #1c2b36;
  --muted: #53646d;
  --line: #d5e2e0;
  --wash: #eef4f3;
  --paper: #ffffff;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.52;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration-line: underline;
  text-decoration-color: rgba(95, 158, 152, 0.6);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: var(--primary); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 1px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 0.5rem 0.75rem;
  font-family: var(--sans); font-size: 0.9375rem;
}
.skip:focus { left: var(--gutter); z-index: 10; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-top: 1.35rem; padding-bottom: 1.15rem;
}
.wordmark {
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--primary); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.site-nav a {
  font-family: var(--sans); font-size: 0.9375rem; color: var(--ink); text-decoration: none;
  padding-bottom: 0.2rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--primary); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--accent); }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch;
  padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.48rem, 6.88vw, 5.28rem); line-height: 0.94; letter-spacing: -0.025em;
  color: var(--primary); margin: 0 0 1.6rem;
}
.hero h1 span { display: block; }
.hero .position {
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--ink); margin: 0 0 1.75rem;
}
.hero .position span { display: block; color: var(--muted); }
.hero .statement {
  font-size: clamp(1.25rem, 2.1vw, 1.45rem); line-height: 1.38; max-width: 36ch; margin: 0 0 1.75rem;
}
.hero-links {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.4rem;
  font-family: var(--sans); font-size: 0.9375rem;
}
.hero-links .icon-row { margin-left: -0.6rem; }
/* Profile logos: 44px tap targets, each logo in its brand colour (set in icons.html). */
.icon-link a {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; color: var(--ink); text-decoration: none;
}
.icon-link a:hover { background: rgba(35, 91, 106, 0.1); }
.icon-link svg { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.icon-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.icon-row-small .icon-link svg { width: 1.2rem; height: 1.2rem; }
.portrait { margin: 0; justify-self: end; width: 100%; max-width: 24rem; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 3px; background: #5d5f60; }
/* Wide screens: the photo column is as wide as the text column and the photo fills the text block's height, so the two read as matching blocks. */
@media (min-width: 52.0625rem) {
  .portrait { position: relative; justify-self: stretch; max-width: none; min-height: 22rem; }
  .portrait img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* Page title for inner pages */
.page-head {
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem); padding-bottom: clamp(1.6rem, 3.2vw, 2.25rem); text-align: center;
  background: var(--wash); box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax);
}
.page-head h1 {
  font-weight: 500; font-size: clamp(2.5rem, 5.5vw, 3.75rem); line-height: 1; letter-spacing: -0.02em;
  color: var(--primary); margin: 0;
}
.page-head p { max-width: 38rem; margin: 0 auto; color: var(--ink); text-wrap: balance; }
.page-head .aside { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); margin-top: 0.6rem; }

/* Sections: heading column and content column */
.section {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem 3rem;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}
/* Alternate full-width bands: the shade runs edge to edge while content stays in the column. */
/* Every page opens on the pale band (home: the hero; other pages: the centred header), then bands alternate. */
.home main > section:nth-of-type(odd),
.inner main > section:nth-of-type(even) { background: var(--wash); box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax); }
.section > h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0.1rem 0 0; color: var(--ink);
}
.section > .body { max-width: 46rem; }
.section > .body > :first-child { margin-top: 0; }
.body > p { margin: 0 0 0.85rem; }
.body h3 {
  font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--primary);
  margin: 2.5rem 0 1.25rem;
}
.body h3:first-child { margin-top: 0; }
.more { font-family: var(--sans); font-size: 0.9375rem; margin-top: 0.5rem; }
.page-note { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); }

/* Publications */
.pub { margin: 0 0 1.7rem; }
.pub-dated { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 0 1.25rem; }
.pub-year { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--primary); padding-top: 0.05rem; }
.pub:last-child { margin-bottom: 0; }
.body .pub-title { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 0 0 0.2rem; }
.pub-title a { text-decoration-color: rgba(95, 158, 152, 0.5); }
.pub-authors { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.me { font-weight: 650; }
.pub-venue { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.35; color: var(--muted); margin: 0.1rem 0 0; }
.pub-venue i { font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0; padding: 0; }
.badge {
  font-family: var(--sans); font-weight: 700; font-size: 0.78rem; line-height: 1;
  padding: 0.38rem 0.58rem 0.34rem; border-radius: 6px; letter-spacing: 0.01em; white-space: nowrap;
}
.pub-media { font-family: var(--sans); font-size: 0.875rem; line-height: 1.35; color: var(--muted); margin: 0.45rem 0 0; }

/* Work in progress */
.wp { margin: 0 0 1.5rem; padding-left: 1.1rem; border-left: 2px solid var(--line); }
.wp:last-child { margin-bottom: 0; }
.wp-venue { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.35; margin: 0 0 0.2rem; color: var(--muted); }
.wp-venue strong { color: var(--primary); font-weight: 600; }
.wp-summary { margin: 0 0 0.25rem; line-height: 1.45; }
.wp-authors { font-family: var(--sans); font-size: 0.875rem; line-height: 1.35; color: var(--muted); margin: 0; }
.wp-authors .me { color: var(--ink); font-weight: 600; }

/* Dated lists: talks, recognition, roles */
.dated { list-style: none; margin: 0; padding: 0; }
.dated li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem;
  padding: 0.45rem 0; border-top: 1px solid var(--line); line-height: 1.35;
}
.dated li:first-child { border-top: 0; padding-top: 0; }
.dated .when {
  font-family: var(--sans); font-size: 0.875rem; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-top: 0.15rem;
}
.dated .what { margin: 0; }
.dated .what small { display: block; font-family: var(--sans); font-size: 0.875rem; color: var(--muted); margin-top: 0.05rem; }
.dated.compact li { padding: 0.22rem 0; border-top: 0; }
.dated.compact .place { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }
.dated .flag { font-family: var(--sans); font-size: 0.8125rem; color: var(--primary); font-weight: 600; }

/* Courses */
.course { margin: 0 0 1.35rem; }
.course:last-child { margin-bottom: 0; }
.course h3 { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; color: var(--ink); margin: 0 0 0.1rem; }
.course p { margin: 0; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.course .rating { color: var(--ink); }
.course .note { color: var(--primary); }

/* Education */
.edu { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.edu li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 1.5rem; margin: 0 0 0.5rem; line-height: 1.35; }
.edu .when { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); padding-top: 0.15rem; font-variant-numeric: tabular-nums; }
.edu small { display: block; font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }

/* Inline lists */
.inline-list { list-style: none; margin: 0; padding: 0; }
.inline-list li { margin: 0 0 0.15rem; line-height: 1.4; }

/* Coauthor world map */
.section-wide > .body { max-width: none; }
.wmap { position: relative; margin: 0.75rem 0 0.5rem; }
.wmap svg { display: block; width: 100%; height: auto; background: #ffffff; border-radius: 4px; }
.wmap .country { fill: #dfe7e6; stroke: #ffffff; stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wmap .country.bin-1 { fill: #b9d7d2; }
.wmap .country.bin-2 { fill: #5f9e98; }
.wmap .country.bin-3 { fill: #235b6a; }
.wmap .country[data-country] { cursor: pointer; }
.wmap .country[data-country]:hover, .wmap .country.is-active { stroke: var(--ink); stroke-width: 1.2; }
.wmap .country:focus { outline: none; }
.wmap .country:focus-visible { stroke: var(--primary); stroke-width: 2.5; }
.wmap .hit { fill: transparent; cursor: pointer; }
.wmap-tip {
  position: absolute; z-index: 2; width: 19rem; max-width: calc(100% - 1rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 8px 28px rgba(28, 43, 54, 0.14); padding: 0.75rem 0.9rem;
  font-family: var(--sans); font-size: 0.875rem; line-height: 1.35; pointer-events: none;
}
.wmap-tip .tip-head { font-family: var(--serif); font-weight: 600; font-size: 1.0625rem; color: var(--primary); margin: 0 0 0.4rem; }
.wmap-tip .tip-head span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.wmap-tip ul { list-style: none; margin: 0; padding: 0; }
.wmap-tip li { margin: 0 0 0.3rem; }
.wmap-tip li:last-child { margin-bottom: 0; }
.wmap-tip li span { display: block; color: var(--muted); }
.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; }

/* Contact */
.contact address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 1rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem;
  padding-top: 2rem; padding-bottom: 2.5rem; font-family: var(--sans); font-size: 0.875rem; color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer .wrap { align-items: center; }

/* Small screens */
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .portrait { order: -1; justify-self: start; max-width: 11rem; }
  .section { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 34rem) {
  body { font-size: 1.0625rem; }
  .dated li, .edu li { grid-template-columns: 1fr; gap: 0.1rem; }
  .pub-dated { grid-template-columns: 1fr; }
  .pub-year { font-size: 1.35rem; margin-bottom: 0.25rem; }
  .site-nav ul { gap: 0.25rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .site-header nav, .skip, .wmap { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  .section { break-inside: avoid; border-top: 0; }
}
