@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Lora:wght@500;600&display=swap");


:root {
  --background: #fffdfd;

  --text: #111111;
  --body: #3d383b;
  --muted: #766e73;

  --border: #e7dfe4;

  --magenta: #b10b63;
  --magenta-dark: #830747;
  --magenta-soft: #f9edf3;

  --page-width: 920px;
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 34px;

  background: var(--background);
  color: var(--text);

  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 18.5px;
  line-height: 1.68;

  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--magenta-soft);
  color: var(--text);
}

header,
main,
footer {
  width: 100%;
  max-width: var(--page-width);

  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  padding-top: 30px;
}

.social-links {
  display: flex;
  align-items: center;

  gap: 16px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  color: #282326;

  text-decoration: none;

  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

.icon-link svg {
  width: 19px;
  height: 19px;

  fill: currentColor;
}

.icon-link:hover {
  color: var(--magenta);
  transform: translateY(-1px);
}

.resume-link {
  margin-left: 5px;

  color: var(--text);

  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;

  text-decoration-color: rgba(177, 11, 99, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.resume-link:hover {
  color: var(--magenta);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
  display: flex;
  align-items: center;

  gap: 32px;
}

nav a {
  color: var(--magenta);

  font-family: "Lora", Georgia, serif;
  font-size: 18px;
  font-weight: 600;

  text-decoration: none;
}

nav a:hover {
  color: var(--magenta-dark);
}


/* =========================================================
   HERO
   ========================================================= */

header {
  padding-bottom: 58px;

  border-bottom: 1px solid var(--border);
}

.hero {
  padding-top: 58px;
}

h1 {
  margin: 0 0 26px 0;

  color: var(--text);

  font-family:
    "Lora",
    Georgia,
    serif;

  font-size: clamp(56px, 6vw, 70px);
  line-height: 1.02;

  font-weight: 600;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 820px;

  margin: 0;

  color: #292427;

  font-family:
    "Lora",
    Georgia,
    serif;

  font-size: 20.5px;
  line-height: 1.65;

  font-weight: 500;
}


/* =========================================================
   GENERAL LINKS
   ========================================================= */

a {
  color: var(--magenta);

  text-decoration-color: rgba(177, 11, 99, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;

  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--magenta-dark);
  text-decoration-color: var(--magenta-dark);
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
  padding: 62px 0;

  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 40px 0;

  color: var(--text);

  font-family:
    "Lora",
    Georgia,
    serif;

  font-size: 36px;
  line-height: 1.2;

  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;

  color: var(--text);

  font-family:
    "Lora",
    Georgia,
    serif;

  font-size: 25px;
  line-height: 1.35;

  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
}


/* =========================================================
   RESEARCH
   ========================================================= */

.project {
  padding-bottom: 38px;
  margin-bottom: 38px;

  border-bottom: 1px solid var(--border);
}

.project:last-child {
  padding-bottom: 0;
  margin-bottom: 0;

  border-bottom: 0;
}

.project h3 {
  margin-bottom: 12px;
}

.project > p {
  max-width: 820px;

  margin-bottom: 0;

  color: var(--body);

  font-size: 18.5px;
  line-height: 1.7;
}

.project-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 12px;
}

.project-heading h3 {
  margin: 0;
}

.status {
  flex-shrink: 0;

  color: var(--magenta);

  font-family: "DM Sans", sans-serif;

  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* =========================================================
   PUBLICATIONS
   ========================================================= */

.publication {
  padding-bottom: 39px;
  margin-bottom: 39px;

  border-bottom: 1px solid var(--border);
}

.publication:last-child {
  padding-bottom: 0;
  margin-bottom: 0;

  border-bottom: 0;
}

.publication h3 {
  margin-bottom: 9px;
}

.publication > p {
  max-width: 820px;
}

.publication-meta {
  margin: 0 0 14px 0;

  color: var(--magenta);

  font-family: "DM Sans", sans-serif;

  font-size: 15.5px;
  font-weight: 500;

  letter-spacing: 0;
}

.publication p:not(.publication-meta):not(.publication-links) {
  margin-bottom: 0;

  color: var(--body);

  font-size: 18.5px;
  line-height: 1.7;
}


/* =========================================================
   PAPER LINKS
   ========================================================= */

.publication-links {
  display: flex;

  gap: 20px;

  margin: 15px 0 0 0;
}

.publication-links a {
  color: var(--magenta);

  font-family: "DM Sans", sans-serif;

  font-size: 16px;
  font-weight: 600;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.publication-links a:hover {
  color: var(--magenta-dark);
}


/* =========================================================
   CONTACT
   ========================================================= */

#contact {
  border-bottom: 0;
}

.contact-copy {
  max-width: 760px;

  margin-bottom: 0;

  color: var(--body);

  font-size: 18.5px;
  line-height: 1.7;
}

.contact-copy a {
  font-weight: 500;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 26px 0 44px;

  color: var(--muted);

  font-size: 14px;
}

footer p {
  margin: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  body {
    padding: 0 22px;

    font-size: 17px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;

    gap: 23px;

    padding-top: 25px;
  }

  nav {
    flex-wrap: wrap;

    gap: 21px;
  }

  nav a {
    font-size: 17px;
  }

  .hero {
    padding-top: 48px;
  }

  header {
    padding-bottom: 48px;
  }

  h1 {
    margin-bottom: 22px;

    font-size: 50px;
  }

  .intro {
    font-size: 19px;
    line-height: 1.6;
  }

  section {
    padding: 52px 0;
  }

  h2 {
    margin-bottom: 32px;

    font-size: 31px;
  }

  h3 {
    font-size: 23px;
  }

  .project > p,
  .publication p:not(.publication-meta):not(.publication-links),
  .contact-copy {
    font-size: 17.5px;
  }

  .project-heading {
    display: block;
  }

  .status {
    display: inline-block;

    margin-top: 6px;
  }
}
