html,
body {
  margin: 0;
  padding: 0;
  background: #f4f3ef;
}

#keyan-simple-home {
  --home-bg: #f4f3ef;
  --home-blue: #315c78;
  --home-text: #30383e;
  --photo-width: 250px;
  box-sizing: border-box;
  background: var(--home-bg);
  color: var(--home-text);
  font:
    16px/1.85 Arial,
    "Helvetica Neue",
    sans-serif;
  color-scheme: light;
  padding: 56px 7% 22px;
  min-height: 620px;
}
#keyan-simple-home * {
  box-sizing: border-box;
}
#keyan-simple-home .home-heading {
  text-align: center;
}
#keyan-simple-home h1 {
  font:
    500 38px/1.25 Arial,
    "Helvetica Neue",
    sans-serif;
  letter-spacing: 0.015em;
  color: var(--home-blue);
  margin: 0 0 26px;
}
#keyan-simple-home nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.6;
}
#keyan-simple-home a {
  color: var(--home-blue);
  text-decoration: none;
  text-underline-offset: 5px;
}
#keyan-simple-home a:hover {
  text-decoration: underline;
}
#keyan-simple-home a:focus-visible {
  outline: 2px solid var(--home-blue);
  outline-offset: 5px;
}
#keyan-simple-home nav a {
  color: #69747c;
  padding: 5px 0;
}
#keyan-simple-home nav a[aria-current] {
  color: var(--home-blue);
  border-bottom: 1px solid var(--home-blue);
}
#keyan-simple-home .home-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--photo-width);
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 64px auto 0;
}
#keyan-simple-home .home-copy p {
  margin: 0 0 23px;
}
#keyan-simple-home .home-contact {
  margin-top: 34px;
  font-size: 14px;
}
#keyan-simple-home .home-contact p {
  margin-bottom: 13px;
}
#keyan-simple-home .home-contact a {
  overflow-wrap: anywhere;
}
#keyan-simple-home .home-photo {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
#keyan-simple-home footer {
  text-align: center;
  color: #777c7d;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 88px;
}
@media (max-width: 720px) {
  #keyan-simple-home {
    padding: 38px 7% 20px;
    min-height: 0;
  }
  #keyan-simple-home .home-content {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 30px;
    margin-top: 45px;
  }
  #keyan-simple-home footer {
    margin-top: 60px;
  }
}
@media (max-width: 520px) {
  #keyan-simple-home h1 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  #keyan-simple-home nav {
    gap: 23px;
  }
  #keyan-simple-home .home-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 36px;
  }
  #keyan-simple-home .home-photo {
    order: -1;
    width: 210px;
    align-self: center;
  }
  #keyan-simple-home .home-copy {
    font-size: 15px;
    line-height: 1.85;
  }
  #keyan-simple-home .home-contact {
    margin-top: 26px;
  }
  #keyan-simple-home footer {
    margin-top: 45px;
  }
}

#keyan-simple-home .job-market {
  color: var(--home-blue);
  font-size: 15px;
  line-height: 1.7;
}

html {
  scroll-behavior: smooth;
}
#keyan-simple-home .section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--home-bg);
  padding: 14px 0;
  border-bottom: 1px solid #dedfdc;
}
#keyan-simple-home #home,
#keyan-simple-home .detail-section {
  scroll-margin-top: 82px;
}
#keyan-simple-home .detail-section {
  max-width: 900px;
  margin: 72px auto 0;
  padding-top: 24px;
  border-top: 1px solid #cdd5d8;
  overflow-wrap: anywhere;
}
#keyan-simple-home .detail-section h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--home-blue);
  margin: 0 0 26px;
}
#keyan-simple-home .detail-section h3 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--home-blue);
  margin: 32px 0 18px;
}
#keyan-simple-home .detail-section p {
  margin: 0 0 22px;
}
#keyan-simple-home .detail-section li {
  margin-bottom: 20px;
  padding-left: 4px;
}
#keyan-simple-home .detail-section ol,
#keyan-simple-home .detail-section ul {
  padding-left: 24px;
}
#keyan-simple-home #teaching h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 18px;
}
#keyan-simple-home #teaching #teaching-development {
  margin-top: 52px;
}
#keyan-simple-home #teaching p {
  font-size: 14px;
  line-height: 1.85;
  color: #58656d;
  margin: 0 0 19px;
}
#keyan-simple-home #teaching .course {
  font-size: 15px;
  font-weight: 500;
  color: #2d4352;
}
#keyan-simple-home #teaching .recitation {
  font-size: 13px;
}
#keyan-simple-home table {
  border-collapse: collapse;
  width: 100%;
  min-width: 580px;
  font-size: 14px;
}
#keyan-simple-home th,
#keyan-simple-home td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #dedfdc;
  vertical-align: top;
}
#keyan-simple-home th {
  font-weight: 600;
  color: var(--home-blue);
}
@media (max-width: 520px) {
  #keyan-simple-home .detail-section {
    margin-top: 48px;
    font-size: 15px;
  }
  #keyan-simple-home .detail-section h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
#keyan-simple-home .welcome {
  font-size: 18px;
  color: var(--home-blue);
}
@media (min-width: 900px) {
  #keyan-simple-home .home-content {
    min-height: clamp(440px, calc(100svh - 300px), 620px);
  }
}

#keyan-simple-home .home-copy {
  font-size: 15px;
  line-height: 1.85;
}
#keyan-simple-home .bio {
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
}
#keyan-simple-home .job-market {
  font-size: 14px;
  font-weight: 600;
}
#keyan-simple-home .job-market strong {
  font-weight: 600;
}
#keyan-simple-home .home-contact {
  font-size: 13px;
}
#keyan-simple-home #research {
  overflow-wrap: normal;
}
#keyan-simple-home #research h3 {
  font-size: 17px;
  margin: 32px 0 22px;
}
#keyan-simple-home #research article {
  margin: 0 0 28px;
}
#keyan-simple-home #research h4 {
  font-size: 15px;
  font-weight: 500;
  color: #2d4352;
  line-height: 1.6;
  margin: 0 0 6px;
  text-wrap: pretty;
}
#keyan-simple-home #research article p {
  font-size: 14px;
  line-height: 1.7;
  margin: 3px 0;
}
#keyan-simple-home #research .authors {
  color: #58656d;
}
#keyan-simple-home #research strong {
  font-weight: 600;
}
@media (min-width: 761px) {
  #keyan-simple-home .school-name {
    white-space: nowrap;
  }
}
@media (max-width: 520px) {
  #keyan-simple-home .bio {
    text-align: left;
  }
  #keyan-simple-home #research h4 {
    line-height: 1.7;
  }
  #keyan-simple-home #research article {
    margin-bottom: 30px;
  }
}

#keyan-simple-home #contact p {
  font-size: 14px;
  line-height: 1.85;
  color: #58656d;
  margin: 0;
}
#keyan-simple-home #contact h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 42px 0 26px;
}
#keyan-simple-home .references-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px 48px;
}
#keyan-simple-home #contact h4 {
  font-size: 15px;
  font-weight: 500;
  color: #2d4352;
  margin: 0 0 7px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  #keyan-simple-home .references-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 900px) {
  #keyan-simple-home #teaching,
  #keyan-simple-home #contact {
    min-height: calc(100svh - 82px);
  }
}
@media (max-width: 520px) {
  #keyan-simple-home #home,
  #keyan-simple-home .detail-section {
    scroll-margin-top: 128px;
  }
}
