/* Contact page: the full-size index card, five towns, what to have ready.
   Phone first; wider screens added in em; written in the order the page is read. */

/* Opening: the photograph steps right and stays inside the first window. */
.vis-visit .vis-photo { max-width: 46rem; }
.vis-visit .vis-photo img { max-height: 36vh; }
.vis-visit .vis-say-first { max-width: 34em; }
@media (min-width: 56em) {
  .vis-visit .vis-photo img { aspect-ratio: 16 / 9; max-height: 40vh; }
}

/* A block's text and its companion, the second one step right and a little lower. */
.vis-pair { display: grid; gap: 0; }
.vis-pair > :last-child { margin: 1.5rem 0 0 var(--photo-shift); }
@media (min-width: 56em) {
  .vis-pair {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    column-gap: 4vw;
    align-items: start;
  }
  .vis-pair > :last-child { margin: 3.5rem 0 0; }
  .vis-pair-towns { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
}

/* The index card at full size: tabs project from its top edge; one ruled face shows at a time. */
.vis-fullcard {
  width: calc(100% - 1.25rem);
  max-width: 40rem;
  color: var(--blackberry);
  transform: rotate(1deg);
}
.vis-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.3rem;
  margin-left: 1rem;
}
.vis-flap {
  min-height: 2.75rem;
  padding: 0.35rem 1rem 0.15rem;
  border: 0;
  background: var(--sunflower);
  color: var(--blackberry);
  font-family: var(--sign-face);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.vis-flap[data-state="shown"] {
  min-height: 3.25rem;
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
.vis-flap:hover { color: var(--raspberry); }
.vis-flap:focus-visible { outline-color: var(--enclosure-white); }
.vis-faces {
  padding: 0.6rem 1.1rem 1.5rem;
  background: var(--sunflower);
  font-size: var(--read-size);
  line-height: 1.5;
}
.js .vis-faces { display: grid; }
.js .vis-face { grid-area: 1 / 1; }
.js .vis-face[data-state="hidden"] { visibility: hidden; }
.vis-lines li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.75rem;
  min-height: 2.75rem;
  padding: 0.3rem 0;
  border-bottom: 0.0625rem solid var(--blackberry);
}
.vis-lines a {
  color: var(--blackberry);
  text-decoration-color: var(--blackberry);
  text-decoration-thickness: 0.1em;
}
.vis-lines a:hover { color: var(--raspberry); }
.vis-lines a:focus-visible { outline-color: var(--blackberry); }
.vis-big { min-height: 3.5rem; }
.vis-big a { font-size: 1.35rem; line-height: 1.3; overflow-wrap: anywhere; }
.vis-now { font-weight: 400; }
@media (min-width: 56em) {
  .vis-fullcard { width: 100%; max-width: none; transform: rotate(3deg); }
  .vis-faces { padding: 0.9rem 1.5rem 2rem; }
  .vis-big a { font-size: 1.6rem; }
}

/* The five towns, stacked, with the market counter set apart beside them. */
.vis-towns { margin-top: 0.5rem; }
.vis-towns li { margin-bottom: 1.4rem; }
.vis-towns p { max-width: var(--read-wide); }
.vis-town {
  font-family: var(--sign-face);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.vis-market { max-width: 30rem; }
.vis-market .vis-town { color: var(--sunflower); }
.vis-market p { margin-top: 0.4rem; }
@media (min-width: 56em) {
  .vis-towns { margin-top: 1.5rem; }
  .vis-market { margin-top: 5rem; }
}

/* What to have ready, and the hand-off at the foot of the page. */
.vis-pair > .vis-read { margin-top: 1.5rem; }
.vis-pair > .vis-ways { flex-direction: column; gap: 0.1rem; }
.vis-pair > .vis-ways .vis-action { font-size: 1.1875rem; }
@media (min-width: 56em) {
  .vis-pair > .vis-read { margin-top: 0.6rem; }
  .vis-pair > .vis-ways { margin-top: 2.5rem; }
}
