/* Contact: aperture, section checklist, then the details on their plates. */

/* clea (aperture): the first window, with the photograph across from the email. */
.clea {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  padding-block: var(--s5) var(--s4);
}

/* clei (intro): the first working sentence and its direct email action. */
.clei { min-inline-size: 0; gap: var(--s5); }
.clei h1 { max-inline-size: 12em; font-size: clamp(1.8125rem, 1.15rem + 2.5vw, 3.4rem); }
.clei p { max-inline-size: 26ch; font-size: var(--t3); line-height: 1.4; }

/* clee (email): keep the full address inside its action at phone width. */
.clee {
  max-inline-size: 100%;
  padding-inline: var(--s3);
  overflow-wrap: anywhere;
  text-align: start;
}

/* clep (photograph): a close crop with the section stub running out below it. */
.clep { min-inline-size: 0; }
.clep img {
  inline-size: 100%;
  block-size: clamp(10.5rem, 24vh, 17rem);
  object-fit: cover;
  object-position: 58% 68%;
}
.clep figcaption {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.clep figcaption svg { inline-size: clamp(3rem, 8vw, 7rem); flex: none; }

/* cleq (quote): contact bands share a tighter beat than the visit stages. */
.cleq { gap: var(--s5); padding-block: clamp(var(--s5), 4.5vh, var(--s6)); }
.cleq > .clefl { gap: var(--s3); }

/* clek (kit): the working section and its email draft, side by side where they fit. */
.clek {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  align-items: stretch;
}

/* cler (rail): two aligned strips, with the drawing's five stops at the centres of the controls. */
.cler { display: flex; gap: var(--s3); min-inline-size: 0; }
.cler .clecr { flex: 0 0 clamp(2.25rem, 12vw, 3.5rem); }
.cler .clecr svg { position: absolute; inset: 0; block-size: 100%; }
.cler .clecr svg:first-child { display: none; }
.cler ol { display: flex; flex: 1; flex-direction: column; min-inline-size: 0; }
.cler li {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-block-size: 3.75rem;
  padding-block: var(--s2);
}

/* clej (junction): a numbered press with a square that fills when its line is in the draft. */
.clej {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-block-size: 2.75rem;
  inline-size: 100%;
  padding: var(--s2) var(--s3);
  background: var(--c3);
  font-size: var(--t1);
  line-height: 1.2;
  text-align: start;
  transition: background-color var(--d1), color var(--d1);
}
.clej span:first-child { font-variant-numeric: tabular-nums; }
.clej span:nth-child(2) { flex: 1; }
.clej span:last-child { inline-size: .625rem; block-size: .625rem; flex: none; border: .125rem solid currentColor; }
.clej:hover:not(:disabled) { background: var(--c6); }
.clej[aria-pressed="true"] { color: var(--c3); background: var(--c4); }
.clej[aria-pressed="true"]:hover:not(:disabled) { background: var(--c2); }
.clej[aria-pressed="true"] span:last-child { background: currentColor; }
.clej:disabled { cursor: default; }

/* cled (draft): a white writing surface, with room for all five lines before any are picked. */
.cled { min-inline-size: 0; gap: var(--s4); }
.cled .clepl {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-block-size: 12.25rem;
  padding: var(--s4);
}
.cled pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.cled [data-empty] { color: var(--c5); }

/* clef (find): details run across the measure in plates of different widths. */
.clef { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s6); align-items: flex-start; }
.clef > div { display: flex; flex-direction: column; gap: var(--s3); min-inline-size: 0; max-inline-size: 100%; }
.clef dt { font-size: var(--t1); }

/* clev (value): plate content and linked values use the same compact inset. */
.clev { display: flex; flex-direction: column; justify-content: center; min-block-size: 2.75rem; padding: var(--s2) var(--s3); overflow-wrap: anywhere; }

/* cleh (handoff): the town note at one end, the next reading at the other. */
.cleh { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s4) var(--s5); padding-block-start: var(--s3); }
.cleh p { flex: 1 1 18rem; max-inline-size: 37rem; }
.cleh ul { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: var(--s4); padding: 0; list-style: none; }
.cleh a { font-size: var(--t1); }

@media (min-width: 48rem) {
  .clea {
    flex-direction: row;
    align-items: center;
    gap: clamp(var(--s5), 3.4vw, var(--s7));
    padding-block: var(--s6) var(--s5);
  }
  .clei { flex: 4 1 0; padding-block-end: var(--s5); }
  .clep { flex: 6 1 0; }
  .clep img { block-size: clamp(18rem, 47vh, 28rem); }
  .clek { flex-direction: row; align-items: flex-start; gap: clamp(var(--s5), 4vw, var(--s7)); }
  .cler { flex: 6 1 0; }
  .cler .clecr { flex-basis: clamp(5rem, 11vw, 9.375rem); }
  .cler .clecr svg:first-child { display: block; }
  .cler .clecr svg:last-child { display: none; }
  .cled { flex: 5 1 0; }
  .cled .clepl { padding: var(--s5); }
}
