/* aaroncphelps.com — connect pages. Ported from the v3 design reference. */

.connect-wrap {
  max-width: 1120px;
  padding: 8px 48px 72px;
  margin-inline: auto;
}
.connect-intro {
  padding: 44px 24px 48px;
  margin-bottom: 20px;
  text-align: center;
}
.connect-kicker {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #bcb4a4;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.connect-intro h1 {
  font-family: "proxima-sera", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 4.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: pretty;
}
.connect-intro h1 em {
  color: #e57647;
  font-style: normal;
  display: block;
}
.connect-description {
  max-width: 44ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #c2bdb5;
  margin: 20px auto 0;
}
.connect-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: 20px;
  padding-block: 8px;
  border-bottom: 1px solid #777065;
  font-size: 1.125rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.connect-email > span {
  color: #e57647;
  flex-shrink: 0;
}
.connect-location {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #bcb4a4;
  margin-top: 0;
  text-align: center;
}
.connect-about {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 44px;
}
.connect-bio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #e57647;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: #a45c3c;
  text-underline-offset: 4px;
}
.connect-bio .pixel-arrow {
  width: 14px;
  height: 14px;
}
.connect-bio:is(:hover, :focus-visible) {
  color: #f3aa87;
}
.connect-options {
  max-width: 520px;
  margin-inline: auto;
  scroll-margin-top: 24px;
}
.connect-options > h2 {
  font-family: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #bcb4a4;
  padding-bottom: 24px;
  text-align: center;
}
/* the form: one stacked column of baseline fields. Labels sit in the field
   and float up once it has focus or a value; the orange rule draws in on focus */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}
.contact-field {
  position: relative;
  padding-top: 22px;
  min-width: 0;
}
.contact-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #e57647;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}
.contact-field:focus-within::after {
  transform: scaleX(1);
}
.contact-field label {
  position: absolute;
  left: 0;
  top: 32px;
  color: #aaa399;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  transform-origin: left top;
  pointer-events: none;
  white-space: nowrap;
  transition:
    transform 180ms cubic-bezier(0.2, 0, 0, 1),
    color 180ms ease;
}
.contact-field label span {
  color: #8f8a82;
  font-size: 0.9em;
}
.contact-form .contact-input:focus ~ label,
.contact-form .contact-input:not(:placeholder-shown) ~ label {
  transform: translateY(-27px) scale(0.72);
  color: #bcb4a4;
}
.contact-form .contact-input:focus ~ label {
  color: #e57647;
}
.contact-form .contact-input:user-invalid ~ label {
  color: #f3aa87;
}
.contact-form .contact-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #777065;
  border-radius: 0;
  background: transparent;
  color: #eeeae5;
  font-family: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  box-shadow: none;
  outline: none;
  transition: border-color 180ms ease;
}
.contact-form .contact-input:hover {
  border-bottom-color: #bcb4a4;
}
.contact-form .contact-input::placeholder {
  color: transparent;
  opacity: 1;
}
.contact-form .contact-message:focus::placeholder {
  color: #8f8a82;
}
.contact-form .contact-message {
  min-height: 108px;
  resize: none;
  field-sizing: content;
}
/* browser autofill keeps the dark ground */
.contact-form .contact-input:-webkit-autofill,
.contact-form .contact-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2c2c2c inset;
  -webkit-text-fill-color: #eeeae5;
  caret-color: #eeeae5;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.contact-actions p,
.contact-status,
.contact-noscript {
  color: #bcb4a4;
  font-size: 0.875rem;
  line-height: 1.5;
}
.contact-form .contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 56px;
  border: 1px solid #e57647;
  border-radius: 0;
  padding: 14px 20px;
  background: #e57647;
  color: #262626;
  font-family: "proxima-nova", -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}
.contact-form .contact-submit:hover {
  background: #f18a5e;
  border-color: #f18a5e;
}
.contact-form .contact-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.contact-form .contact-submit:focus-visible {
  outline: 2px solid #e57647;
  outline-offset: 4px;
}
.contact-submit .pixel-arrow {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}
.contact-status:not(:empty),
.contact-noscript {
  margin-top: 20px;
}
.contact-noscript a {
  color: #e57647;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.connect-page .footer-grid {
  max-width: 1120px;
  padding-inline: 48px;
}
.connect-page .footer-grid {
  padding-top: 36px;
}
@media (max-width: 900px) {
  .connect-wrap {
    padding: 8px 32px 56px;
  }
  .connect-page .footer-grid {
    padding-inline: 32px;
  }
}
@media (max-width: 760px) {
  .connect-wrap {
    max-width: 620px;
  }
  .connect-intro {
    padding: 36px 0 40px;
  }
  .connect-intro h1 {
    max-width: 20ch;
  }
  .connect-description {
    max-width: 40ch;
  }
}
@media (max-width: 480px) {
  .connect-wrap {
    padding: 4px 24px 40px;
  }
  .connect-kicker {
    margin-bottom: 20px;
  }
  .connect-intro h1 {
    font-size: 2.625rem;
  }
  .connect-email {
    font-size: 1rem;
    gap: 10px;
  }
  .connect-page .footer-grid {
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form .contact-input,
  .contact-form .contact-submit,
  .contact-field::after,
  .contact-field label {
    transition: none;
  }
}
