/* Homepage section markers and mobile reading rhythm. */
.home-page .home-section-number {
  display: inline-block;
  margin-right: 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .home-page > .hero {
    padding-bottom: 48px;
  }

  .home-page > :is(#home-work, #home-lab, #home-notes, #home-about) {
    width: 100%;
    margin-inline: 0;
    padding: 44px 20px 48px;
    border-top: 1px solid #d5e0ef;
    border-bottom: 0;
    background: var(--paper);
  }

  .home-page > :is(#home-lab, #home-about) {
    background: #f0f5fc;
  }

  .home-page #home-lab > .lab-feature {
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 28px;
  }

  .home-page :is(#home-work, #home-lab, #home-notes, #home-about) .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #466181;
    font-size: 12px;
    line-height: 1.6;
  }

  .home-page .home-section-number {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-right: 0;
    border: 1px solid #cadbf3;
    border-radius: 4px;
    background: #fff;
    color: var(--blue);
  }

  .home-page .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .home-page :is(.section-title, .about-strip-title) {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
  }

  .home-page .lab-copy .section-title {
    margin: 0 0 18px;
    line-height: 1.5;
  }

  .home-page .section-intro {
    margin-top: 0;
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.9;
  }

  .home-page .text-link {
    min-height: 44px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #b0c6ed;
    text-underline-offset: 5px;
  }

  .home-page .section-heading > .text-link {
    padding: 8px 13px;
    border: 1px solid #d2e0f4;
    border-radius: 4px;
    background: #f7faff;
  }

  .home-page .project-grid {
    gap: 26px;
  }

  .home-page .project-card {
    border-color: #d6e0ed;
    border-radius: 6px;
  }

  .home-page .project-content {
    padding: 22px 20px 24px;
  }

  .home-page #home-lab .summary-grid {
    margin-bottom: 0;
    background: #fff;
    border-color: #d2dfef;
  }

  .home-page #home-notes .writing-list {
    padding-inline: 18px;
    border: 1px solid #d8e2ef;
    border-radius: 6px;
    background: #fbfdff;
  }

  .home-page #home-notes .writing-item {
    padding-block: 22px;
  }

  .home-page #home-notes .writing-title {
    font-size: 18px;
    line-height: 1.6;
  }

  .home-page #home-about {
    gap: 22px;
  }

  .home-page #home-about .about-strip-text {
    font-size: 15px;
    line-height: 1.95;
  }

  .home-page #home-about .text-link {
    margin-top: 18px;
  }
}

@media (min-width: 390px) and (max-width: 620px) {
  .home-page > :is(#home-work, #home-lab, #home-notes, #home-about) {
    padding-inline: 24px;
  }
}
