:root {
  --bg: #f6f4ef;
  --text: #191c20;
  --muted: #4f5660;
  --line: #d5d1c7;
  --accent: #1f3a4a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 8% -10%, #efebe3 0%, transparent 60%),
    var(--bg);
  line-height: 1.72;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 5.7rem 0;
}

.section-divider {
  border-top: 1px solid rgba(81, 89, 97, 0.14);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.14;
  letter-spacing: 0.01em;
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  margin-bottom: 1.3rem;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.4rem;
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

p,
li {
  color: var(--muted);
  margin: 0 0 1rem;
}

ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(5px);
  background: rgba(246, 244, 239, 0.9);
  border-bottom: 1px solid rgba(81, 89, 96, 0.16);
}

.nav-wrap {
  min-height: 4.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  text-decoration: none;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: #48525d;
  font-size: 0.9rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(31, 58, 74, 0.35);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #f9f8f4;
  border-radius: 6px;
  padding: 0.38rem 0.68rem;
  font: inherit;
}

.intro {
  padding-top: 7rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: stretch;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-main {
  max-width: 100%;
}

.kicker,
.entry-meta {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 500;
  color: #5d6671;
}

.lede {
  color: #37414c;
  font-size: clamp(1.01rem, 1.45vw, 1.14rem);
}

.areas {
  margin: 1rem 0 0;
  color: #3a4550;
}

.hero-links {
  margin-top: 1.6rem;
  padding-top: 1rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.62rem 1rem;
  border: 1px solid #2d343d;
  background: #2d343d;
  color: #f7f6f2;
}

.button:hover,
.button:focus-visible {
  background: #21272f;
}

.button.ghost {
  background: transparent;
  color: #313b46;
  border-color: #b9b5ab;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(233, 229, 219, 0.8);
}

.intro-figure {
  margin: 0;
  justify-self: center;
  align-self: center;
  width: min(100%, 470px);
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: #faf8f3;
  box-shadow: 0 12px 28px rgba(20, 26, 34, 0.06);
}

.intro-figure img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(25, 28, 32, 0.12);
}

.focus-grid {
  display: block;
}

.focus-grid article + article {
  border-top: 1px solid rgba(93, 103, 110, 0.2);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.paper-line {
  color: #3a4651;
}

.pub-block + .pub-block {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(93, 103, 110, 0.14);
}

.highlight-paper + .highlight-paper {
  margin-top: 1rem;
}

.highlight-meta {
  color: #25313d;
  font-weight: 600;
}

.highlight-paper {
  padding: 0;
  border: 1px solid rgba(93, 103, 110, 0.16);
  background: #fbfaf7;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.highlight-paper:hover {
  border-color: rgba(31, 58, 74, 0.28);
  box-shadow: 0 10px 24px rgba(20, 26, 34, 0.05);
}

.highlight-paper[open] {
  border-color: rgba(31, 58, 74, 0.24);
}

.highlight-paper summary {
  cursor: pointer;
  list-style: none;
  display: block;
  padding: 1rem 1.1rem;
}

.highlight-paper summary::-webkit-details-marker {
  display: none;
}

.highlight-title {
  display: inline;
}

.highlight-toggle::before {
  content: " (Click to see more)";
  color: #1f3a4a;
  font-weight: 500;
}

.highlight-paper[open] .highlight-toggle::before {
  content: " (Click to see less)";
}

.conference-paper + .conference-paper {
  margin-top: 1rem;
}

.conference-toggle::before {
  content: " (Click to see presentations)";
  color: #1f3a4a;
  font-weight: 500;
}

.conference-paper[open] .conference-toggle::before {
  content: " (Click to hide presentations)";
}

.highlight-body {
  margin-top: 0;
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(93, 103, 110, 0.1);
}

.highlight-body p {
  margin-top: 1rem;
}

.conference-list {
  margin-top: 1rem;
}

.conference-list li {
  margin-bottom: 0.85rem;
}

.section-note {
  margin-top: 1rem;
  color: #6a737d;
  font-size: 0.92rem;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

.split-grid article + article {
  border-left: 1px solid rgba(93, 103, 110, 0.14);
  padding-left: 2rem;
}

.timeline li {
  margin-bottom: 0.7rem;
}

.award-gallery-wrap {
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}

.award-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
}

.award-gallery .gallery-item {
  width: min(46vw, 520px);
  min-height: 320px;
}

.entry + .entry {
  margin-top: 2.6rem;
}

.gallery {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  margin: 0;
  min-height: 220px;
  overflow: hidden;
  background: #d9d4c8;
  border: 1px solid rgba(25, 28, 32, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.talk-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.talk-gallery .gallery-item {
  min-height: 320px;
}

.talk-gallery .gallery-item img {
  object-position: center center;
}

.conference-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.conference-gallery .gallery-item {
  min-height: 320px;
}

.framework-link,
.ref-link {
  margin-top: 0.5rem;
  color: #3f4a56;
}

.framework-link a,
.ref-link a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 58, 74, 0.3);
}

.framework-page h1 {
  max-width: none;
}

.framework-list {
  margin: 1.1rem 0 1.2rem;
  padding-left: 1.2rem;
}

.framework-list li {
  margin-bottom: 0.6rem;
}

.logo-row {
  display: none;
}

.text-link {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid rgba(80, 89, 98, 0.16);
  padding: 4.2rem 0 2.2rem;
  background: #f3f0e8;
}

.footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-message {
  margin: 0;
  color: #1f2b36;
  text-align: center;
  font-size: clamp(1.28rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}

.footer-message span {
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #2b3e4d;
  border-bottom: 0;
  padding-bottom: 0;
  line-height: 1;
}

.footer-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .intro-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .split-grid article + article {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(93, 103, 110, 0.18);
    padding-top: 1.3rem;
  }

  .intro-figure img {
    max-height: 460px;
  }

  .intro-main {
    max-width: 100%;
  }

  .hero-links {
    flex-wrap: wrap;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talk-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conference-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  h1 {
    font-size: clamp(2.1rem, 8.2vw, 2.9rem);
    line-height: 1.1;
    text-wrap: pretty;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1.5rem;
    top: calc(100% + 0.5rem);
    width: min(280px, calc(100vw - 3rem));
    display: none;
    flex-direction: column;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: #f9f8f4;
  }

  .site-nav.open {
    display: flex;
  }

  .section {
    padding: 4.5rem 0;
  }

  .intro {
    padding-top: 5.8rem;
  }

  .intro-figure img {
    max-height: 420px;
  }

  .gallery,
  .award-gallery,
  .talk-gallery,
  .conference-gallery {
    grid-template-columns: 1fr;
  }

  .award-gallery {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .award-gallery .gallery-item {
    width: 100%;
    max-width: 520px;
  }

  .footer-links {
    gap: 0.8rem 1rem;
  }
}

.layer-section {
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(93, 103, 110, 0.14);
}

.layer-section h2 {
  margin-bottom: 1rem;
}

.layer-image {
  margin: 1rem 0 1.2rem;
  border: 1px solid var(--line);
  background: #fbfaf7;
  padding: 0.5rem;
}

.layer-image img {
  width: 100%;
  height: auto;
  display: block;
}

.layer-image.full-width {
  margin-top: 1.4rem;
}
