/* Page openings share the same label gap and reading alignment. */
html body main :is(.home-opening, .about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) {
  --opening-label-gap: 12px;
  padding-top: clamp(48px, 5vw, 72px);
}
html body main :is(.about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) > .eyebrow,
html body main .home-opening > .hp-label,
html body main .owners-intro-copy > .eyebrow {
  font: 400 15px/1.5 'Space Mono', monospace !important;
  letter-spacing: .045em;
  color: var(--pink);
  margin: 0 0 12px !important;
}
html body main .home-opening > .hp-label { padding: 0; }
html body main .owners-intro-copy > h2 { margin-top: 0; }
@media (min-width: 761px) {
  html body main :is(.about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 8%;
    row-gap: var(--opening-label-gap);
    align-items: start;
  }
  html body main :is(.about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) > .eyebrow {
    grid-column: 1 / -1;
    margin: 0 !important;
  }
  html body main :is(.about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) > :is(h2, p:not(.eyebrow), div:not(.mintaka-scene)),
  html body main .code-opening .declaration,
  html body main :is(.about-summary, .opening-reading, .ways-summary, .shore-opening > div, .art-opening > div:not(.mintaka-scene)) > p {
    margin-top: 0;
    margin-bottom: 0;
    align-self: start;
  }
  /* Jost's larger heading capitals sit a little lower in their line box. */
  html body main :is(.about-opening > .about-summary, .code-opening > .opening-reading, .sea-ways > .ways-summary, .shore-opening > div, .art-opening > div:not(.mintaka-scene), .log-opening > p:not(.eyebrow)),
  html body main .home-opening .why-copy > div {
    padding-top: clamp(4px, .45vw, 7px);
  }
  html body main .home-opening .why-copy { align-items: start; }
  html body main .home-opening .why-copy > h2 { margin-top: 0; }
  html body main .home-opening .why-copy .hp-lead { margin-top: 0; }
  html body main .art-opening > .mintaka-scene,
  html body main .sea-ways > .section-overview { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  html body main :is(.about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) { display: block; }
  html body main :is(.about-opening, .code-opening, .sea-ways, .shore-opening, .art-opening, .log-opening) > h2,
  html body main .code-opening .declaration { margin: 0 0 24px; }
  html body main .home-opening .why-copy > h2 { margin-top: 0; }
}
/* Preserve the Code's pulse beside the heading, after the reading on phones. */
html body.code-page main .code-opening .declaration { margin-top: 0; }
@media (min-width: 761px) {
  html body.code-page main .code-opening > div:not(.opening-reading) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    column-gap: 18px;
    align-items: start;
  }
  html body.code-page main .code-opening > .opening-reading { padding-top: clamp(4px, .45vw, 7px); }
  html body.code-page main .code-opening .code-love-heart { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  html body.code-page main .code-opening { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  html body.code-page main .code-opening > .eyebrow { order: 1; margin-bottom: 0; }
  html body.code-page main .code-opening > div:not(.opening-reading) { display: contents; }
  html body.code-page main .code-opening .declaration { order: 2; margin-bottom: 12px; }
  html body.code-page main .code-opening > .opening-reading { order: 3; padding-top: 0; }
  html body.code-page main .code-opening .code-love-heart { order: 4; grid-row: auto; grid-column: 1; margin: 7px auto 0; }
}
