/* Typography — headings, body text, eyebrows, captions, section titles */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings:
    "SOFT" 50,
    "WONK" 0;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7vw + 1rem, 6rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2.1rem, 3.5vw + 1rem, 3.5rem);
}
h3 {
  font-size: clamp(1.45rem, 1.6vw + 1rem, 1.9rem);
}

p {
  color: var(--ink-soft);
}

/* Display italic marks the emphasised words in every headline */
h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--brick);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa);
  margin-bottom: 0.9rem;
}

/* Catalogue-style label under a work or a photograph, like the typewritten 2012 catalogue */
.caption {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section__head {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__title {
  max-width: 16ch;
}
.section__lede {
  max-width: 46ch;
  font-size: 1.02rem;
}
.section__credit {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.section__credit::before {
  content: "— ";
}
.section__note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 1024px) {
  .section__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

.link {
  color: var(--brick);
  text-underline-offset: 0.2em;
}
