:root {
  color-scheme: light;
  --research-page-background: #ffffff;
  --research-text-color: #222222;
  --research-muted-color: #555555;
  --research-link-color: #9c145e;
  --research-content-width: 46rem;
  --research-paragraph-spacing: 1.5rem;
}

.research-page {
  margin: 0;
  background: var(--research-page-background);
  color: var(--research-text-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.75;
}

.research-header,
.research-main {
  box-sizing: border-box;
  width: min(100% - 2.5rem, var(--research-content-width));
  margin-inline: auto;
}

.research-header {
  padding-block: 2rem 1rem;
}

.back-to-calculator {
  color: var(--research-link-color);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.research-title {
  margin: 2.5rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.research-article {
  padding-bottom: 4rem;
}

.research-paragraph {
  margin: 0 0 var(--research-paragraph-spacing);
  color: var(--research-text-color);
}

.research-figure {
  margin: 2.25rem auto;
  text-align: center;
}

.research-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .research-page {
    font-size: 1rem;
    line-height: 1.7;
  }

  .research-header,
  .research-main {
    width: min(100% - 2rem, var(--research-content-width));
  }

  .research-header {
    padding-top: 1.25rem;
  }

  .research-title {
    margin-top: 2rem;
  }

  .research-figure img {
    max-height: 65vh;
  }
}
