/* A direct invitation, with the same ink, signal and condensed type as the portfolio. */
.contact-section { scroll-margin-top: 1rem; overflow-x: clip; }
.contact-section h2 { margin-bottom: 2.5rem; }
.contact-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.contact-intro p {
  max-width: 43ch;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1.6;
}
.contact-intro > .data { flex-shrink: 0; line-height: 1.7; }
.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-block: 1px solid currentColor;
}
.contact-email-copy { display: grid; gap: .8rem; min-width: 0; }
.contact-address {
  font-size: clamp(1rem, 3.5vw, 3.5rem);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.contact-arrow {
  display: grid;
  place-items: center;
  width: clamp(2.5rem, 6vw, 5rem);
  aspect-ratio: 1;
  flex-shrink: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  transition: background var(--duration-short), color var(--duration-short);
}
.contact-email:hover .contact-address { text-decoration: underline; text-underline-offset: .2em; }
.contact-email:hover .contact-arrow { background: var(--ink); color: var(--signal); }
.contact-section a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.contact-section:focus { outline: none; }
@media (max-width: 760px) {
  .contact-intro { align-items: start; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
  .contact-section h2 { font-size: clamp(2rem, 12vw, 5rem); margin-bottom: 1.5rem; }
  .contact-email { gap: .6rem; }
  .contact-email-copy { gap: .6rem; }
}
@media (max-width: 460px) {
  .contact-email { position: relative; }
  .contact-email-copy { width: 100%; }
  .contact-email-copy > .data { display: flex; align-items: center; min-height: 2.5rem; padding-right: 3rem; }
  .contact-arrow { position: absolute; top: 1.5rem; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-arrow { transition: none; }
}

/* Optional local writing desk; reader.js enhances its native disclosure. */
.contact-composer { border-bottom: 1px solid currentColor; }
.contact-composer [hidden], .contact-composer[hidden] { display: none !important; }
.contact-composer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  cursor: pointer;
  list-style: none;
}
.contact-composer summary::-webkit-details-marker { display: none; }
.contact-composer summary > span:first-child { display: grid; gap: .45rem; }
.contact-composer summary strong { font-size: clamp(1rem, 1.6vw, 1.4rem); font-weight: 500; }
.contact-compose-plus { font: 2rem/1 var(--font-data); }
.contact-composer[open] .contact-compose-plus { transform: rotate(45deg); }
.contact-compose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-block: 1rem 2rem; }
.contact-message-form { min-width: 0; display: grid; gap: 1.25rem; align-content: start; }
.contact-message-form > p { max-width: 42ch; }
.contact-field { display: grid; gap: .45rem; }
.contact-field label { font-size: .9375rem; font-weight: 650; }
.contact-field label span { font-weight: 400; }
.contact-field-hint, .contact-compose-note { font-size: .8125rem; line-height: 1.6; }
.contact-field-error { font-size: .875rem; font-weight: 750; }
.contact-field :is(select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .75rem;
  font: 1rem/1.5 var(--font-body);
  color: var(--ink);
  background: var(--signal);
  border: 1px solid var(--ink);
  border-radius: 0;
  color-scheme: light;
}
.contact-field textarea { resize: vertical; }
.contact-field option { background: var(--paper); }
.contact-compose-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  line-height: 1.5;
  text-align: left;
}
.contact-compose-button:hover { text-decoration: underline; text-underline-offset: .25em; }
.contact-compose-button span { flex-shrink: 0; }
.contact-draft-sheet {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2.5vw, 2.5rem);
  background: var(--paper);
  border-top: 4px solid var(--ink);
}
.contact-draft-heading { padding-bottom: 1.1rem; border-bottom: 1px dashed var(--ink); }
.contact-draft-heading h3 { margin-top: .6rem; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1; }
.contact-draft-content { display: grid; min-width: 0; min-height: 22rem; }
.contact-draft-empty { max-width: 32ch; align-self: center; line-height: 1.8; }
.contact-draft-ready { display: grid; grid-template-rows: auto auto 1fr; gap: .8rem; min-width: 0; }
.contact-draft-subject { display: grid; gap: .5rem; font-size: .9375rem; }
.contact-draft-ready textarea {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 13rem;
  resize: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: .9375rem/1.7 var(--font-body);
  padding: .25rem;
  color-scheme: light;
}
.contact-draft-action-slot { display: grid; align-items: center; min-height: 52px; }
.contact-draft-status { min-height: 1.6em; font-size: .875rem; margin-bottom: 1rem; }
.contact-composer :is(summary, button, select, textarea, h3):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (max-width: 900px) {
  .contact-compose-grid { grid-template-columns: 1fr; }
  .contact-draft-content { min-height: 20rem; }
}
@media (max-width: 460px) {
  .contact-draft-content { min-height: 24rem; }
}
