/* Weddings: the opening photograph, the drawn estate plan, ledger rows for spaces and terms, the closing strip. */

.page-weddings .lede { margin-top: 0.6rem; max-width: 40em; }

/* Opening */
.open h1 { max-width: 30ch; }
.open__sub { margin-top: 0.6rem; max-width: 40em; }
.open__fig { margin: 1.5rem 0 0 1rem; }
.open__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 48rem) {
  .open__fig img { aspect-ratio: 3 / 1; }
}

/* The plan: SVG drawing at the left, real HTML names at the right. */
.plan { display: grid; gap: 1.25rem 2rem; margin-top: 1.25rem; }
@media (min-width: 48rem) {
  .plan { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.plan__svg { width: 100%; height: auto; overflow: visible; }
.plan__svg [data-shape] {
  transition: stroke-dashoffset 1.1s var(--ease), fill 0.25s linear, stroke 0.25s linear;
}
.plan__svg line { stroke-opacity: 0.6; }
.plan__key { border-top: var(--line); counter-reset: space; }
.plan__key li {
  display: flex; align-items: center; min-height: 3.25rem; padding: 0.5rem 0;
  border-bottom: var(--line); font: 400 1.25rem/1.3 var(--text);
}
.plan__key li::before {
  counter-increment: space; content: counter(space, decimal-leading-zero);
  flex: none; width: 2.5rem; font: 400 var(--fs-small)/1 var(--display); color: var(--accent);
}
.plan__name { display: inline-flex; flex-direction: column; }
.plan__name::after {
  content: ""; display: block; height: 0.125rem; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--draw) var(--ease);
}

/* Hover or focus on a space (row or plan name) marks it on the plan and underlines its name. */
.plan[data-on="gathering"] [data-shape="gathering"],
.plan[data-on="patio"] [data-shape="patio"],
.plan[data-on="allee"] [data-shape="allee"],
.plan[data-on="lawn"] [data-shape="lawn"] { stroke: var(--accent); fill: var(--second); }
.plan[data-on="gathering"] [data-space="gathering"] .plan__name::after,
.plan[data-on="patio"] [data-space="patio"] .plan__name::after,
.plan[data-on="allee"] [data-space="allee"] .plan__name::after,
.plan[data-on="lawn"] [data-space="lawn"] .plan__name::after { transform: none; }

/* Space rows: name at the left, one plain line at the right. */
.space, .term { display: grid; gap: 0.4rem 2rem; padding: var(--pad); align-items: baseline; }
@media (min-width: 48rem) {
  .space, .term { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.space__name { font: 400 1.375rem/1.3 var(--text); }
.space__name a { display: inline-block; padding: 0.45rem 0; }

/* Terms rows: the figure in Jost, the plain line beside it. */
.term__line { font: 400 var(--fs-hl)/1.25 var(--display); }
.term__line b { font-weight: 650; }
.term > * + p, .term > div > p { max-width: 36em; }
.ask { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 0.5rem; }

/* Closing hand-off strip */
.next__strip { margin-top: 1.25rem; }
