:root {
  --text: #222;
  --muted: #6b6b6b;
  --accent: #9a5b18;
  --accent-hover: #6f3f0d;
  --line: #e8e8e8;
  --soft: #f7f4ee;
  --max: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

/* top navigation */
.site-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 17px;
  padding: 18px 0 4px;
  font-size: 12.5px;
}

.site-nav a {
  color: #555;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* common sections */
.page-section {
  padding: 30px 0 22px;
  border-top: 1px solid var(--line);
}

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

h1 {
  margin-bottom: 4px;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h2 {
  margin-bottom: 18px;
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 650;
}

h3 {
  margin-bottom: 4px;
  font-size: 14.5px;
  line-height: 1.42;
  font-weight: 650;
}

/* About */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 185px;
  gap: 40px;
  align-items: center;
  padding: 24px 0 34px;
}

.role {
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 13px;
}

.about-copy p {
  margin-bottom: 11px;
}

.portrait-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait {
  display: block;
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 10px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
  font-size: 13px;
}

.contact-links span {
  color: #aaa;
}

/* News */
.news-list {
  display: grid;
  gap: 8px;
}

.news-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.news-date {
  color: #82501b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Publications and research */
.year {
  margin: 23px 0 4px;
  color: #777;
  font-size: 12.5px;
  font-weight: 650;
}

.publication-row,
.research-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid #f0f0f0;
}
.publication-row:last-child,
.research-row:last-child {
  border-bottom: 0;
}

.thumb {
  height: 94px;
  border: 1px solid #e5ddd1;
  border-radius: 7px;
  background: linear-gradient(135deg, #faf5ec, #f2eee6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #80511d;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

.research-thumb {
  height: 116px;
  flex-direction: column;
}

.research-thumb small {
  margin-top: 6px;
  color: #9d8b77;
  font-size: 10px;
  font-weight: 400;
}

.authors,
.venue,
.description,
.links,
.research-row p {
  margin-bottom: 5px;
}

.authors,
.description {
  font-size: 12.8px;
}

.venue {
  color: #4f4f4f;
  font-size: 12.8px;
}

.description,
.muted {
  color: var(--muted);
}

.links {
  margin-top: 6px;
  font-size: 12.8px;
}

.links span {
  margin: 0 4px;
  color: #aaa;
}

/* Education */
.education-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0 14px;
}

.education-year {
  padding-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
}

.education-row p {
  margin-bottom: 1px;
}

/* Footer */
.mountain-footer {
  position: relative;
  height: 285px;
  margin-top: 36px;
  overflow: hidden;
  background: #333;
}

.mountain-footer > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mountain-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.42));
}

.mountain-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.mountain-copy h2 {
  margin-bottom: 14px;
  font-size: 27px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.mountain-copy a {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.12);
  font-size: 12.5px;
}

.mountain-copy a:hover {
  background: rgba(0,0,0,.24);
  text-decoration: none;
}
.thumb {
  width: 165px;
  height: 110px;
  border: 1px solid #e5ddd1;
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  color: #80511d;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 680px) {
  .site {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-nav {
    justify-content: center;
    gap: 13px;
    padding-top: 13px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 18px;
  }

  .portrait-wrap {
    order: -1;
  }

  .portrait {
    width: 135px;
    height: 135px;
  }

  .about-copy h1,
  .role {
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .publication-row,
  .research-row {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 150px;
  }

  .education-row {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .mountain-footer {
    height: 225px;
  }
}
