.chess-record,
.team-feature,
.lesson-contact {
  padding-block: clamp(4rem, 7.6vw, 7.5rem);
}

.lower-heading {
  margin: .9rem 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.9vw, 5rem);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.lower-text-link,
.chess-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.lower-text-link:hover,
.chess-footer a:hover {
  text-decoration-thickness: 2px;
}

.chess-record {
  background: #eef1e7;
  color: var(--forest);
}

.record-layout,
.contact-layout,
.team-layout {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.record-layout,
.contact-layout {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
}

.record-intro > p:not(.section-label),
.team-story > p:not(.section-label),
.contact-intro > p:not(.section-label) {
  max-width: 50ch;
  margin: 0 0 1.2rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.65;
}

.record-intro > p:not(.section-label),
.team-story > p:not(.section-label) {
  color: #45564d;
}

.record-intro .lower-text-link {
  display: inline-block;
  margin-top: .4rem;
  font-weight: 600;
}

.record-list {
  margin: 0;
  padding: 0;
}

.record-list > div {
  padding: 1.4rem 0;
  border-top: 1px solid #b6c4b6;
}

.record-list > div:last-child {
  border-bottom: 1px solid #b6c4b6;
}

.record-list dt {
  font: 400 clamp(1.35rem, 1.85vw, 1.75rem)/1.18 var(--serif);
  letter-spacing: -.02em;
}

.record-list dd {
  margin: .45rem 0 0;
  max-width: 52ch;
  color: #46574e;
  font-size: 1rem;
  line-height: 1.55;
}

.team-feature {
  background: var(--paper);
  color: var(--forest);
}

.team-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
}

.team-photo {
  margin: 0;
}

.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.16;
  object-fit: cover;
  object-position: center 21%;
}

.team-photo figcaption {
  margin-top: .7rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.team-story h2 {
  max-width: 13ch;
}

.team-result {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 1.75rem);
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid #c3cec3;
}

.result-number {
  color: var(--forest);
  font: italic 400 clamp(3.8rem, 6vw, 5.5rem)/1 var(--serif);
  letter-spacing: -.05em;
}

.team-result p {
  margin: 0;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.5;
  color: #45564d;
}

.team-result strong {
  display: block;
  color: var(--forest);
}

.lesson-contact {
  background: var(--forest);
  color: var(--paper);
}

.lesson-contact .section-label {
  color: var(--lime);
}

.contact-intro h2 {
  color: var(--paper);
  max-width: 12ch;
}

.contact-intro > p:not(.section-label) {
  color: #e0e8de;
  max-width: 37ch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

.contact-actions .contact-message {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  background: var(--lime);
  color: var(--forest);
  text-decoration: none;
  font-weight: 650;
}

.contact-actions .contact-message:hover {
  background: #e4f5b1;
}

.contact-actions .lower-text-link {
  font-size: .95rem;
  font-weight: 600;
}

.first-lesson {
  scroll-margin-top: 6rem;
}

.first-lesson h3 {
  margin: 0 0 1.3rem;
  color: var(--paper);
  font: 400 clamp(1.65rem, 2.5vw, 2.2rem)/1.15 var(--serif);
  letter-spacing: -.02em;
}

.first-lesson ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson-steps;
}

.first-lesson li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  column-gap: 1rem;
  border-top: 1px solid #476057;
  padding: 1rem 0;
  counter-increment: lesson-steps;
}

.first-lesson li::before {
  content: counter(lesson-steps, decimal-leading-zero);
  grid-row: 1 / 3;
  padding-top: .1rem;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.first-lesson li strong {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--paper);
}

.first-lesson li p {
  grid-column: 2;
  margin: .25rem 0 0;
  max-width: 49ch;
  color: #c7d5cd;
  font-size: 1rem;
  line-height: 1.5;
}

.chess-footer {
  color: var(--forest);
  background: var(--paper);
}

.footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  padding-block: 1.5rem;
  font-size: .875rem;
}

@media (max-width: 48rem) {
  .record-layout,
  .contact-layout,
  .team-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .team-story { grid-row: 1; }
  .team-story h2 { max-width: 16ch; }
  .team-photo img { aspect-ratio: 1.35; }
  .first-lesson li { column-gap: .65rem; }
  .footer-line { justify-content: flex-start; }
}
