:root {
  --hero-background-position: center 38%;
  --template-background: #2e3842;
  --template-accent: #A3D2E5;
  --template-coral: #ed4933;
  --template-muted: rgba(255, 255, 255, 0.72);
}

body,
body.is-preload,
body #page-wrapper {
  background-color: var(--template-background);
}

#header,
#header.alt {
  z-index: 10001;
  background: rgba(46, 56, 66, 0.92);
}

/* Dim only the page behind the menu, never the menu panel itself. */
body.is-menu-visible #page-wrapper {
  opacity: 1;
}

#page-wrapper:before {
  background: rgba(8, 14, 20, 0.6);
}

body.is-menu-visible #page-wrapper:before {
  z-index: 9999;
}

#menu {
  z-index: 10050;
}

#header h1 a,
#header nav > ul > li > a {
  color: #2e3842 !important;
}

#menu ul li a {
  color: #2e3842;
}

.site-logo {
  display: inline-block;
  width: 2.5em;
  height: 2.5em;
  object-fit: contain;
  vertical-align: middle;
}

#menu {
  background: #A3D2E5;
}

.wrapper.style1 {
  background-color: #A3D2E5;
}

.wrapper.style1 p,
.wrapper.style1 li,
.wrapper.style1 h2,
.wrapper.style1 h3,
.wrapper.style1 h4,
.wrapper.style1 h5,
.wrapper.style1 h6,
.wrapper.style1 strong,
.wrapper.style1 b {
  color: #2e3842 !important;
}

.wrapper.style1 .features li:before {
  color: #2e3842 !important;
}

.content-page-hero {
  display: flex;
  min-height: clamp(22rem, 48svh, 34rem);
  align-items: center;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 4rem;
  background-image: linear-gradient(rgba(20, 29, 37, 0.7), rgba(20, 29, 37, 0.58)), var(--page-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  text-align: center;
}

.content-page-hero .inner {
  width: min(100%, 64rem);
  margin-inline: auto;
}

.content-page-hero h1 {
  margin: 0 0 1rem;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.content-page-hero p {
  max-width: 62ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  letter-spacing: 0.06em;
  text-transform: none;
}

.content-page-body.wrapper.style5 {
  width: 100%;
  min-height: 50vh;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
  background: #fff;
  color: #4e4852;
}

.content-page-body.wrapper.style5 > .inner {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.site-main .content-page-body,
.site-main .content-page-body p,
.site-main .content-page-body li,
.site-main .content-page-body h1,
.site-main .content-page-body h2,
.site-main .content-page-body h3,
.site-main .content-page-body h4,
.site-main .content-page-body h5,
.site-main .content-page-body h6,
.site-main .content-page-body blockquote,
.site-main .content-page-body time {
  color: #4e4852 !important;
}

.site-main .content-page-body h1,
.site-main .content-page-body h2,
.site-main .content-page-body h3,
.site-main .content-page-body h4 {
  line-height: 1.3;
}

.site-main .content-page-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.site-main .content-page-body h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}

.site-main .content-page-body a {
  color: #2e3842 !important;
  -webkit-text-fill-color: #2e3842 !important;
  border-bottom-color: rgba(163, 210, 229, 0.75);
}

.site-main .content-page-body a:hover,
.site-main .content-page-body a:focus-visible {
  color: #168f86 !important;
  -webkit-text-fill-color: #168f86 !important;
}

.site-main .content-page-body .media-disclosure {
  margin: 1rem 0;
}

.site-main .content-page-body .media-disclosure:not([open]) > :not(summary) {
  display: none !important;
}

.site-main .content-page-body .media-disclosure > summary {
  width: fit-content;
  color: #2e3842 !important;
  cursor: pointer;
  font-weight: 600;
}

.site-main .content-page-body .media-disclosure > summary:hover,
.site-main .content-page-body .media-disclosure > summary:focus-visible {
  color: #168f86 !important;
}

.site-main .content-page-body .editorial-section {
  margin: 0;
  padding: 2rem 0;
  border-bottom: 1px solid #dfdfdf;
  background: transparent;
}

.site-main .content-page-body .editorial-section:first-child {
  padding-top: 0;
}

.research-project,
.research-publication,
.outreach-entry {
  padding: 1.5rem 0;
  border-top: 1px solid #dfdfdf;
}

.outreach-contents {
  margin: 0 0 3rem;
  padding: 1.5rem 0;
  border-top: 2px solid #A3D2E5;
  border-bottom: 1px solid #dfdfdf;
}

.outreach-contents h2 {
  margin-bottom: 1rem;
}

.outreach-contents > ul {
  columns: 2;
  column-gap: 3rem;
  padding-left: 1.25rem;
}

.outreach-contents li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

.outreach-contents ul ul {
  padding-left: 1.25rem;
}

.site-main .content-page-body .outreach-year {
  margin: 0 0 2rem;
}

.site-main .content-page-body .outreach-year > h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #A3D2E5;
}

.site-main .content-page-body .outreach-entry h3 {
  margin-bottom: 0.65rem;
}

.article-content {
  width: min(100%, 74ch);
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.site-main .content-page-body .article-content h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dfdfdf;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: 0.1em;
}

.site-main .content-page-body .article-content h3 {
  margin-top: 2rem;
  font-size: 1.12rem;
}

.site-main .content-page-body .article-content p,
.site-main .content-page-body .article-content li {
  font-size: 1rem;
  line-height: 1.8;
}

.site-main .content-page-body .article-content .figure {
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dfdfdf;
}

.site-main .content-page-body .article-content .figure img {
  max-height: min(34rem, 70vh);
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.site-main .content-page-body .article-content math[display="block"],
.site-main .content-page-body .article-content .katex-display {
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent !important;
  border: 0;
  color: inherit !important;
}

.site-main .content-page-body .article-content .katex-display > .katex {
  white-space: normal;
}

.site-main .content-page-body .article-content .katex,
.site-main .content-page-body .article-content .katex * {
  color: inherit !important;
}

.site-main .content-page-body .article-content pre:has(> code.language-math) {
  margin: 1.25rem 0;
  padding: 0;
  overflow-x: auto;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  color: inherit !important;
}

.site-main .content-page-body .article-content pre > code.language-math {
  display: block;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0;
  color: inherit !important;
  white-space: normal;
}

#banner {
  height: auto;
  min-height: min(88svh, 56rem);
  padding-top: 6rem;
  background-image: linear-gradient(rgba(20, 29, 37, 0.64), rgba(20, 29, 37, 0.44)), url('/images/cheveux.png');
  background-position: var(--hero-background-position, center);
  background-size: cover;
  background-repeat: no-repeat;
}

#banner h2 {
  max-width: 100%;
  padding-inline: 0.4em;
  font-size: clamp(2.1rem, 6.2vw, 5.35rem);
  letter-spacing: 0.11em;
  overflow-wrap: anywhere;
}

#banner .hero-kicker {
  color: var(--template-muted);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.75rem;
}

#banner .hero-intro {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--template-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: none;
}

.site-main {
  min-height: 60vh;
}

.site-main .site-wrap {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

.site-main .read-width {
  max-width: 58rem;
  margin-inline: auto;
}

.site-main .read-width > h1 {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.site-main .editorial-item {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.site-main .editorial-item:first-child {
  border-top: 0;
}

.site-main .editorial-item h2,
.site-main .article-content h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.site-main a:not(.button):not(.icon) {
  border-bottom-color: rgba(163, 210, 229, 0.65);
}

.site-main a:not(.button):not(.icon):hover,
.site-main a:not(.button):not(.icon):focus-visible {
  color: #00ffcc;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  background: #1d242a;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-preview {
  display: block;
  width: 100%;
  height: min(76svh, 58rem);
  min-height: 28rem;
  margin: 1.25rem 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
}

.latex-document {
  display: block;
  width: 100%;
  min-height: 82svh;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--template-background);
}

.site-main .article-header {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.site-main .article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.site-main .article-date,
.site-main .meta,
.site-main .summary {
  color: var(--template-muted);
}

.site-main .article-content h2 {
  margin-top: 2rem;
}

.cv-heading {
  margin: 2rem 0 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.cv-heading p {
  margin: 0.25rem 0;
}

.cv-pdf {
  margin: 0 0 3rem;
}

.cv-pdf .download {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cv-list {
  list-style: none;
  padding: 0;
}

.cv-list li {
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.cv-list h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.cv-list p {
  margin-bottom: 0.55rem;
}

.cv-list time {
  color: var(--template-muted);
}

.software-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.5rem 1.25rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

#footer {
  background: #1d242a;
}

@media screen and (max-width: 736px) {
  #banner {
    min-height: min(86svh, 48rem);
    padding: 6em 1.25rem 4em;
  }

  #banner h2 {
    font-size: clamp(2rem, 9vw, 3.5rem);
    letter-spacing: 0.08em;
  }

  #banner br {
    display: block;
  }

  .site-main .site-wrap {
    padding: 6rem 1rem 3.5rem;
  }

  .site-main .editorial-item {
    padding: 1.5rem 0;
  }

  .pdf-preview {
    height: 68svh;
    min-height: 24rem;
  }
}