.page-contact {
  height: 829px;
}

/* This page's reference shows every nav link at full strength, unlike the
   dimmed/undimmed "current page" treatment used elsewhere on the site. */
.page-contact .site-nav a {
  opacity: 1;
}

.page-contact .page-title {
  position: absolute;
  left: 105px;
  top: 90px;
  width: 600px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 110px;
  line-height: 0.91;
  letter-spacing: -5.5px;
  color: var(--color-black);
}

.page-contact .page-title__touch {
  display: inline-block;
  margin-left: 180px;
}

.page-contact .contact-details {
  position: absolute;
  left: 247px;
  top: 335px;
  width: 320px;
  font-style: normal;
  font-family: var(--font-display);
}

.page-contact .contact-details p {
  margin: 0;
}

.page-contact .contact-details__name {
  font-size: 27px;
  letter-spacing: -0.55px;
  margin-bottom: 10px;
}

.page-contact .contact-details p:not(.contact-details__name) {
  font-size: 19px;
  line-height: 1.58;
  letter-spacing: -0.38px;
}

.page-contact .contact-details a:hover {
  text-decoration: underline;
}

.page-contact .contact-form {
  position: absolute;
  left: 847px;
  top: 195px;
  width: 597px;
}

.page-contact .contact-form__intro {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.38px;
  margin-bottom: 60px;
}

.page-contact .contact-form__field {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-bottom: 33px;
}

.page-contact .contact-form__field--message {
  position: relative;
  align-items: flex-start;
}

.page-contact .contact-form__field label {
  flex: 0 0 auto;
  padding-bottom: 1px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.28px;
  white-space: nowrap;
}

.page-contact .contact-form__field--message label {
  padding-top: 1px;
  padding-bottom: 0;
}

.page-contact .contact-form__field input,
.page-contact .contact-form__field textarea {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none;
  border-bottom: 1px solid #ebebeb;
  padding: 0 0 1px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 16px;
  outline: none;
}

.page-contact .contact-form__field input:focus,
.page-contact .contact-form__field textarea:focus {
  border-bottom-color: var(--color-black);
}

.page-contact .contact-form__field--message textarea {
  resize: none;
  min-height: 250px;
  border: none;
  padding: 0;
  line-height: 38px;
  /* Just the first line, inline with the "Message" label like the other
     fields. The rest live in .contact-form__message-lines below, flush
     with the left edge of the labels rather than indented under the
     textarea. Positioned at the text baseline (measured empirically for
     this font/line-height combo, not the bottom of the line box) so typed
     characters actually rest on the line instead of floating above it. */
  background-image: linear-gradient(to bottom, #ebebeb, #ebebeb);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 24px;
}

/* Rows 2+ of the message field's ruled lines: full width, starting flush
   with the left edge of "Full name" / "Email" / "Phone" / "Message"
   (unlike the first line, which sits to the right of the "Message" label
   like every other field's underline). Purely decorative, so it's an
   absolutely-positioned overlay behind the textarea rather than something
   the textarea's own background can draw. */
.page-contact .contact-form__message-lines {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image:
    linear-gradient(to bottom, #ebebeb, #ebebeb),
    linear-gradient(to bottom, #ebebeb, #ebebeb),
    linear-gradient(to bottom, #ebebeb, #ebebeb),
    linear-gradient(to bottom, #ebebeb, #ebebeb);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 75px, 0 130px, 0 185px, 0 240px;
  pointer-events: none;
}

.page-contact .contact-form__submit {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.38px;
  color: var(--color-black);
}

.page-contact .contact-form__submit:hover {
  text-decoration: underline;
}

.page-contact .contact-form__status {
  text-align: right;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #2f7a3d;
  min-height: 1em;
}
