/* Contact: one screen. The navy opening fills the viewport under the masthead; the address is the
   largest thing on the page, set on one line in the display face, and the page's contour lines
   (assets/pages/contact.js) ring it. "Contact" is a small kicker above it, the routing notes sit
   small beneath it. Below 60rem: kicker, address, notes, then the lines in a band beneath. */

.contact-screen .wrap { container-type: inline-size; }

.contact-screen h1 {
  font-family: var(--isej-font-display);
  font-size: var(--isej-step--1);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  max-width: none;
  margin: 0 0 clamp(1rem, 2vw, 1.6rem);
}

/* The old section heading "Address" stays in the outline for screen readers; the address itself is the label. */
.contact-screen .contact-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 25 characters on one line: the size is the content width over the address's measured advance
   (13.6em in Libre Baskerville at this tracking), capped near 5.5rem. */
.contact-screen .address {
  font-family: var(--isej-font-display);
  font-size: min(5.5rem, 7.2cqi);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin: 0;
}
.contact-screen .address a { text-underline-offset: 0.16em; }

.contact-screen .notes {
  max-width: 34rem;
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
  font-size: var(--isej-step-0);
  line-height: 1.6;
}
.contact-screen .notes p { margin: 0; }
.contact-screen .notes p + p { margin-top: 0.8rem; }
.contact-screen .notes .lede { font-size: inherit; line-height: inherit; max-width: none; text-wrap: pretty; }

@media (min-width: 60rem) {
  .contact-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--contact-masthead, 4.6rem));
  }
  .contact-screen .wrap { padding-block: clamp(3rem, 6vh, 5rem); }
}

/* Below 60rem the bold layout gives way to the phone opening: text first, the lines in a band. */
@media (max-width: 59.99rem) {
  .contact-screen { display: flex; flex-direction: column; min-height: 0; }
  .contact-screen div.field-bg { position: relative; inset: auto; order: 2; height: clamp(9rem, 32vw, 14rem); }
  .contact-screen .wrap { order: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
}
