@import url("../fonts/lato.css");

:root {
  --spacing-unit: 20px;
  --section-gap: 30px;
  --content-gap: 20px;
  --heading-gap: 10px;
  --link-color: rgb(28, 145, 110);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 60px 0 0;
  overflow-x: hidden;
  background: #fff;
  color: #111;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: rgb(28, 145, 110);
  text-decoration: underline;
  text-decoration-thickness: 0.3px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: rgb(38, 177, 144);
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 3px;
}

.site-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.bio-section {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
}

.bio-content {
  width: 75%;
  padding: var(--content-gap);
}

.bio-image {
  width: 25%;
  padding: var(--content-gap);
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.name {
  margin: 0;
  padding: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
}

.bio-content p {
  margin: 16px 0 0;
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-top: var(--content-gap);
  font-size: 14px;
}

.primary-link {
  color: #000;
  font-weight: 400;
  text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
  color: #000;
  opacity: 0.6;
}

.bio-content .email-address {
  margin-top: 6px;
  font-size: 14px;
}

.major-section {
  margin-top: var(--section-gap);
  scroll-margin-top: var(--content-gap);
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.section-heading-container {
  padding: var(--content-gap) var(--content-gap) var(--heading-gap);
  background: #fff;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.toggle-arrow {
  margin-left: 10px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
}

.publication {
  margin: 0;
  padding: 10px var(--content-gap);
  background: #fff;
}

.publication + .publication {
  border-top: 1px solid #e3e3e3;
}

.paper-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.paper-authors {
  margin: 6px 0 3px;
  color: #4f4f4f;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
}

.author-highlight {
  color: var(--link-color);
  font-weight: 700;
}

.author-list-toggle {
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #666;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.author-list-toggle:hover,
.author-list-toggle:focus-visible {
  color: #333;
}

.venue {
  margin: 2px 6px 4px 0;
  color: #555;
  font-size: 13px;
  letter-spacing: 0.05px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 5px 0 0;
  font-size: 12px;
}

.paper-links a {
  font-weight: 400;
  text-decoration: none;
}

.misc-block {
  margin: 0;
  padding: 10px var(--content-gap) var(--content-gap);
}

.misc-block + .misc-block {
  border-top: 1px solid #e3e3e3;
  padding-top: var(--content-gap);
}

.misc-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.misc-block h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.misc-block p {
  margin: 8px 0;
}

.project-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-content {
  flex: 1 1 58%;
}

.project-layout > img {
  display: block;
  width: 42%;
  max-width: 280px;
  height: auto;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
}

.news-list {
  margin: 0;
  padding-left: 20px;
}

.news-list li + li {
  margin-top: 8px;
}

.news-list time {
  color: #555;
  font-size: 14px;
}

blockquote {
  margin: 16px 0;
  padding-left: 16px;
  border-left: 2px solid #d9d9d9;
  color: #444;
  font-weight: 300;
}

blockquote cite {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-style: normal;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--content-gap);
  margin-top: var(--content-gap);
}

.recipe-card {
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  background: #fff;
}

.recipe-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.recipe-card > div {
  padding: 12px;
}

.recipe-card .recipe-type {
  margin: 0 0 5px;
  color: #666;
  font-size: 12px;
}

.recipe-card h4 span {
  display: block;
  margin-top: 2px;
  color: #555;
  font-size: 13px;
  font-weight: 400;
}

.recipe-card p:last-child {
  margin-bottom: 0;
  color: #4f4f4f;
  font-size: 13px;
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 12px;
}

.route-page main {
  width: calc(100% - 40px);
  max-width: 760px;
  margin: 0 auto;
}

.route-page h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
}

@media (max-width: 580px) {
  .bio-section {
    flex-direction: column;
  }

  .name {
    font-size: 26px;
  }

  .bio-content {
    width: 100%;
    padding: var(--content-gap);
  }

  .bio-image {
    order: -1;
    width: 100%;
    padding: var(--content-gap) var(--content-gap) 30px;
  }

  .profile-photo {
    width: 30%;
    max-width: 180px;
    margin: 0 auto;
  }

  .project-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .project-layout > img {
    width: 100%;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
  }
}
