:root {
  color-scheme: light;
  --stone: #eeede8;
  --ink: #1f2321;
  --juniper: #3e6b4f;
  --tint: #dce3da;
  --deep: #263b2f;
  --cream: #faf7ed;
  --notice: #d3dbd0;
  --line: #aeb8ad;
  --secondary: #48574d;
  --link: #2d573f;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Schibsted Grotesk", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --frame: 90rem;
  --reading: 42rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.64;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.017em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 4.125rem);
  line-height: 1.02;
  letter-spacing: -.014em;
  text-wrap: balance;
  scroll-margin-top: 1.5rem;
}

h3 {
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  line-height: 1.1;
}

p, ul, figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.klow-skip-to-main {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .5rem 1rem;
  transform: translateY(-200%);
  border: 1px solid var(--link);
  background: var(--cream);
}

.klow-skip-to-main:focus {
  transform: translateY(0);
}

.notice {
  display: grid;
  min-height: 2.875rem;
  padding: .5rem var(--gutter);
  place-items: center;
  background: var(--notice);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.notice a, .main-nav a, .site-footer nav a {
  color: var(--ink);
  text-decoration: none;
}

.notice a:hover, .main-nav a:hover, .main-nav a[aria-current], .site-footer nav a:hover {
  text-decoration: underline;
}

.masthead {
  display: flex;
  min-height: 6rem;
  max-width: var(--frame);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.identity {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.wordmark {
  display: inline-block;
  width: fit-content;
  color: var(--ink);
  font-family: var(--display);
  font-size: 3.35rem;
  line-height: .92;
  letter-spacing: -.02em;
  text-decoration: none;
}

.header-line {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: clamp(.95rem, 2.2vw, 2rem);
  align-items: center;
  font-size: 1rem;
}

.main-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.main-nav a:last-child {
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 4rem;
}

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: .4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  max-width: 110rem;
  min-height: clamp(36rem, 49vw, 47rem);
  margin-inline: auto;
}

.hero-copy {
  display: flex;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem) clamp(3rem, 6vw, 6rem) var(--gutter);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-copy h1 {
  max-width: 13ch;
}

.lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.43;
}

.hero-photo, .feature-photo {
  position: relative;
  min-width: 0;
}

.hero-photo img, .feature-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img {
  object-position: 53% 59%;
}

.pill {
  display: inline-flex;
  min-height: 2.875rem;
  padding: .6rem 1.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4rem;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.pill:hover {
  text-decoration: underline;
}

.hero-link {
  margin-top: 1.8rem;
  background: var(--juniper);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.home-section {
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 8rem) var(--gutter) 0;
}

.home-section > h2 {
  margin: 0 auto 1.5rem;
  text-align: center;
}

.home-section .section-copy > p {
  max-width: var(--reading);
  margin-inline: auto;
}

.home-section .page-links {
  justify-content: center;
}

#four-peptides-in-one-blend + .section-copy > p {
  text-align: center;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.7vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.25rem, 2vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.topic-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: .65rem;
  background: var(--tint);
  color: var(--ink);
  text-decoration: none;
}

.topic-photo {
  aspect-ratio: 7 / 9;
}

.topic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-card[href="/research#tb-500"] .topic-photo {
  position: relative;
}

.topic-card[href="/research#tb-500"] img {
  /* Fit the landscape photo into the portrait frame with both strands intact. */
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% * 9 / 7);
  height: calc(100% * 7 / 9);
  max-width: none;
  transform: translate(-50%, -50%) rotate(90deg);
}

.topic-card[href="/research#kpv"] img {
  object-position: 55% center;
}

.topic-label {
  display: grid;
  flex: 1;
  align-content: start;
  gap: .35rem;
  padding: 1rem 1.2rem 1.35rem;
}

.topic-label p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.35;
}

.topic-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

#human-evidence + .section-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .875rem;
  max-width: 61rem;
  margin-inline: auto;
}

#human-evidence + .section-copy > p {
  max-width: none;
  padding: clamp(1.25rem, 2.8vw, 2.75rem);
  border-radius: .65rem;
  background: var(--tint);
}

.page-intro {
  display: grid;
  max-width: 70rem;
  margin-inline: auto;
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) clamp(3.75rem, 7vw, 6.5rem);
  justify-items: center;
  text-align: center;
}

.page-intro h1 {
  max-width: 16ch;
}

.page-intro .lead {
  max-width: 40rem;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  max-width: 110rem;
  margin-inline: auto;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  background: var(--tint);
}

.feature-photo {
  overflow: hidden;
  min-height: 24rem;
  border-radius: 0 1rem 1rem 0;
}

.feature-copy {
  align-self: center;
  max-width: 44rem;
  padding: clamp(1.75rem, 4vw, 4rem);
}

.feature-copy h2 {
  margin-bottom: 1.1rem;
}

.feature-copy > * + *, .section-copy > * + * {
  margin-top: 1.1rem;
}

.feature-copy > h2 + * {
  margin-top: 0;
}

.reading-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.8fr);
  gap: clamp(1.25rem, 5vw, 5rem);
  max-width: 74rem;
  margin: 0 auto clamp(3.5rem, 6.75vw, 6.5rem);
  padding-inline: var(--gutter);
}

.reading-section > h2 {
  font-size: clamp(2.1rem, 3.35vw, 3.5rem);
  text-wrap: pretty;
}

.section-copy h3:not(:first-child) {
  margin-top: 2.4rem;
}

.section-copy h3 + p {
  margin-top: .6rem;
}

.section-copy ul {
  padding-inline-start: 1.25em;
}

.section-copy li + li {
  margin-top: .4em;
}

.page-faq .reading-section {
  padding-block: 1.625rem;
  margin-bottom: 0;
  border-top: 1px solid var(--line);
}

.page-faq .reading-section > h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.comparison-section {
  max-width: 74rem;
  margin: 0 auto clamp(3.5rem, 6.75vw, 6.5rem);
  padding-inline: var(--gutter);
}

.comparison-section > h2 {
  margin-bottom: 1.4rem;
}

.comparison {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--cream);
}

.comparison table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.comparison :is(th, td) {
  padding: clamp(.7rem, 1.6vw, 1.2rem) clamp(.7rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: break-word;
  font-size: 1rem;
}

.comparison th {
  width: 40%;
  font-weight: 500;
}

.comparison thead {
  background: var(--tint);
}

.comparison tbody tr:last-child {
  background: var(--tint);
}

.comparison figcaption {
  padding: clamp(1rem, 2.5vw, 2rem) clamp(.85rem, 2.6vw, 2.1rem);
  font-size: 1rem;
  line-height: 1.6;
}

.comparison figcaption p {
  max-width: 48rem;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
  gap: clamp(1.25rem, 5vw, 5rem);
  max-width: calc(var(--frame) - var(--gutter) * 2);
  margin: clamp(4rem, 8vw, 7.5rem) auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
  border-radius: 1rem;
  background: var(--deep);
  color: var(--cream);
}

.band a {
  color: var(--cream);
}

.band .pill {
  background: var(--cream);
  color: var(--deep);
}

.band a:focus-visible {
  outline-color: var(--cream);
}

.missing-links {
  padding: 0 var(--gutter) 4rem;
}

.missing-links .page-links {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  max-width: var(--frame);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner .wordmark {
  font-size: 2.4rem;
}

.footer-inner p {
  margin-top: .65rem;
  color: var(--secondary);
  font-size: 1rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  font-size: 1rem;
}

.footer-inner nav a {
  padding-block: .45rem;
}

@media (max-width: 94rem) {
  .band {
    margin-inline: var(--gutter);
  }
}

@media (max-width: 55rem) {
  .masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem 1rem;
  }

  .masthead .identity {
    display: grid;
    justify-items: start;
    gap: .4rem;
  }

  .masthead .wordmark {
    font-size: 2.9rem;
  }

  .masthead .header-line {
    white-space: normal;
    text-wrap: balance;
  }

  .masthead[data-collapsible] .menu-toggle:not([hidden]) {
    display: block;
  }

  .main-nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: .125rem 1.25rem;
    border-top: 1px solid var(--line);
    padding-top: .375rem;
  }

  .main-nav a:last-child {
    padding-inline: 0;
    border: 0;
  }

  .masthead[data-collapsible]:not([data-menu-open]) .main-nav {
    display: none;
  }

  .home-hero {
    min-height: 32rem;
  }

  .reading-section {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(var(--reading) + var(--gutter) * 2);
  }

  .feature-section {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  }

  .feature-photo {
    min-height: 18rem;
  }
}

@media (max-width: 42rem) {
  h1 {
    font-size: clamp(2.9rem, 11.8vw, 4rem);
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    grid-row: 2;
    padding: 2.2rem var(--gutter) 3rem;
    align-items: center;
    text-align: center;
  }

  .hero-copy .lead {
    max-width: 28rem;
    margin-top: 1rem;
  }

  .hero-link {
    margin-top: 1.375rem;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
  }

  .home-section {
    padding-top: 3rem;
  }

  .topic-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-label {
    padding-inline: .75rem;
  }

  #human-evidence + .section-copy, .feature-section, .band {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-intro {
    padding-block: 3.25rem;
  }

  .feature-photo {
    min-height: 0;
    aspect-ratio: 5 / 4;
    border-radius: 0;
  }

  .feature-copy {
    padding: 1.6rem var(--gutter) 2.25rem;
  }

  .section-copy h3:not(:first-child) {
    margin-top: 1.9rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}
