body.code-page section.principle {
  display: block;
}
.principle-layout {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 36rem);
  grid-template-rows: auto 1fr;
  grid-template-areas: "illustration reading" "illustration practice";
  align-items: start;
  gap: 1.5rem clamp(2rem, 7vw, 7rem);
  margin-top: clamp(1.25rem, 2vw, 1.75rem);
}
.principle-reading { grid-area: reading; }
.principle-illustration { grid-area: illustration; }
body.code-page .principle-layout .practice { grid-area: practice; margin: 0; }
body.code-page .principle-layout .principle-photo { margin: 0; }
.principle-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.principle-photo > figcaption {
  margin-top: .6rem;
  color: #713b31;
  font: 10px/1.6 'Space Mono', monospace;
}
#miracles .principle-illustration { max-width: 21rem; }
#miracles .principle-photo img { aspect-ratio: 3 / 2; object-position: 50% 60%; }
.principle-divider-bird {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: clamp(90px, 13vw, 184px);
  height: auto;
  transform: translateY(50%) rotate(-12deg);
  filter: brightness(0);
  pointer-events: none;
}
.principle-illustration .principle-voice { margin: 1rem 0 0; padding-top: .85rem; }

@media (max-width: 760px) {
  .principle-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "reading" "practice" "illustration";
    gap: 1.25rem;
  }
  .principle-illustration { width: min(100%, 21rem); }
  #miracles .principle-illustration { max-width: 18rem; }
}

/* Give the gifted treasures enough presence beside the reading column. */
.code-page .code-belonging{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:6%}
.code-page .belonging-art{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:16px;max-width:none;min-width:0}
.code-page .belonging-art figure{margin:0;min-width:0}
.code-page .belonging-art img{display:block;width:100%;height:auto}
.code-page .belonging-art .photo-caption{font:10px/1.6 'Space Mono',monospace;margin-top:14px}
@media(max-width:760px){
 .code-page .code-belonging{grid-template-columns:minmax(0,1fr);gap:32px}
 .code-page .belonging-art{width:100%;gap:14px}
 .code-page .belonging-art .photo-caption{font-size:9px}
}
/* Photograph focal points. */
body.code-page .menu-hero-code .menu-hero-photo img{filter:none;object-position:54% center}
.code-page #love .principle-photo>img{object-position:50% 40%}
.code-page #show-up .principle-photo>img{object-position:55% 45%}
.code-page #pattern .principle-photo>img{object-position:35% 45%}
.code-page #humble .principle-photo>img{object-position:50% 55%}
.code-page .practice-path-photo{margin:0 0 22px}
.code-page .practice-path-photo img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.code-page .practice-path-photo figcaption{font:10px/1.6 'Space Mono',monospace;color:var(--pink);margin-top:12px}
@media(max-width:760px){body.code-page .menu-hero-code .menu-hero-photo img{object-position:52% center}}

@media (max-width: 760px) {
  #pattern { padding-bottom: 88px; }
  #miracles { padding-top: 80px; }
}

/* Let the two details rest on the outer edge of the bandana portrait. */
.code-page .belonging-art {
  isolation: isolate;
  column-gap: 0;
}
.code-page .belonging-art .bandana-initiation {
  grid-row: span 2;
  transform: rotate(-1deg);
}
.code-page .belonging-art figure:nth-child(2) {
  z-index: 1;
  transform: translateX(-5%) rotate(2deg);
}
.code-page .belonging-art figure:nth-child(3) {
  z-index: 1;
  transform: translateX(-8%) rotate(-2deg);
}

/* Give the long title presence, and let its photo and quote share the full column. */
html body.code-page main #miracles h2 { max-width: none; }
html body.code-page main #miracles h2 > span { display: block; font-size: inherit; }
html body.code-page main #miracles .principle-illustration { width: 100%; max-width: none; }
html body.code-page main #miracles .principle-photo img { aspect-ratio: 16 / 9; }
html body.code-page main #miracles .principle-voice { width: 100%; height: auto; max-height: none; overflow: visible; }
@media (min-width: 1101px) {
  html body.code-page main #miracles h2 { font-size: clamp(56px, 5vw, 72px); }
}
