@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Libre+Caslon+Display&display=swap');

/* Edit these colours to change the palette throughout the website. */
:root {
  --ink: #10143b;
  --muted: #545e75;
  --navy: #08083e;
  --blue: #2355c9;
  --gold: #f4b547;
  --ice: #e1f3f3;
  --pale-blue: #edf3fc;
  --sand: #fff1d7;
  --pale-gold: #ffe2a0;
  --line: #dce3ef;
  --paper: #ffffff;
  --wash: #f5f8fd;
  --sans: 'DM Sans', Arial, sans-serif;
  --serif: 'Libre Caslon Display', Georgia, serif;
  --body-font-size: 1rem;
}

/* Base typography and shared controls. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--body-font-size)/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #c6dcfa; }
p, h1, h2, h3, figure { margin: 0; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 5px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; font-weight: 600; }
h2 { font-size: clamp(2.7rem, 4.4vw, 3.65rem); font-weight: 700; letter-spacing: -.05em; color: var(--navy); }
h3 { font-size: 1.45rem; }
[hidden] { display: none !important; }
.page-width { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 88px; }
.green { color: var(--navy); }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .13em; color: var(--navy); }
.small-rule { display: inline-block; width: 24px; height: 3px; background: var(--gold); margin-right: 9px; vertical-align: middle; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 600; line-height: 1.5; color: var(--navy); text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 15px 22px; border: 1px solid transparent; border-radius: 50px; font-size: .875rem; font-weight: 600; line-height: 1.4; transition: transform .2s, background .2s, box-shadow .2s; }
.button span { font-size: 1.2rem; }
.button:hover { transform: translateY(-2px); }
.button.dark { background: var(--navy); color: #fff; box-shadow: 0 5px 14px #08083e1f; }
.button.dark:hover { background: #16166c; box-shadow: 0 8px 20px #08083e30; }
.button.outline { border-color: #aabbd9; color: var(--navy); background: #fff; }
.button.outline:hover { background: var(--pale-blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--ink); color: #fff; padding: 12px 24px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Header and mobile menu. */
.site-header { position: sticky; top: 0; z-index: 20; background: #fffffff5; backdrop-filter: blur(16px); border-bottom: 1px solid #e4eaf3; }
.header-inner { width: min(1344px, calc(100% - 80px)); margin: auto; min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: .8rem; font-weight: 650; line-height: 1.3; }
.brand-mark { background: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; padding: 3px 10px 7px 8px; font: 2.7rem/1 var(--serif); letter-spacing: -.075em; }
.brand-mark > span { color: var(--pale-gold); }
nav { display: flex; align-items: center; gap: 27px; }
nav > a { font-size: .875rem; position: relative; padding-block: 10px; }
nav > a:not(.nav-contact)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--gold); border-radius: 4px; transform: scaleX(0); transition: transform .2s; }
nav > a:hover::after, nav > a.active::after { transform: scaleX(1); }
.nav-contact { background: var(--pale-blue); color: var(--navy); padding: 11px 19px; border-radius: 40px; font-weight: 600; }
.nav-contact:hover { background: #dce8fa; }
.nav-contact > span { margin-left: 18px; }
.menu-toggle { display: none; }

/* Hero introduction and activity slideshow. */
.hero {
  width: min(1344px, calc(100% - 48px));
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px 55px;
  padding: 48px 64px 44px;
  margin-block: 28px 36px;
  background: var(--pale-blue);
  border-radius: 32px;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; z-index: -1; width: 430px; height: 430px; border-radius: 50%; background: #dce8fa; right: -150px; top: -170px; }
.hero::after { content: ''; position: absolute; z-index: -1; width: 170px; height: 170px; border: 1px solid #b6cdeb; border-radius: 50%; left: 46%; bottom: -100px; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 25px; font-size: .7rem; letter-spacing: .1em; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.35rem); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 em { display: inline-block; color: var(--navy); font-family: var(--serif); font-size: 1.27em; font-weight: 400; letter-spacing: -.045em; line-height: 1.12; }
.hero-intro { max-width: 540px; font-size: var(--body-font-size); line-height: 1.85; margin-top: 23px; color: #495873; }
.hero-intro strong { color: var(--ink); font-weight: 650; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.hero-actions .text-link { color: var(--ink); }
.hero-disclaimer { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #c8d5e8; color: var(--muted); font-size: .875rem; line-height: 1.6; font-style: italic; text-align: center; }
.hero-news { position: relative; min-width: 0; padding: 20px; background: #fff; border: 1px solid #d1deef; border-radius: 24px; box-shadow: 0 12px 32px #08083e0a; }
.news-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--navy); font-size: .875rem; font-weight: 700; letter-spacing: .09em; line-height: 1.5; }
.news-heading .small-rule { flex-shrink: 0; margin: 0; }
.news-slides { min-width: 0; }
.news-image-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--pale-blue); }
.news-image { width: 100%; height: 100%; object-fit: cover; }
.news-image-unavailable { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.news-caption { min-height: 6.25em; padding: 18px 0 14px; border-bottom: 3px solid var(--gold); font-size: var(--body-font-size); font-weight: 500; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.news-empty { display: grid; place-items: center; min-height: 320px; padding: 28px; border-radius: 14px; background: var(--pale-blue); text-align: center; }
.news-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 14px; }
.news-controls button { min-height: 44px; padding: 6px 10px; border: 1px solid #c8d5e8; border-radius: 24px; background: #fff; color: var(--navy); font-size: .875rem; }
.news-controls button:hover { background: var(--pale-blue); }
.news-position { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.news-controls .news-play { min-width: 60px; background: var(--pale-blue); }

/* Research themes and biography. */
.topic-strip { background: #08083e; color: #fff; }
.topic-strip > .page-width { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 23px; }
.topic-strip span { font-size: .75rem; color: #aabfe0; letter-spacing: .08em; }
.topic-strip p { color: #f1f6ff; font-size: var(--body-font-size); }
.topic-strip i { font-style: normal; color: var(--gold); margin-inline: 13px; }
.about-content { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: start; gap: 70px; margin-top: 38px; }
.about-portrait { padding: 10px; border: 1px solid var(--line); border-radius: 26px; background: var(--pale-blue); }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.about-copy p { margin-bottom: 15px; max-width: 730px; }
.about-note .text-link { margin-top: 7px; }

/* News shares the research project card layout. */
.news-section { border-top: 1px solid var(--line); }
.news-grid { margin-top: 32px; }
.news-card-caption { color: var(--ink); font-size: var(--body-font-size); line-height: 1.6; overflow-wrap: anywhere; }
.news-more { margin-top: 28px; }

/* Research controls, project cards and publication/review lists. */
.research-section { background: var(--wash); border-block: 1px solid #e1e8f3; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading h2::after { content: ""; display: block; width: 58px; height: 5px; border-radius: 4px; margin-top: 23px; background: var(--gold); }
.section-heading > .text-link { flex-shrink: 0; margin-bottom: 5px; }
.section-intro { max-width: 650px; margin-top: 19px; }
.orcid-link { background: #fff; border: 1px solid var(--line); border-radius: 40px; padding: 11px 16px; }
.orcid-id { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex-shrink: 0; border-radius: 50%; font: 600 .75rem Arial, sans-serif; letter-spacing: -.05em; color: #25321a; background: #a6ce39; }
.orcid-id.small { width: 19px; height: 19px; }
.research-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; }
.tabs { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 50px; background: #fff; max-width: 100%; overflow-x: auto; }
.tabs button { background: transparent; border: 0; border-radius: 30px; padding: 11px 17px; font-size: .875rem; color: var(--muted); flex-shrink: 0; white-space: nowrap; }
.tabs button[aria-selected='true'] { background: var(--navy); color: #fff; font-weight: 600; }
.tabs button span { font-size: .75rem; margin-left: 5px; opacity: .8; }
.search-box { display: flex; align-items: center; gap: 9px; width: 250px; padding: 13px 16px; border: 1px solid var(--line); background: #fff; border-radius: 30px; }
.search-box svg { flex-shrink: 0; color: var(--navy); }
.search-box input { min-width: 0; width: 100%; border: 0; background: none; font-size: .875rem; outline-offset: 8px; }
.research-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; font-size: .75rem; color: var(--muted); padding-block: 24px 18px; }
.research-meta p { max-width: 80%; }
#result-count { white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { --card-accent: var(--navy); display: flex; flex-direction: column; min-width: 0; background: #fff; padding: 20px; border: 1px solid #dce4f1; border-radius: 18px; position: relative; box-shadow: 0 5px 15px #33315d03; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 9px 24px #33315d0c; }
.project-card.accent-mint { --card-accent: #126c76; }
.project-card.accent-coral { --card-accent: #91600a; }
.project-heading { display: flex; align-items: flex-start; gap: 19px; }
.project-image { width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -20px -20px 18px; border-radius: 17px 17px 0 0; background: var(--pale-blue); }
.project-title { min-width: 0; }
.project-origin { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--card-accent); line-height: 1.4; margin: 2px 0 9px; }
.project-status { position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; padding: 4px 10px; border: 1px solid; border-radius: 24px; font-size: .75rem; font-weight: 600; line-height: 1.4; box-shadow: 0 2px 8px #08083e1a; }
.project-status.is-ongoing { color: #126c76; background: #e1f3f3; border-color: #b9dcdc; }
.project-status.is-completed { color: #455570; background: #edf1f7; border-color: #d2dbe8; }
.project-card h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; font-weight: 700; overflow-wrap: anywhere; }
.project-card h3 a:hover { color: var(--card-accent); }
.project-flip-card .project-card-title { max-height: 2.8em; overflow: hidden; }
.project-card-front .project-title { flex: 1; }
.project-description { font-size: var(--body-font-size); line-height: 1.6; margin-top: 16px; }
.project-meta { font-size: var(--body-font-size); line-height: 1.7; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e6ecf5; }
.project-link { color: var(--card-accent); align-self: flex-start; margin-top: auto; padding-top: 16px; }

/* Research cards keep their summary height while the description turns into view. */
.project-card.project-flip-card { display: block; padding: 0; border: 0; background: transparent; perspective: 1200px; }
.project-flip-inner { position: relative; display: grid; height: 100%; transform-style: preserve-3d; transition: transform .5s ease; }
.project-flip-card.is-flipped .project-flip-inner { transform: rotateY(180deg); }
.project-card-front, .project-card-back { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid #dce4f1; border-radius: 18px; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.project-card-front { position: relative; }
.project-card-front .project-image { aspect-ratio: 32 / 9; object-fit: cover; object-position: center; background: #faf8ef; }
.project-card-front .project-origin { font-size: .875rem; }
.project-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 16px; }
.project-card-actions .project-link { margin-top: 0; padding-top: 0; }
.project-flip-toggle { align-self: flex-start; min-height: 44px; padding: 8px 13px; border: 1px solid #c8d5e8; border-radius: 24px; background: var(--pale-blue); color: var(--card-accent); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.project-flip-toggle:hover { background: #dce8fa; }
.project-card-back { position: absolute; inset: 0; min-height: 0; transform: rotateY(180deg); background: var(--pale-blue); }
.project-card-back .project-card-title {flex-shrink: 0;}
.project-details-label { min-height: 1.75rem; margin-bottom: 12px; padding-right: 110px; color: var(--card-accent); font-size: .875rem; font-weight: 700; letter-spacing: .06em; }
.project-details-body { flex: 0 1 8em; height: 8em; max-height: 8em; min-height: 0; font-size: var(--body-font-size); line-height: 1.6; overflow-y: auto; overscroll-behavior-y: contain; margin-block: 16px; padding-right: 10px; scrollbar-width: thin; }
.project-details-body .project-description { margin-top: 0; white-space: pre-line; }
.project-card-back .project-card-actions { margin-top: 0; padding-top: 0; }
.project-back-link { min-height: 44px; padding: 8px 0; border: 0; background: none; white-space: nowrap; }
.project-card-actions .project-explore { min-height: 44px; margin-left: auto; padding: 10px 14px; gap: 8px; align-self: center; }
.research-row { display: grid; grid-template-columns: 60px 1fr 40px; gap: 20px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.research-year { color: var(--navy); font-size: .875rem; font-weight: 500; padding-top: 4px; }
.research-row h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.7; letter-spacing: -.01em; }
.research-row h3 a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.row-meta { font-size: .75rem; margin-top: 8px; }
.publication-reference { display: none; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .publication-reference { display: block; }
}
.type-badge { display: inline-block; border-radius: 4px; background: #e5eefb; color: #274875; font-size: .75rem; padding: 2px 7px; margin-right: 9px; }
.row-link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #e5eefb; color: var(--navy); font-size: 1.1rem; }
.review-row .research-year { font-size: 1.5rem; line-height: 1.2; }
.research-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.source-note { display: flex; align-items: center; gap: 9px; font-size: .75rem; }
.empty-state { padding-block: 35px; grid-column: 1 / -1; }

/* Teaching combines a bold introduction with quiet, readable course cards. */
.teaching-section { display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; gap: 38px 55px; }
.teaching-section > .section-heading { grid-column: 1 / -1; }
.teaching-intro { padding: 36px; border-radius: 24px; background: #edf3fc; overflow: hidden; }
.teaching-intro > p { margin-bottom: 22px; color: #4c5e79; }
.teaching-intro .text-link { color: var(--blue); }
.teaching-illustration { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 886; object-fit: cover; object-position: center top; border-radius: 16px; margin-top: 28px; }
.teaching-list { display: grid; gap: 18px; }
.teaching-list article { padding: 25px 27px; border-radius: 18px; background: #f0f5fd; border: 1px solid #dde7f5; }
.teaching-list article:nth-child(2) { background: #f0f8f8; border-color: #d8eaea; }
.teaching-list article:nth-child(3) { background: #fff8e9; border-color: #f0e3c4; }
.course-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #395577; font-size: .75rem; letter-spacing: .05em; margin-bottom: 12px; }
.course-meta span + span { border: 1px solid #bdcde5; padding: 2px 8px; border-radius: 5px; }
.teaching-list h3 { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.teaching-list p { font-size: var(--body-font-size); margin-top: 13px; }
.teaching-list .text-link { margin-top: 18px; }

/* Essays and the newsletter. */
.writing-section { background: #f1f6fc; border-block: 1px solid #dce6f2; }
.writing-section .eyebrow { color: #2355c9; }
.writing-section .green { color: #2355c9; }
.substack-icon { color: #2355c9; font-size: 1.25rem; }
.writing-source { font-size: var(--body-font-size); margin-top: 28px; }
.writing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.post-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce4f1; border-radius: 19px; background: #fff; padding: 25px; overflow: hidden; }
.post-image-link { display: block; height: auto; aspect-ratio: 16 / 10; margin: -25px -25px 24px; overflow: hidden; background: var(--pale-blue); }
.post-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-image-link:hover .post-image { transform: scale(1.035); }
.post-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: .75rem; color: #53617a; line-height: 1.6; margin-bottom: 15px; }
.post-card h3 { font-size: 1.45rem; font-weight: 700; font-family: var(--sans); line-height: 1.3; letter-spacing: -.02em; }
.post-card h3 a:hover { color: var(--navy); }
.post-card > p { font-size: var(--body-font-size); margin-block: 17px 24px; }
.post-card > .text-link { margin-top: auto; }
.newsletter { display: flex; align-items: center; gap: 25px; background: var(--navy); color: #fff; border-radius: 22px; padding: 36px; margin-top: 35px; }
.newsletter-icon { color: var(--pale-gold); font-size: 4rem; line-height: 1; }
.newsletter h3 { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; }
.newsletter p { color: #c5d9f5; font-size: var(--body-font-size); margin-top: 6px; }
.newsletter > .button { margin-left: auto; flex-shrink: 0; background: var(--pale-gold); color: #23213b; box-shadow: none; }
.newsletter > .button:hover { background: #ffedc3; }

/* Contact and footer. */
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.contact-section .eyebrow { margin-bottom: 18px; }
.contact-section p:not(.eyebrow) { max-width: 580px; margin-top: 22px; }
.contact-section .button { flex-shrink: 0; }
.site-footer { background: #08083e; color: #fff; padding-block: 38px; }
.site-footer > .page-width { position: relative; }
.footer-brand { font-family: var(--serif); font-size: 1.9rem; }
.footer-brand .green { color: var(--gold); }
.site-footer p { color: #b6c8e4; font-size: var(--body-font-size); margin-top: 4px; }
.site-footer .footer-acknowledgement { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ffffff26; font-size: .875rem; }
.site-footer > .page-width > div { position: absolute; right: 0; bottom: 4px; display: flex; flex-wrap: wrap; gap: 22px; color: #d5e2f5; font-size: .75rem; }
.site-footer a:hover { color: var(--gold); }

/* Tablet layouts. */
@media (max-width: 1100px) {
  .nav-contact { display: none; }
  .page-width { width: calc(100% - 64px); }
  .hero { width: calc(100% - 40px); gap: 24px 35px; padding: 40px; }
  .hero h1 { font-size: 4.6vw; }
  .hero-actions { gap: 17px; }
  .topic-strip > .page-width { flex-direction: column; align-items: flex-start; gap: 7px; }
  .about-content { gap: 40px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { max-width: 650px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-heading { gap: 14px; }
  .project-origin { font-size: .75rem; letter-spacing: 0; }
  .teaching-section { gap: 30px; }
  .teaching-intro { padding: 28px; }
  .newsletter { flex-wrap: wrap; }
  .newsletter > .button { margin-left: auto; }
  .newsletter-icon { display: none; }
  .site-footer > .page-width > div { position: static; margin-top: 22px; }
}

@media (max-width: 800px) {
  .header-inner { width: calc(100% - 48px); min-height: 80px; }
  nav { gap: 12px; }
  .hero { gap: 24px 30px; padding: 32px 30px; grid-template-columns: 1.2fr 1fr; }
  .hero .eyebrow { font-size: .75rem; }
  .small-rule { display: none; }
  .hero h1 { font-size: 4.7vw; }
  .hero h1 em { font-size: 1.18em; }
  .hero-news { padding: 16px; border-radius: 20px; }
  .news-heading { letter-spacing: .04em; }
  .section-space { padding-block: 65px; }
  .about-content { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .section-heading { flex-direction: column; gap: 18px; }
  .research-controls { flex-direction: column; align-items: stretch; }
  .tabs { align-self: flex-start; }
  .search-box { width: 100%; }
  .teaching-section { grid-template-columns: 1fr; gap: 25px; }
  .writing-grid { grid-template-columns: 1fr; }
  .post-image-link { aspect-ratio: 16 / 9; }
  .post-card h3 { font-size: 1.65rem; }
  .newsletter > .button { margin-left: 0; }
  .contact-section { flex-direction: column; align-items: flex-start; gap: 26px; }
}

/* Phone layouts, including narrow 320px screens. */
@media (max-width: 600px) {
  html { scroll-padding-top: 95px; }
  .page-width { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 40px); min-height: 76px; }
  .brand { font-size: .75rem; gap: 10px; }
  .brand-mark { font-size: 2.4rem; border-radius: 12px 12px 3px 12px; }
  .menu-toggle { display: flex; align-items: center; gap: 12px; background: var(--pale-blue); color: var(--navy); border: 0; border-radius: 30px; font-size: .875rem; padding: 10px 15px; }
  nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px #10143b0a; padding: 16px 24px 24px; }
  nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  nav > a { padding: 12px 0; }
  nav > a:not(.nav-contact)::after { right: auto; width: 25px; bottom: 7px; }
  nav > .nav-contact { display: block; margin-top: 10px; padding: 12px 16px; }
  .hero { width: calc(100% - 24px); margin-block: 14px 23px; padding: 28px 23px; grid-template-columns: 1fr; gap: 28px; border-radius: 23px; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .05em; margin-bottom: 21px; }
  .hero h1 { font-size: clamp(2.2rem, 8.5vw, 3.3rem); }
  .hero h1 em { font-size: 1.21em; }
  .hero-intro { margin-top: 21px; }
  .hero-actions { gap: 20px; }
  .hero-actions .button { padding: 14px 19px; }
  .hero-news { width: 100%; }
  .news-heading .small-rule { display: inline-block; }
  .news-empty { min-height: 220px; }
  .topic-strip > .page-width { padding-block: 23px; gap: 10px; }
  .topic-strip span { font-size: .75rem; }
  .topic-strip p { line-height: 2; }
  .topic-strip i { margin-inline: 7px; }
  .section-space { padding-block: 48px; }
  .about-content { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .about-portrait { width: min(100%, 260px); margin-inline: auto; }
  h2 { font-size: 2.55rem; }
  .research-controls { margin-top: 26px; gap: 15px; }
  .tabs { width: 100%; padding: 4px; gap: 0; border-radius: 14px; }
  .tabs button { padding: 10px 12px; border-radius: 10px; font-size: .875rem; }
  .tabs button span { font-size: .75rem; margin-left: 4px; }
  .research-meta { padding-block: 20px 17px; gap: 12px; }
  .research-meta p { max-width: 75%; }
  .project-card { padding: 20px; border-radius: 17px; }
  .project-heading { gap: 14px; }
  .project-image { border-radius: 16px 16px 0 0; }
  .project-card h3 { font-size: 1.25rem; }
  .project-origin { font-size: .75rem; line-height: 1.4; margin-block: 0 7px; }
  .project-grid { grid-template-columns: 1fr; gap: 17px; }
  .research-row { grid-template-columns: 40px 1fr; gap: 12px; padding-block: 21px; }
  .research-row h3 { overflow-wrap: anywhere; }
  .research-row .row-link { display: none; }
  .research-year { font-size: .75rem; }
  .research-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .teaching-intro { padding: 27px 24px; }
  .teaching-list article { padding: 23px; }
  .course-meta { letter-spacing: .02em; }
  .newsletter { padding: 28px 24px; gap: 24px; }
  .newsletter h3 { font-size: 2rem; }
  .newsletter > .button { white-space: normal; text-align: left; }
  .site-footer > .page-width > div { gap: 12px 20px; }
  .site-footer > .page-width > div > span { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
