:root {
  --ink: #636363;
  --muted: #777777;
  --paper: #935d8c;
  --surface: rgba(255, 255, 255, 0.94);
  --deep: #5f4d93;
  --line: #dddddd;
  --teal: #efa8b0;
  --blue: #8cc9f0;
  --gold: #f4c1d8;
  --rose: #e37682;
  --pink: #efa8b0;
  --lavender: #c79cc8;
  --shadow: 0 1.5rem 4rem rgba(46, 24, 56, 0.22);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(45deg, rgba(229, 119, 139, 0.76), rgba(95, 77, 147, 0.78), rgba(74, 150, 196, 0.64)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 34rem),
    url("assets/density_projection_135.png") center top / cover fixed,
    var(--paper);
  color: var(--ink);
  font-size: 15.5pt;
  font-weight: 300;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(980px, calc(100% - 2rem));
  margin: 0.75rem auto 0;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.8rem 2.5rem rgba(46, 24, 56, 0.16);
  backdrop-filter: blur(22px);
}

.brand,
.nav,
.actions,
.link-stack,
.report-links,
.socials,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.55rem;
  font-family: inherit;
  font-weight: 300;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--surface);
  padding: 0.22rem;
}

.nav {
  gap: 0.2rem;
  color: var(--muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0;
}

.nav a {
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(239, 168, 176, 0.2);
}

.nav a:hover,
.site-footer a:hover,
.outreach-grid a:hover,
.publication-panel a:hover,
.report-links a:hover,
.socials a:hover {
  color: var(--teal);
}

.hero,
.section,
.cv-section,
.site-footer {
  width: min(1500px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.82fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  min-height: calc(100svh - 5.5rem);
  padding: 4rem 2.6rem 4.5rem;
  color: #ffffff;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-weight: 300;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.lead {
  max-width: 41rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
}

.actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #efa8b0, #a89cc8);
  color: #ffffff;
}

.button.secondary {
  background: var(--surface);
  color: var(--deep);
}

.portrait-card {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  width: min(100%, 25rem);
  aspect-ratio: 1;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.section {
  padding: 5rem 2.6rem;
  background: var(--surface);
}

.section + .section,
.cv-section + .section {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.content-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.prose p:last-child,
.section-heading p,
.research-cards p,
.outreach-grid p,
.cv-section p,
.contact-grid p {
  margin-bottom: 0;
}

.research-band {
  padding-bottom: 4rem;
}

.section-heading {
  margin-bottom: 2.8rem;
}

.content-grid > *,
.section-heading > * {
  padding-top: 0.25rem;
}

.research-cards,
.outreach-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.research-cards article,
.outreach-grid article,
.publication-panel,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.research-cards article,
.outreach-grid article,
.contact-grid article {
  padding: 1.25rem;
}

.research-cards span,
.contact-grid span {
  display: block;
  margin-bottom: 1rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.publications-gallery {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.publication-image {
  position: relative;
  display: block;
  min-height: 22rem;
  overflow: hidden;
  background: var(--deep);
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.publication-image:hover img {
  transform: scale(1.035);
}

.publication-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.link-stack {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.link-stack a,
.report-links a,
.outreach-grid a,
.socials a {
  border-radius: 8px;
  font-weight: 800;
}

.link-stack a {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--deep);
}

.report-links {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.report-links a {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.outreach-grid article {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
}

.outreach-grid a {
  margin-top: auto;
  color: var(--blue);
}

.cv-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block: 0;
  padding: 2.4rem 2.6rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(95, 77, 147, 0.94), rgba(77, 143, 198, 0.9));
  color: #ffffff;
}

.cv-section .section-kicker,
.cv-section p {
  color: rgba(255, 255, 255, 0.78);
}

.cv-section h2 {
  margin-bottom: 0.65rem;
}

.cv-section .button {
  flex: 0 0 auto;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--deep);
}

.contact-grid article {
  min-height: 9rem;
}

.contact-grid .social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 9rem;
  justify-content: flex-start;
}

.contact-grid a {
  color: var(--blue);
  font-weight: 800;
}

.socials {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.socials a {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--deep);
}

.socials a:hover {
  background: linear-gradient(135deg, #efa8b0, #a89cc8);
  color: #ffffff;
}

.socials .fab {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  width: 1.35rem;
  height: 1.35rem;
  text-align: center;
}

.paper-page {
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.paper-hero {
  position: relative;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(229, 119, 139, 0.9), rgba(95, 77, 147, 0.9));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.paper-hero .eyebrow,
.paper-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.paper-hero h1 {
  max-width: 12ch;
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.paper-links a {
  background: rgba(255, 255, 255, 0.92);
}

.wide-figure {
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid rgba(83, 42, 109, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wide-figure img {
  width: 100%;
}

.wide-figure figcaption {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.paper-body {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(83, 42, 109, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.narrow-figure img {
  width: min(100%, 42rem);
  margin-inline: auto;
}

.paper-body h2 {
  margin-top: 2rem;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2.4rem;
  border-top: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .content-grid,
  .section-heading,
  .research-cards,
  .outreach-grid,
  .contact-grid,
  .publication-panel,
  .publication-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.25rem;
  }

  .section-heading {
    align-items: start;
  }

  .cv-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-image {
    min-height: 16rem;
  }
}

@media (max-width: 540px) {
  .brand span {
    max-width: 12rem;
  }

  .nav {
    gap: 0.35rem;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .cv-section {
    padding: 1.3rem;
  }
}
