/* Shared reading and keyboard refinements for the existing notebook design. */
:root {
  --footer-ink: #17281d;
  --footer-secondary: #203025;
}

/* The orange stays; functional text and focus use a deeper green ink. */
.finale,
.nb-footer {
  --ink: var(--footer-ink);
  color: var(--footer-ink);
}

.finale :is(a, button, input, select, textarea):focus-visible,
.nb-footer :is(a, button):focus-visible {
  outline: 3px solid var(--footer-ink);
  outline-offset: 5px;
}

.contact-fields label,
.contact-fields label > span {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

.contact-fields label > span {
  font-size: 13px;
}

.contact-fields :is(input, select, textarea) {
  color: var(--footer-ink);
  border-bottom-color: var(--footer-ink);
  font-size: 16px;
  min-height: 48px;
}

.contact-fields :is(input, textarea)::placeholder {
  color: var(--footer-secondary);
  opacity: 1;
}

.contact-fields :is(input, select, textarea):focus {
  outline: 3px solid var(--footer-ink);
  outline-offset: 5px;
  border-bottom-color: var(--footer-ink);
  box-shadow: none;
}

.contact-expectation,
.contact-status {
  font-size: 14px;
  line-height: 1.65;
}

.footer-brand p,
.footer-contact,
.footer-links {
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  gap: 4px 32px;
}

.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
}

.footer-bottom {
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
}

.home-product-preview figcaption,
.proof-label,
.proof-action,
.hero-motion-toggle {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.proof-detail,
.proof-card p,
.home-workflow p,
.home-research-notes p {
  font-size: 15px;
  line-height: 1.65;
}

.board-small,
.hero-lead,
.home-product-intro > div > p,
.home-research > div > p {
  font-size: 16px;
  line-height: 1.65;
}

.chain-under-card,
.chain-boundary,
.chain-status {
  font-size: 14px;
  line-height: 1.6;
}

.chain-current {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .025em;
}

@media (max-width: 760px) {
  /* The footer keeps its back-to-top link; no floating control covers reading text. */
  .site-back-to-top {
    display: none;
  }

  .footer-links {
    gap: 4px 24px;
  }

  .footer-contact,
  .footer-brand p,
  .footer-bottom {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .finale-lower > p,
  .evidence-intro > p,
  .context-copy > p,
  .nb-section-heading p {
    font-size: 16px;
    line-height: 1.65;
  }

  .contact-fields .button {
    justify-self: start;
  }

  .proof-card p {
    font-size: 14px;
  }

  .proof-action {
    gap: 8px;
  }
}

/* Phone cards keep their drawings and order without squeezing five into a row. */
@media (max-width: 600px) {
  .home-research-notes {
    grid-template-columns: 1fr;
  }

  .home-research-notes > a:nth-child(2) {
    margin-top: 8px;
  }

  .chain-dominoes {
    --chain-land-angle: 4deg;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding: 12px 8px 4px;
  }

  .chain-station:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2);
    justify-self: center;
  }

  .chain-station:not(:last-child)::after {
    display: none;
  }

  .chain-card {
    min-height: 170px;
    padding: 14px 13px 21px;
    gap: 10px;
  }

  .chain-card-number {
    font-size: 13px;
  }

  .chain-card-title {
    font-size: 20px;
    letter-spacing: -.03em;
    white-space: normal;
  }

  .chain-drawing {
    width: 80px;
    max-width: 100%;
    height: 80px;
  }

  .chain-under-card {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.4;
  }

  .chain-copy {
    min-height: 0;
  }
}
