/* Homepage styles; independent of the legacy stylesheet used by the blog. */
:root { --ink: #193333; --muted: #526563; --paper: #f8f8f3; --line: #d8dfd8; --accent: #346b58; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid #b38138; outline-offset: 5px; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1.3em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -1.2px; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; background: white; padding: 10px 20px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 30px; }
.wordmark { font-family: Georgia, serif; font-size: 29px; font-weight: bold; letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }
nav { display: flex; gap: 30px; font-size: 14px; }
nav a { text-decoration: none; padding-block: 12px; }
nav a:hover { text-decoration: underline; }
.hero { color: #fff; background: linear-gradient(90deg, rgba(7, 25, 29, .87), rgba(7, 25, 29, .25)), url('../../images/banner.jpg') center 45% / cover; }
.hero-inner { padding-block: 76px; }
.hero-profile { display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.hero-profile-content { width: 100%; }
.hero-portrait { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 4px solid #ffffff30; }
.hero-profile h1 { font-size: clamp(48px, 5.6vw, 72px); letter-spacing: -1.8px; }
.hero-role { font-size: 17px; color: #d5e1dc; margin: 14px 0 24px; }
.eyebrow { font-family: inherit; font-size: 11px; font-weight: 650; letter-spacing: 2.4px; line-height: 1.6; margin: 0 0 24px; color: var(--accent); }
.hero .eyebrow { color: #b9d6cb; }
.hero-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 650px; margin: 0 auto; padding-block: 8px 0; }
.hero-links a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 4px; font-size: 14px; color: #fff; text-decoration: none; }
.hero-links a:hover { color: #c9dfcc; text-decoration: none; }
.hero-links a:hover span { text-decoration: underline; text-underline-offset: 6px; }
.hero-icon { width: 30px; height: 30px; }
.section { padding-block: 100px; }
.about-copy { max-width: 70ch; }
.about-visual { display: none; }
.about--with-image { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 100px; align-items: center; }
.about--with-image .about-visual { display: block; }
.about-copy > p:not(.eyebrow) { margin-top: 25px; color: var(--muted); }
.about-copy p a { color: var(--ink); }
.text-links { display: flex; flex-wrap: wrap; gap: 30px; font-size: 14px; }
.text-links a { text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.text-links span { margin-left: 14px; }
.publication-label { margin: 26px 0 12px; font-size: 13px; color: var(--muted); }
.publication-links a { display: inline-flex; align-items: center; gap: 9px; }
.publication-links a span { margin-left: 5px; }
.link-icon { width: 20px; height: 20px; flex-shrink: 0; }
.research { background: #eef1eb; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.research-intro { color: var(--muted); max-width: 850px; margin: 30px 0 55px; }
.research-item { display: grid; grid-template-columns: 44% 1fr; gap: 54px; padding-block: 48px; border-top: 1px solid #cbd5cb; align-items: center; }
.research-figure { background: white; padding: 24px; }
.research-figure img { width: 100%; max-height: 330px; object-fit: contain; }
.research-item > *, .research-figure { min-width: 0; }
.carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel-track { display: flex; }
.carousel-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.carousel-slide img { height: 330px; }
.is-ready .carousel-viewport { overflow: hidden; }
.is-ready .carousel-track { transition: transform 600ms cubic-bezier(.22, .61, .36, 1); }
.is-ready .carousel-track.is-resetting { transition: none; }
.carousel-controls { display: flex; align-items: center; justify-content: center; position: relative; margin-top: 12px; padding-inline: 56px; min-height: 44px; }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.carousel-dot, .carousel-toggle { appearance: none; border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.carousel-dot { display: grid; place-items: center; width: 32px; min-height: 44px; }
.carousel-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #bdc9bf; transition: background 150ms, transform 150ms; }
.carousel-dot[aria-pressed="true"]::before { background: var(--accent); transform: scale(1.3); }
.carousel-dot:hover::before { background: var(--accent); }
.carousel-toggle { position: absolute; right: 0; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.carousel-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.carousel-toggle:hover { color: var(--accent); }
.carousel-toggle[hidden] { display: none; }
.carousel-dot:focus-visible, .carousel-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 3px; }
.research-copy .eyebrow { font-size: 10px; margin-bottom: 16px; }
h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.6px; }
.research-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin-top: 20px; }
.paper-link { display: block; font-size: 13px; line-height: 1.7; font-weight: 500; }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 64px; }
.contact > .eyebrow { margin: 0; }
.contact-details { display: flex; align-items: center; gap: 20px; max-width: 100%; }
.contact-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e8eee5; color: var(--accent); flex-shrink: 0; }
.contact-icon svg { width: 26px; height: 26px; }
.contact-copy { min-width: 0; }
.contact-copy > p:first-child { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.contact-details .email { font-family: Georgia, serif; font-size: clamp(19px, 2.1vw, 26px); overflow-wrap: anywhere; margin-bottom: 6px; }
.contact-details .contact-note { font-size: 12px; color: var(--muted); margin: 0; }
.site-footer { padding-block: 30px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) {
  .container { width: calc(100% - 56px); }
  .hero-portrait { width: 190px; height: 190px; }
  nav { gap: 20px; }
  .about--with-image { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .section { padding-block: 76px; }
  .section-heading { align-items: start; }
  .research-item { gap: 30px; }
  .research-figure { padding: 14px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 134px; }
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .header-inner { display: block; padding-top: 12px; min-height: auto; }
  .wordmark { font-size: 25px; }
  nav { gap: 0; justify-content: space-between; font-size: 12px; padding-top: 2px; }
  nav a { padding-block: 10px; }
  .hero-inner { padding-block: 54px; }
  .hero-profile { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-portrait { width: 170px; height: 170px; margin-inline: auto; }
  .hero-profile h1 { font-size: 46px; letter-spacing: -1px; }
  .hero-role { font-size: 14px; margin: 10px 0 18px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.8px; margin-bottom: 20px; }
  .hero-links { gap: 4px; padding-block: 8px; margin-inline: auto; }
  .hero-links a { padding: 12px 0; font-size: 12px; gap: 12px; }
  .hero-icon { width: 26px; height: 26px; }
  .section { padding-block: 60px; }
  .about--with-image { grid-template-columns: 1fr; gap: 34px; }
  .section-heading { display: block; }
  .research-intro { margin-bottom: 36px; }
  .research-item { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .research-figure { padding: 20px; }
  .research-figure img { max-height: 300px; }
  .carousel-slide img { height: 300px; }
  .contact { padding-block: 48px; gap: 20px; }
  .contact-details { gap: 14px; }
  .contact-icon { width: 44px; height: 44px; }
  .site-footer { align-items: start; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) { .is-ready .carousel-track, .carousel-dot::before { transition: none; } }
