/* The contact page: a message to my inbox, on its own page in the look of the closing scene.
   The words keep to the left; the line portrait stands clear at the right. */
body.write { background: var(--slate); }
.write .talk h2 { font-size: clamp(60px, 13vw, 230px); line-height: .86; }
.write .talk { justify-content: flex-start; padding-top: clamp(96px, 12vw, 170px); border-radius: 0; margin-top: 0; }
.write .talk .small { max-width: min(46vw, 40em); line-height: 1.7; }
.talk h2 { align-self: flex-start; }
.reach { position: relative; z-index: 1; display: grid; gap: 18px; width: min(42vw, 600px); margin-top: clamp(26px, 3.4vw, 46px); }
.reach__lead { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.15; color: var(--clay); }
.reach__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reach label { display: grid; gap: 6px; }
.reach label span { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.reach input, .reach textarea { width: 100%; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--paper) 42%, transparent); border-radius: 0; background: none; color: var(--paper);
  font: 500 clamp(17px, 1.5vw, 21px)/1.4 var(--sans); padding: 8px 0 10px; outline: none; transition: border-color .25s; }
.reach textarea { min-height: 7.2em; resize: vertical; }
.reach input:focus-visible, .reach textarea:focus-visible { border-bottom-color: var(--ember); box-shadow: 0 3px 0 var(--ember); background: color-mix(in srgb, var(--paper) 7%, transparent); }
.reach [aria-invalid="true"] { border-bottom-color: #FFB4A0; }
.reach__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reach__send { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 4px; }
.reach__send button { border: 0; cursor: pointer; font-family: var(--sans); }
.reach__send button:disabled { opacity: .55; cursor: default; }
.reach__status { font-size: 15px; line-height: 1.4; color: var(--mist); }
.reach__status.is-error { color: #FFB4A0; }
.reach__fine { font-size: 13px; line-height: 1.5; color: var(--mist); }
.reach__done { position: relative; z-index: 1; margin-top: clamp(26px, 3.4vw, 46px); max-width: min(42vw, 600px); font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.9vw, 44px); line-height: 1.12; color: var(--clay); overflow-wrap: anywhere; outline: none; }
.talk .routes { margin-top: 30px; max-width: min(44vw, 620px); }
.reach__send .pill.clay { background: var(--clay-fill); color: #fff; }
.reach__send .pill.clay::before { background: var(--paper); }
.reach__send .pill.clay:hover, .reach__send .pill.clay:focus-visible { color: var(--ink); }
.talk .routes::before { content: "Or"; align-self: center; margin-right: 6px; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
/* narrow screens: the words take the full width and the portrait stands under them, never behind them */
@media (max-width: 900px) {
  .reach { width: auto; } .reach__row { grid-template-columns: 1fr; } .talk .routes { max-width: none; } .reach__done { max-width: none; }
  section.talk { padding-bottom: 0; }
  .talk .talk__portrait { position: relative; order: 99; right: auto; bottom: auto; height: auto; width: min(82vw, 420px); margin: 34px auto 0; opacity: .9; }
}

/* wide screens: two columns. The portrait keeps its place at the right while the form passes,
   with its foot on the bottom edge of the screen, so it is there as soon as the scene arrives. */
@media (min-width: 901px) {
  .talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); column-gap: 3vw; align-content: start; justify-content: stretch; --ph: min(84svh, 760px); }
  .talk > *:not(.talk__portrait) { grid-column: 1; }
  /* the drawing fades at its left edge, where the photograph was cut */
  .talk .talk__portrait { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
  .talk .talk__portrait { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: calc(100svh - var(--ph)); right: auto; bottom: auto; align-self: start; justify-self: end; height: var(--ph); width: auto; max-width: 100%; object-fit: contain; object-position: 100% 100%; }
  /* clip, not hidden: a hidden overflow would stop the portrait from holding its place on the screen */
  section.talk { padding-bottom: 0; overflow: clip; }
  .talk .small { padding-bottom: clamp(56px, 8vw, 120px); }   /* inside the row, so the portrait's column reaches the foot of the scene */
}
