/* Color page: the root-to-end rule lives in the gutter between two photographs. */
.page-color { --gutter: clamp(1.25rem, 3vw, 2.5rem); }

/* Opening: the lede lines up with the second photograph's column on wider screens. */
.page-color .opening { padding-bottom: clamp(2rem, 5vw, 4rem); }
@media (min-width: 48rem) {
  .page-color .opening-lede { margin-left: calc((100% - var(--gutter)) / 2 + var(--gutter)); max-width: 30rem; }
}

/* The pair: photograph, gutter, photograph. Only the two frames and the rule sit in this grid. */
.pair-wrap { padding-bottom: var(--space); }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--gutter) minmax(0, 1fr);
  padding-block: .5rem;
}
.pair .part {
  justify-self: center; align-self: stretch;
  min-height: 0; height: 100%;
}

/* Notches: three short crossbars, kept inside the gutter. */
.notch {
  position: absolute; left: 50%;
  width: .75rem; height: var(--part-w);
  background: var(--part);
  transform: translateX(-50%);
}
.notch--root { top: 0; }
.notch--mid { top: calc(50% - var(--part-w) / 2); }
.notch--end { bottom: 0; }
.notch.is-on { width: 1.125rem; height: .3125rem; }
.notch--mid.is-on { top: calc(50% - .15625rem); }
.notch { transition: width .4s var(--ease), height .4s var(--ease); }

.pair-caption { margin-top: 1.5rem; max-width: 36rem; }

/* Rows band. */
.rows-band { padding-block: var(--space); }
.rows-title { margin-top: 1.25rem; max-width: 12ch; }
.rows { margin-top: clamp(2.5rem, 6vw, 5rem); }

.row {
  display: grid; grid-template-columns: minmax(0, 1fr);
  row-gap: 1.5rem; column-gap: 0;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-top: .0625rem solid var(--hair);
}
.row:last-child { padding-bottom: 0; }
.row-name { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.row-copy { display: grid; gap: .6rem; align-content: start; max-width: 30rem; color: var(--ink); }
.row-copy .label { color: var(--ink-soft); }

@media (min-width: 48rem) {
  .row { grid-template-columns: minmax(0, 1fr) var(--gutter) minmax(0, 1fr); }
  .row-name { grid-column: 1 / -1; }
  .row-a { grid-column: 1; }
  .row-b { grid-column: 3; }
}

/* Live state (added by color.js only when motion is allowed): rows not yet reached are quieter. */
.rows.is-live .row-name,
.rows.is-live .row-copy,
.rows.is-live .row-name .tick { transition: color .6s var(--ease), background-color .6s var(--ease); }
.rows.is-live .row:not(.is-on) .row-name { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.rows.is-live .row:not(.is-on) .row-copy { color: var(--ink-soft); }
.rows.is-live .row:not(.is-on) .row-name .tick { background: var(--part-faint); }

/* Which to ask for. */
.ask-head, .ask-body { grid-column: 1 / -1; }
.ask-head .h-xl { margin-top: 1.25rem; max-width: 10ch; }
.ask-body { margin-top: clamp(2rem, 5vw, 3rem); }
.ask-links { display: flex; flex-wrap: wrap; gap: .25rem 2rem; padding-top: .5rem; }
.ask-call { padding-top: .5rem; }
@media (min-width: 48rem) {
  .ask-head { grid-column: 1 / span 6; }
  .ask-body { grid-column: 7 / span 6; margin-top: 0; align-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .notch { transition: none; }
}
