/* Contact: what to write about, the divider with the pigeon (D039), then the message form and the
   channels. Tokens, masthead, the title, the lede, labels and the button come from site.css. Blue is
   for information only: here, the papyrus the pigeon carries. */

.intro { display: grid; gap: 14px; }
.intro .lede + .lede { margin-top: 0; }

/* channels: rows ruled like the Writing list on Home */
.channels { margin-top: 48px; border-top: 1px solid var(--hair); }
@media (min-width: 900px) { .channels { margin-top: 64px; } }
.channels li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 900px) {
  .channels li { grid-template-columns: 112px 1fr; column-gap: 24px; padding: 12px 0 18px; }
  .channels .purpose { grid-column: 2; }
}
@media (min-width: 900px) { .channels .label { display: flex; align-items: center; min-height: 44px; } }
.channels li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--line-rgb), 0), var(--line) 70%, rgba(var(--line-rgb), 0)) no-repeat;
  background-size: 36% 100%;
  background-position: -70% 0;
  opacity: 0;
  pointer-events: none;
}
.addr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.addr a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.addr .plain { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; line-height: 1.25; }
.purpose { font-size: 15px; color: var(--ink-2); }

/* Each channel row is one target: a click anywhere on it follows its link (contact.js). */
.channels li:has(a) { cursor: pointer; }
@media (hover: hover) { .channels li:has(a):hover::after { animation: pulse 1300ms var(--ease-io) forwards; } }

/* The primary action is LinkedIn, as the copy says. One column at every width. */
@media (max-width: 1099.98px) { .contact-page { display: flex; flex-direction: column; } }
.c-primary { margin-top: 28px; }
.c-note { margin-top: 14px; max-width: 30em; font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 900px) { .contact-page .channels { margin-top: 44px; } }
@media (max-width: 899.98px) { .contact-page { padding-bottom: 40px; } }

/* The form: the email row as a form, no address in the page. Fields are lines on the ground, names
   in mono as the page's labels are; the focus ring is the site's. */
.c-write .write { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.channels .c-write .write .purpose { grid-column: auto; }
@media (min-width: 900px) { .channels .c-write .write { grid-column: 2; } .channels .c-write .label { align-self: start; } }
.c-form { display: grid; gap: 18px; margin-top: 14px; max-width: 34em; }
.f-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .f-row { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.field { display: grid; gap: 4px; margin: 0; }
.field label { font: 400 11px/16px var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field :is(input, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 8px 0 10px;
  font: 400 17px/1.5 var(--font-text);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair-2);
  border-radius: 0;
  transition: border-color 300ms var(--ease);
}
.field textarea { min-height: 8.5em; resize: vertical; }
.field :is(input, textarea):focus { border-bottom-color: var(--line); }
.field [aria-invalid="true"] { border-bottom-color: var(--ink); }
.f-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.f-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.f-send .button { cursor: pointer; font-family: var(--font-text); }
.f-send .button:disabled { cursor: default; opacity: 0.6; }
.f-note { font-size: 13px; color: var(--ink-2); }
.f-status { min-height: 1.4em; font-size: 15px; color: var(--ink); }
.f-status:empty { min-height: 0; }
.f-sent { margin-top: 14px; font-size: 17px; color: var(--ink); outline-offset: 6px; }
.c-form.is-going { opacity: 0; transition: opacity 300ms var(--ease); }
.c-form[hidden], .f-sent[hidden] { display: none; }

/* The divider above the message (contact/contact-divider.js): a band that keeps its height, holding
   a still of the scene until the scene takes over. Its canvas reaches above the band and across the
   window, so the pigeon flies in and away over the page; it takes no pointer. */
.c-divider { margin: 40px 0 0; }
.c-divider + .channels { margin-top: 0; border-top: 0; }
@media (min-width: 900px) { .c-divider + .channels { margin-top: 0; } }
body { overflow-x: clip; }
.c-3d { position: relative; height: 160px; }
.c-3d picture, .c-3d .c-still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.c-3d canvas { pointer-events: none; }
.c-3d picture { animation: c-arrive 700ms var(--ease) 80ms both; }
@keyframes c-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .c-3d picture { animation: none; } }
@media (max-width: 600px) { .c-3d { height: 130px; } }

/* ------------------------------------------------------------------ one desktop screen (2026-11-06)
   The words and the profiles on the left, the pigeon and the form on the right; everything inside
   1440 by 900 with no scrolling. Phones keep one column. */
.cp .cp-words { display: grid; align-content: start; }
.cp .lede { max-width: 26em; }
.cp .c-dm { margin-top: 30px; font-size: 19px; line-height: 1.4; color: var(--ink); }
.cp .stones { margin-top: 22px; }
.cp .c-note { margin-top: 18px; }
.cp .write { display: grid; gap: 4px; margin-top: 8px; }
.cp .write > .label { margin: 0 0 2px; }
.cp .c-form { margin-top: 10px; max-width: none; }
.cp .field textarea { min-height: 6.6em; }
/* The head starts 40 px higher than other pages' so the words, the pigeon and the form fit one screen. */
@media (min-width: 1100px) {
  .cp { --page-top: calc(var(--header-h) + 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 96px; align-items: start; max-width: 1344px; padding-bottom: 48px; }
  .cp .cp-write { padding-top: 6px; }
  .cp .c-3d { height: 150px; margin: 0 -24px 0; }
}
@media (max-width: 1099.98px) { .cp .cp-write { margin-top: 8px; } .cp .c-divider { margin-top: 0; } }
