@font-face {
  font-family: "Swerve Title";
  src: url("./assets/STIXGeneralItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

.swerve-method {
  --method-ink: #222621;
  --method-serif: "Swerve Baskervville", Georgia, serif;
  --method-display: "Swerve Title", Georgia, serif;
  isolation: isolate;
  padding: clamp(32px, 4.3vw, 62px) clamp(16px, 4.8vw, 66px) clamp(44px, 5.4vw, 78px);
  border-top: 1px solid #dbd7cc;
  background: #faf8f3;
  color: var(--method-ink);
  text-align: center;
}

.swerve-method__inner {
  max-inline-size: 1136px;
  margin-inline: auto;
}

.swerve-method h2 {
  margin: 0;
  font: 500 clamp(33px, 4vw, 45px) / 1.04 var(--method-serif);
  letter-spacing: -.045em;
}

.swerve-method figcaption {
  margin-inline: auto;
  font-family: var(--method-display);
  font-style: italic;
  font-weight: 400;
  text-wrap: pretty;
}

.swerve-method figure { margin: clamp(21px, 3vw, 34px) 0 0; }

.swerve-method__figure-link {
  display: block;
  mix-blend-mode: multiply;
}

.swerve-method__figure-link:focus-visible {
  outline: 2px solid #9b532d;
  outline-offset: 5px;
  border-radius: 4px;
}

.swerve-method img {
  display: block;
  width: 100%;
  height: auto;
}

.swerve-method figcaption {
  text-align: start;
  margin-block-start: clamp(11px, 1.9vw, 22px);
  color: #514840;
  font-size: clamp(1.06rem, 1.62vw, 1.36rem);
  line-height: 1.48;
}

.swerve-method figcaption strong { font-weight: 700; }

.swerve-method__step-name { white-space: nowrap; }
