/* Core typography */

body {
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-weight: 600;
}

h1 {
  letter-spacing: -0.02em;
}

/* Navigation */

.navbar-brand {
  font-weight: 600;
}

/* Main content */

.quarto-title-block {
  margin-bottom: 2.5rem;
}

blockquote {
  border-left: 4px solid #2b6cb0;
  padding-left: 1.25rem;
  font-size: 1.1rem;
}

/* Buttons */

.btn {
  margin-right: 0.4rem;
  margin-bottom: 0.5rem;
}

/* Footer */

.nav-footer {
  font-size: 0.9rem;
}

/* Responsive layout */

@media (max-width: 768px) {
  body {
    line-height: 1.6;
  }

  h1 {
    font-size: 2rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}

/* Research videos */

.research-video {
  max-width: 1000px;
  margin: 1.5rem auto 2.5rem;
}

.research-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  background-color: #000;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.18);
}

.video-caption {
  margin-top: 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

/* Mechanical metamaterial figures */

.research-figure {
  width: 100%;
  margin: 1.75rem auto 2rem;
  text-align: center;
}

.research-image {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin: 1.75rem 0 1rem;
}

.prototype-item {
  min-width: 0;
  text-align: center;
}

.prototype-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0.35rem;
}

.research-caption {
  margin: 0.7rem 0 0;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.figure-source {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.06);
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .prototype-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* White background for diagrams with transparent backgrounds */

img.white-figure {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 0.25rem;
}