/* Long text on the denim wall: a head with a print, a contents list in the margin, numbered clauses. No boxes, no rules. */
.the-deed { padding-top: clamp(1.25rem, 4vh, 2.5rem); }
.the-deed-head {
  display: grid; gap: 1.25rem 3rem; align-items: end;
  padding-inline: var(--the-edge);
}
.the-deed-text { display: grid; gap: 0.9rem; align-content: end; }
.the-deed-text > * { margin: 0; }
.the-deed-date { color: var(--the-gleam); font-size: 1rem; }
.the-deed-print { align-self: end; }
.the-deed-print img { max-height: 13rem; }
.the-deed-head .the-marking { font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); }

.the-deed-body {
  display: grid; gap: 1.5rem 4rem;
  padding: clamp(1.75rem, 5vh, 3rem) var(--the-edge) 0;
}

/* contents: ol.the-contents, numbered by counter, each link a full 44px row */
.the-contents { margin: 0.5rem 0 0; padding: 0; list-style: none; counter-reset: entry; }
.the-contents a {
  display: flex; align-items: baseline; gap: 0.75rem;
  min-height: 2.75rem; padding-block: 0.55rem;
  line-height: 1.35; text-decoration: none;
}
.the-contents a::before {
  counter-increment: entry; content: counter(entry, decimal-leading-zero);
  flex: none; font-family: var(--the-stencil); color: var(--the-gleam);
}
.the-contents a:hover { text-decoration: underline 0.125rem var(--the-brass); }

/* clauses: section.the-clause > h2 + paragraphs, numbered by counter */
.the-clauses { counter-reset: clause; }
.the-clause { padding-bottom: 1.75rem; }
.the-clause h2 {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin: 0 0 0.6rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2;
}
.the-clause h2::before {
  counter-increment: clause; content: counter(clause, decimal-leading-zero);
  flex: none; color: var(--the-gleam);
}
.the-clause p, .the-clause li { max-width: 48rem; }
.the-clause ul { margin: 0 0 1em; }
.the-clause li { padding-block: 0.15rem; }
.the-reach { margin: 0 0 1em; font-style: normal; line-height: 1.5; }
.the-reach > span { display: block; }
.the-reach a { display: flex; align-items: center; width: fit-content; min-height: 2.75rem; }
.the-clause button.the-brass { min-height: 2.75rem; }

@container band (min-width: 30rem) and (max-width: 55.99rem) {
  .the-contents { columns: 2; column-gap: 2rem; }
  .the-contents li { break-inside: avoid; }
}
@container band (min-width: 48rem) {
  .the-deed-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .the-deed-head .the-marking { grid-column: 1 / -1; }
  .the-deed-print img { max-height: 22rem; }
}
@container band (min-width: 56rem) {
  .the-deed-body { grid-template-columns: minmax(13rem, 1fr) minmax(0, 2.6fr); align-items: start; }
}
