@font-face {
  font-family: "Instrument Sans";
  src: url("./instrument-sans.6219bc4bfdfc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #f8f2e8;
  --paper: #f3e9da;
  --ink: #2a211b;
  --quiet-ink: #604d3f;
  --clay: #b5532f;
  --link: #923f25;
  --rule: #ccbca9;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Instrument Sans", Arial, sans-serif;
  --gutter: clamp(1rem, 5.5vw, 5.5rem);
  --reading-width: 42.5rem;
  --wide: 80rem;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.62;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 3.35vw, 3.25rem);
}

h3 {
  font-size: clamp(1.375rem, 2.05vw, 1.625rem);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

strong {
  font-weight: 500;
}

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

a:hover {
  text-decoration-thickness: .12em;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .22em;
}

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

figure {
  margin: 0;
}

.skip-reading {
  position: absolute;
  z-index: 4;
  inset: .4rem auto auto var(--gutter);
  padding: .55rem 1rem;
  background: var(--cream);
  transform: translateY(-150%);
}

.skip-reading:focus {
  transform: none;
}

.research-notice {
  padding: .43rem var(--gutter);
  background: var(--clay);
  color: #fff;
  text-align: center;
  font-size: 1rem;
}

.research-notice a {
  color: inherit;
}

.recovery-masthead {
  width: min(calc(100% - 2 * var(--gutter)), var(--wide));
  margin: .9rem auto 0;
  padding: .95rem clamp(1rem, 3vw, 2rem) 0;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--cream);
}

.recovery-home .recovery-masthead {
  position: absolute;
  inset-inline: 0;
  z-index: 1;
}

.sermorelin-name {
  display: inline-block;
  color: var(--ink);
  font: 400 clamp(1.75rem, 3vw, 2.125rem)/1.12 var(--serif);
  text-decoration: none;
}

.recovery-line {
  color: var(--quiet-ink);
  font-size: 1rem;
  margin-block: .125rem .65rem;
  text-wrap: balance;
}

.recovery-masthead nav {
  border-top: 1px solid var(--rule);
}

.recovery-masthead ul,
.reading-footer ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recovery-masthead ul {
  column-gap: clamp(.5rem, 2.2vw, 1.75rem);
}

.recovery-masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.recovery-masthead nav a:hover,
.recovery-masthead nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
}

.recovery-scene {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-block-size: clamp(41rem, 85svh, 51rem);
  padding: 13rem var(--gutter) clamp(1.5rem, 4.5vw, 4rem);
}

.recovery-scene-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.recovery-scene-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(64 35 19 / 20%), transparent 32%);
  pointer-events: none;
}

.recovery-scene-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 55%;
}

.recovery-scene-inset {
  width: min(100%, var(--wide));
  margin-inline: auto;
}

.recovery-intro {
  width: min(100%, clamp(28rem, 43vw, 37rem));
  padding: clamp(1.3rem, 3.25vw, 3.05rem);
  background: var(--cream);
  border-radius: .65rem;
}

.recovery-intro h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.75rem);
  line-height: 1.02;
}

.recovery-intro p {
  margin-top: 1rem;
  max-width: 43ch;
}

.reading-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(calc(100% - 2 * var(--gutter)), var(--wide));
  margin: 0 auto;
  padding-block: clamp(1.4rem, 4vw, 2.65rem);
  border-bottom: 1px solid var(--rule);
}

.reading-row > div {
  padding-inline: clamp(1rem, 2.45vw, 2.15rem);
}

.reading-row > div + div {
  border-left: 1px solid var(--rule);
}

.reading-row > div:first-child {
  padding-left: 0;
}

.reading-row > div:last-child {
  padding-right: 0;
}

.reading-row h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  text-wrap: unset;
  margin-bottom: .5rem;
}

.reading-row p {
  font-size: 1rem;
  max-width: 38ch;
}

.home-reading {
  width: min(calc(100% - 2 * var(--gutter)), var(--wide));
  margin-inline: auto;
}

.evidence-feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 7vw, 6rem);
  align-items: start;
  padding: clamp(3rem, 8.3vw, 7.25rem) clamp(0rem, 2vw, 2rem);
}

.evidence-feature + .evidence-feature {
  border-top: 1px solid var(--rule);
}

.evidence-feature--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.evidence-feature--reverse > h2 {
  grid-column: 2;
  grid-row: 1;
}

.evidence-feature--reverse > div {
  grid-column: 1;
  grid-row: 1;
}

.feature-action {
  margin-top: 1.4rem;
}

.feature-action a {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  padding: .55rem 1.15rem;
  border-radius: 2rem;
  background: var(--clay);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.feature-action a:hover {
  background: var(--link);
}

.feature-action a:focus-visible {
  outline-color: var(--link);
}

.childhood-brief {
  padding: clamp(1.5rem, 5vw, 3.25rem);
  background: var(--paper);
  border-radius: .75rem;
}

.childhood-brief h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-wrap: unset;
  margin-bottom: .7rem;
}

.childhood-brief p {
  max-width: 63ch;
}

.home-questions {
  padding-block: clamp(3.25rem, 7vw, 6.5rem);
  width: min(100%, var(--reading-width));
  margin-inline: auto;
}

.home-questions h2 {
  margin-bottom: 1.05rem;
}

.article-opening {
  width: min(calc(100% - 2 * var(--gutter)), 64rem);
  margin-inline: auto;
  padding-block: clamp(3.4rem, 7vw, 6.7rem) clamp(2.45rem, 5.55vw, 4.85rem);
  text-align: center;
}

.article-opening h1 {
  font-size: clamp(2.45rem, 5.25vw, 4.65rem);
}

.article-opening p {
  color: var(--quiet-ink);
  width: min(100%, 61ch);
  margin: 1.15rem auto 0;
  text-wrap: pretty;
}

.reading-sheet {
  padding: clamp(2.6rem, 6vw, 5.125rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
  border-radius: clamp(1.35rem, 4vw, 3rem) clamp(1.35rem, 4vw, 3rem) 0 0;
}

.research-chapter {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
  scroll-margin-top: 1.5rem;
  overflow-wrap: break-word;
}

.research-chapter + .research-chapter {
  border-top: 1px solid var(--rule);
  margin-top: clamp(2rem, 5.6vw, 4.25rem);
  padding-top: clamp(1.6rem, 4.5vw, 3rem);
}

.research-chapter h2 {
  margin-block-end: .95rem;
}

.research-chapter h3 {
  margin-top: 1.65rem;
  margin-bottom: .5rem;
  text-wrap: unset;
}

.research-chapter--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(2rem, 5.6vw, 5rem);
  width: min(100%, var(--wide));
}

.study-photo img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
}

.growth-history .article-opening {
  text-align: left;
}

.growth-history .article-opening h1 {
  max-width: 19ch;
  text-wrap: unset;
}

.growth-history .article-opening p {
  margin-inline: 0;
}

.growth-history .reading-sheet {
  background: var(--paper);
}

.growth-history .chapter-copy {
  grid-column: 2;
  grid-row: 1;
}

.growth-history .study-photo {
  grid-column: 1;
  grid-row: 1;
}

.reading-footer {
  padding: clamp(2rem, 4.5vw, 3.5rem) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.reading-footer-inner {
  width: min(100%, var(--wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(7rem, .38fr) minmax(0, 1fr);
  align-items: start;
  gap: .9rem clamp(1rem, 4.4vw, 4rem);
}

.reading-footer ul {
  gap: .45rem 1rem;
}

.reading-footer nav a,
.return-link,
.reading-footer p {
  font-size: 1rem;
}

.reading-footer p {
  grid-column: 1 / -1;
  color: var(--quiet-ink);
}

.return-link {
  justify-self: start;
}

@media (min-width: 75rem) {
  .recovery-scene-photo {
    overflow: clip;
  }

  .recovery-scene-photo img {
    /* Crop from the left edge to place the shoe beside the inset. */
    width: 128%;
    max-width: none;
    object-position: left 45%;
  }

  .recovery-intro {
    width: min(35vw, 32rem);
    padding: 1.75rem 1.5rem;
  }

  .recovery-intro h1 {
    font-size: min(3.3vw, 3rem);
  }
}

@media (max-width: 54rem) {
  .research-chapter--photo {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.6rem;
    width: min(100%, var(--reading-width));
  }

  .growth-history .chapter-copy,
  .growth-history .study-photo {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 39rem) {
  :root {
    --gutter: 1rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .recovery-masthead {
    margin-top: .65rem;
    padding-top: .72rem;
    padding-inline: .8rem;
  }

  .recovery-scene {
    min-block-size: clamp(39rem, 78svh, 43rem);
    padding-block-start: 19rem;
    padding-block-end: 1rem;
  }

  .recovery-scene-photo img {
    object-position: 69% 50%;
  }

  .recovery-intro {
    width: 100%;
  }

  .recovery-intro h1 {
    font-size: clamp(2.15rem, 8.7vw, 2.9rem);
  }

  .recovery-intro p {
    margin-top: .7rem;
  }

  .reading-row {
    grid-template-columns: 1fr;
    padding-block: 0;
  }

  .reading-row > div {
    padding: .9rem 0 1rem;
  }

  .reading-row > div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .evidence-feature,
  .evidence-feature--reverse,
  .reading-footer-inner {
    grid-template-columns: 1fr;
  }

  .evidence-feature--reverse > h2,
  .evidence-feature--reverse > div {
    grid-column: auto;
    grid-row: auto;
  }
}
