/* Contact form (Bio & Contact page). On the CV's two columns: the address at
   the left with the CV labels, the fields at the right with the CV entries.
   Fields are a single hairline beneath, no box, no radius; the send control
   is a sentence with an arrow, like every call to action — not a button. */

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: var(--u4);
  align-items: start;
}
@media (min-width: 801px) {
  .info .contact-form { column-gap: calc(var(--u4) * .8); }   /* = the CV's gap */
}

.cf__note {
  margin: 0;
  font-size: var(--t-caption);
  line-height: 1.6;
  color: var(--ink-soft);
}
.cf__note a { color: var(--ink); }

.cf__fields { max-width: var(--gallery-measure); }
.cf__row + .cf__row { margin-top: var(--u2); }

.cf__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--t-caption);
  text-transform: uppercase;
  letter-spacing: var(--track);
  color: var(--ink-soft);
}
.cf__label [lang="zh"] { margin-left: .4em; }

.cf__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 0;
  border: 0;
  border-bottom: var(--hair) solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-meta);
  line-height: 1.6;
  -webkit-appearance: none;
  appearance: none;
}
.cf__input--area { min-height: 9em; resize: vertical; }
.cf__input:hover { border-bottom-color: var(--ink-soft); }
.cf__input:focus { outline: none; border-bottom-color: var(--ink); }
.cf__input:focus-visible { outline: var(--hair) solid currentColor; outline-offset: 4px; }

.cf__send { margin: var(--u2) 0 0; }
.cf__send button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--f-head);
  font-style: italic;
  font-size: calc(var(--t-meta) * 1.2);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.cf__send button:hover { text-decoration-thickness: 2px; }
.cf__send button:focus-visible { outline: var(--hair) solid currentColor; outline-offset: 4px; }

.cf__status { margin: var(--u1) 0 0; font-size: var(--t-caption); line-height: 1.6; }
.cf__status:empty { display: none; }
.cf__status.is-error { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }

/* The robots' field: out of sight and out of the tab order. */
.cf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 800px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); row-gap: var(--u2); }
  .cf__aside { order: 2; }
}

/* Subject menu: the same single hairline as the other fields, a small
   chevron drawn in CSS (no image), the browser's own arrow removed. */
.cf__select { position: relative; display: block; }
.cf__select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: .45em;
  height: .45em;
  border-right: 1.2px solid var(--ink-soft);
  border-bottom: 1.2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.cf__select select { padding-right: 1.5em; cursor: pointer; }
.cf__select option { background: var(--paper); color: var(--ink); }

/* The send link as the editor shows it. */
.cf__sendlink {
  font-family: var(--f-head);
  font-style: italic;
  font-size: calc(var(--t-meta) * 1.2);
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* ── The Contact page ─────────────────────────────────────────────────────
   As the Bio page: the content at 80% of the column, centred, on the 54px
   rhythm. The left column carries a large light title in the heading face, a
   lead line at the thesis size and the studio's address; the right, the form.
   Fields here sit further apart — the form is the page. */
.contact-page .contact-form { margin-top: var(--u4); }
.cf__title {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cf__title [lang="zh"] {
  display: block;
  margin-top: var(--u-half);
  font-family: var(--f-sans);
  font-size: var(--t-meta);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.cf__lead {
  margin: var(--u2) 0 0;
  font-size: var(--t-thesis);
  line-height: 1.55;
}
.contact-page .cf__aside .cf__note { margin-top: var(--u2); }
.contact-page .cf__row + .cf__row { margin-top: calc(var(--u2) * 1.4); }
.contact-page .cf__input { font-size: var(--t-thesis); }

@media (min-width: 801px) {
  .contact-page {
    max-width: 80%;
    margin-inline: auto;
    padding-bottom: calc(var(--u4) * 2);
  }
  .contact-page .marker--page { margin-bottom: var(--u4); }
  .contact-page .contact-form { column-gap: calc(var(--u4) * .8); margin-top: 0; }
}
@media (max-width: 800px) {
  .contact-page .cf__aside { order: 0; }
}
