/* ============================================================
   Dean Blankfield — Contact. Extends anxious.css system.
   Simple: socials + a short message form (podcasts, press, questions).
   ============================================================ */

.contact { background: var(--paper); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

/* Left rail */
.crail { position: sticky; top: 104px; }
.crail .eyebrow { margin-bottom: 22px; }
.crail h2 { max-width: 13ch; }
.crail__lede { margin-top: 24px; color: var(--muted); max-width: 42ch; font-size: clamp(18px,1.4vw,21px); line-height: 1.5; }

/* social / direct links */
.socials { margin-top: clamp(34px,4vw,46px); display: grid; gap: 12px; max-width: 420px; }
.social {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--white); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.social:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -40px rgba(22,21,15,0.5); border-color: var(--taupe); }
.social__ic { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; }
.social__ic svg { width: 21px; height: 21px; }
.social__t { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.social__h { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.social__arr { margin-left: auto; color: var(--taupe); transition: transform .35s var(--ease), color .25s; }
.social__arr svg { width: 20px; height: 20px; display: block; }
.social:hover .social__arr { transform: translateX(4px); color: var(--ink); }

.crail__note { margin-top: clamp(28px,3vw,38px); padding: clamp(20px,2.4vw,28px); background: var(--paper-2); border-radius: var(--r); max-width: 440px; }
.crail__note p { font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.crail__note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- Message form card ---- */
.msg-card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: clamp(28px,3.4vw,52px);
  box-shadow: 0 40px 90px -60px rgba(22,21,15,0.5);
}
.msg-card__head { margin-bottom: clamp(24px,2.8vw,34px); }
.msg-card__head .eyebrow { margin-bottom: 16px; }
.msg-card__head h3 { font-size: clamp(24px,2.6vw,34px); letter-spacing: -0.035em; color: var(--ink); max-width: 18ch; }

.field { margin-bottom: clamp(18px,2vw,22px); }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,1.6vw,20px); }
@media (max-width: 560px) { .field__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 9px; }
.field label .req { color: var(--brown); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 14px; }
.field input,
.field textarea,
.field select {
  width: 100%; font-family: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--hair); border-radius: 12px;
  padding: 15px 16px; line-height: 1.5;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brown); background: #fff;
  box-shadow: 0 0 0 3px rgba(106,93,82,0.12);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A5D52' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px;
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b4453f; box-shadow: 0 0 0 3px rgba(180,69,63,0.12); }
.field__err { display: none; margin-top: 7px; font-size: 14px; color: #b4453f; font-weight: 500; }
.field.invalid .field__err { display: block; }

.msg-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(22px,2.6vw,30px); }
.msg-submit .btn { border: none; }
.msg-submit__micro { font-size: 14.5px; color: var(--muted); }

/* success */
.msg-done { display: none; text-align: center; padding: clamp(20px,4vw,44px) clamp(8px,2vw,20px); animation: msgIn .5s var(--ease) both; }
.msg-done.show { display: block; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.msg-done__mark { width: 70px; height: 70px; border-radius: 50%; background: var(--brown); display: grid; place-items: center; margin: 0 auto clamp(24px,3vw,30px); }
.msg-done__mark svg { width: 32px; height: 32px; color: #fff; }
.msg-done h3 { font-size: clamp(26px,2.8vw,38px); letter-spacing: -0.035em; color: var(--ink); margin-bottom: 14px; }
.msg-done p { color: var(--muted); max-width: 40ch; margin: 0 auto; font-size: clamp(17px,1.4vw,19px); line-height: 1.5; }

@media (max-width: 1040px) {
  .contact__grid { grid-template-columns: 1fr; }
  .crail { position: static; }
  .crail h2 { max-width: 20ch; }
  .socials, .crail__note { max-width: none; }
}
