:root {
  color-scheme: light;
  --ink: #1f1f1f;
  --muted: #4d4d4d;
  --line: #737373;
  --teal: #006783;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Lato", "Avenir Next", "Helvetica Neue", Arial, Helvetica, sans-serif;
  line-height: 1.45;
  color: var(--ink);
  background: #ffffff;
}

body {
  margin: 0;
  font-size: 14px;
}

a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
}

a:hover {
  color: #004d61;
}

.site-hero {
  min-height: 340px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.nav {
  width: 100%;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.nav-links a {
  color: #ffffff;
  font-weight: 400;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.brand {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 15px;
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
}

.hero-title {
  align-self: center;
  justify-self: center;
  margin: 0 24px 34px;
  color: #ffffff;
  font-size: 86px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.site-hero-personal {
  background-position: center;
  background-size: cover;
}

.site-hero-public-speaking {
  background-position: center 44%;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 54px;
}

.home-grid {
  display: grid;
  grid-template-columns: 464px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.portrait {
  width: 464px;
  max-width: 100%;
  height: 446px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.home-copy {
  padding-top: 8px;
}

.home-copy h2,
.section h2 {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.page-title {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.18;
}

.role {
  margin: 0 0 22px;
}

.profile-links {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 24px;
}

.profile-links a {
  font-weight: 400;
}

.profile-links .cv-link {
  margin-bottom: 3px;
  font-size: 27px;
  line-height: 1.18;
}

.home-text {
  margin-top: 56px;
  font-size: 14px;
}

.home-text p {
  margin: 0 0 18px;
}

.section {
  margin-top: 34px;
}

.lead {
  max-width: 86ch;
}

.paper-list {
  display: grid;
}

.paper-row {
  border-bottom: 1px solid var(--line);
}

.paper-row summary {
  min-height: 102px;
  padding: 28px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.paper-row summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 39px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #666666;
  border-bottom: 2px solid #666666;
  transform: rotate(45deg);
}

.paper-row[open] summary::after {
  top: 45px;
  transform: rotate(225deg);
}

.paper-title {
  color: var(--teal);
  font-weight: 700;
}

.paper-title a {
  font-weight: 700;
}

.paper-meta {
  color: var(--ink);
}

.paper-meta a {
  color: var(--ink);
  font-weight: 400;
}

.paper-detail {
  max-width: 90ch;
  padding: 0 40px 24px 0;
}

.paper-detail p {
  margin: 0 0 12px;
}

.content-link {
  display: inline;
  margin-right: 16px;
}

.paper-links {
  margin-top: 16px;
}

.media-menu-wrapper {
  display: inline-block;
  position: relative;
}

.media-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.08em;
  cursor: pointer;
}

.media-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: min(310px, 84vw);
  padding: 10px;
  display: none;
  background: #ffffff;
  border: 1px solid #d8d8d8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.media-menu-wrapper:hover .media-menu,
.media-menu-wrapper:focus-within .media-menu {
  display: grid;
  gap: 8px;
}

.media-menu a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.media-menu img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.plain-list {
  margin: 0 0 28px;
  padding-left: 1.2rem;
}

.plain-list li {
  margin: 8px 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-embed {
  margin: 0 0 32px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #e7e7e7;
}

.video-embed figcaption {
  margin-top: 8px;
}

.music-links {
  min-height: 100%;
  padding: 20px 24px;
  background: #f2f2f2;
}

.music-links h3 {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 24px;
  font-weight: 400;
}

.note {
  font-weight: 700;
}

.public-top {
  max-width: 96ch;
  margin-left: 0;
}

.page-main-title {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.public-top p {
  margin: 0 0 16px;
}

.google-like-section {
  margin-top: 58px;
}

.talks-section + .videos-section {
  margin-top: 28px;
}

.google-like-section h2,
.personal-background h2 {
  color: var(--teal);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.15;
}

.talk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 30px;
  align-items: start;
  padding: 26px 0 0;
}

.visual-talks figure {
  text-align: center;
}

.talk-image-card {
  margin: 0;
}

.talk-image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.talk-image-card figcaption,
.visual-talks figcaption,
.talk-caption {
  margin-top: 16px;
}

.logo-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.logo-card,
.media-card {
  min-height: 238px;
  padding: 0 12px 20px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  background: #ffffff;
}

.logo-card img,
.media-card img {
  width: min(100%, 290px);
  height: 250px;
  object-fit: contain;
}

.media-card {
  min-height: 130px;
  padding: 18px;
  border: 1px solid #d4d4d4;
}

.media-card img {
  width: 48px;
  height: 48px;
}

.press-list {
  max-width: 94ch;
}

.press-list p {
  margin: 0 0 14px;
}

.press-list p:has(strong) {
  margin-top: 30px;
}

.personal-background {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.personal-background > div {
  max-width: 73ch;
}

.personal-image {
  margin: 0;
}

.personal-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.personal-family img {
  height: 564px;
  object-position: center top;
}

.personal-landscape {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  margin-top: 46px;
}

.personal-landscape img {
  height: auto;
}

.firstgen {
  grid-column: 1 / -1;
  margin: 18px 0 20px;
}

.students-page {
  margin-top: 34px;
}

.students-page a {
  text-decoration: none;
}

.student-section-row summary {
  min-height: 0;
  padding: 24px 40px 20px 0;
}

.student-section-row summary::after {
  top: 30px;
}

.student-section-row[open] summary::after {
  top: 36px;
}

.student-section-row summary h2 {
  margin: 0;
  color: var(--teal);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.student-section-row summary h2 a {
  color: inherit;
  font-weight: inherit;
}

.student-section-detail {
  padding: 0 0 28px;
}

.student-section-detail > p {
  margin: 0;
}

.student-section-detail h3 {
  margin: 34px 0 18px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 400;
}

.student-section-detail h3:first-child {
  margin-top: 8px;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 170px));
  gap: 24px;
}

.student-card {
  min-width: 0;
  overflow: hidden;
  background: #f6f8f9;
  border: 1px solid #d8e0e3;
}

.student-photo {
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  background: #dce8eb;
  text-decoration: none;
}

.student-photo img,
.student-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-photo img {
  object-fit: cover;
  object-position: center top;
}

.student-placeholder {
  color: var(--teal);
  font-size: 54px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.student-card-copy {
  padding: 16px 16px 18px;
}

.student-card h4 {
  margin: 0 0 7px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
}

.student-card h4 a {
  font-weight: 700;
}

.student-card p {
  margin: 0;
  color: var(--muted);
}

.student-opportunities ul {
  max-width: 90ch;
  margin: 0;
  padding-left: 1.2rem;
}

.student-opportunities > p {
  margin-bottom: 12px;
}

.student-opportunities li {
  margin: 12px 0;
}

.site-hero-students {
  background-position: center 25%;
}

@media (max-width: 820px) {
  .site-hero {
    min-height: 260px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-title {
    font-size: 54px;
  }

  .home-grid,
  .two-column,
  .video-grid,
  .music-grid,
  .talk-grid,
  .logo-grid,
  .media-grid,
  .personal-background {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 100%;
    height: auto;
    max-height: 520px;
  }

  .talk-grid {
    min-height: 0;
    padding: 10px 0 0;
    gap: 20px;
  }

  .personal-landscape {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .students-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
