/* --------------------------------------------------
   Design variables
-------------------------------------------------- */

:root {
  --background: #f5f2ec;
  --text: #272522;
  --muted: #716d66;
  --accent: #77584e;
  --line: #d8d1c7;
  --page-width: 1120px;
  --content-width: 720px;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
}


/* --------------------------------------------------
   Base styles
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-color: rgba(119, 88, 78, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--text);
}


/* --------------------------------------------------
   Navigation
-------------------------------------------------- */

nav {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin: 0;
}

nav li:first-child {
  margin-right: auto;
  font-family: var(--san);
  font-size: 1.15rem;
  font-weight: 600;
}

nav a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}


/* --------------------------------------------------
   Main container
-------------------------------------------------- */

.container {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
}


/* --------------------------------------------------
   Homepage introduction
-------------------------------------------------- */

.home-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
  padding: 60px 0 90px;
}

.profile {
  position: sticky;
  top: 0px;
  align-self: start;
}

.profile-image {
  width: 100%;
    border-radius: 2px;
    object-fit: cover;
    filter: saturate(.92) contrast(.98);
}

.profile-name {
  margin: 25px 0 3px;
  font-family: var(--san);
  font-weight: 500; 
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
}

.profile-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* --------------------------------------------------
   Biography
-------------------------------------------------- */

.bio {
  max-width: var(--content-width);
}

.eyebrow {
  margin: 4px 0 24px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bio h1 {
  max-width: 680px;
  margin: 0 0 38px;
  font-family: var(--sans);
  font-size: clamp(3rem, 6.5vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.bio .lead {
  margin: 0 0 34px;
  color: var(--text);
  font-family: var(--san);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.5;
}

.bio p {
  margin: 0 0 1.45em;
  color: var(--muted);
}

.bio strong {
  color: var(--text);
  font-weight: 600;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 38px;
}

.page-links a {
  font-size: 0.88rem;
  font-weight: 700;
}


/* --------------------------------------------------
   General pages
-------------------------------------------------- */

.container > h1,
.container > article > h1 {
  margin: 55px 0 32px;
  font-family: var(--sans);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.container h2 {
  margin: 2.3em 0 0.7em;
  font-family: var(--san);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
}

.container h3 {
  margin: 2em 0 0.5em;
  font-family: var(--san);
  font-size: 1.35rem;
  font-weight: 400;
}

.container > p {
    max-width: var(--content-width);
},
.container > ul,
.container > ol {
  max-width: var(--content-width);
}

.container ul,
.container ol {
  padding-left: 1.25em;
}

.container li {
  margin-bottom: 0.55em;
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

footer {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 38px 0 55px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li {
  margin: 0;
}

footer li:first-child {
  width: 100%;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
}

.footer-right {
  margin-left: auto;
  text-align: right;
}

footer br {
  display: initial;
}

footer .eyebrow {
    margin: 0 0 2px;
}

footer p {
    margin: 0;
}

.footer-name {
    font-weight: 600;
}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  nav,
  .container,
  footer {
    width: min(calc(100% - 32px), var(--page-width));
  }

  nav {
    padding: 22px 0;
  }

  nav ul {
    gap: 14px;
  }

  nav li:first-child {
    font-size: 1rem;
  }

  nav a {
    font-size: 0.66rem;
    letter-spacing: 0.07em;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 65px 0 80px;
  }

  .profile {
    position: static;
    max-width: 420px;
  }

  .profile-image {
    max-width: 100%;
    aspect-ratio: 5 / 6;
  }

  .bio h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  footer ul {
    flex-direction: column;
    gap: 7px;
  }
}


@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
  }

  nav li:first-child {
    width: 100%;
    margin-bottom: 5px;
  }

  .home-intro {
    padding-top: 50px;
  }
}

/* --------------------------------------------------
   Publications
-------------------------------------------------- */
.publications {
  max-width: none;
  padding: 24px 0;
}

.publications h1 {
  margin: 0 0 32px;
  font-family: var(--sans);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.publication-list {
  margin: 0;
  padding-left: 1.4rem;
}

.publication {
  padding: 0 0 12px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.publication:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.publication p {
  max-width: none;
  margin: 0 0 6px;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
}

.publication-links a {
  text-decoration: none;
}

.publication-note,
.publication-press {
  color: var(--muted);
  font-size: 0.9rem;
}
