/* The homepage is a compact profile; the fullscreen story has its own layout. */
.home-page {
  --profile-width: 980px;
  --profile-gutter: clamp(24px, 5vw, 64px);
}
.home-page .site-header,
.profile-page,
.home-page .site-footer {
  width: min(var(--profile-width), calc(100% - var(--profile-gutter) * 2));
  margin-inline: auto;
}
.home-page .site-header {
  height: 92px;
}
.home-page .wordmark {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.35px;
}
.home-page .nav-projects {
  font-size: 15px;
}
.profile-page {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 76px;
  padding: 62px 0 80px;
}
.profile-photo {
  margin: 5px 0 0;
}
.portrait-frame {
  padding: 17px;
  background: var(--mat);
  border: 9px solid #8b6953;
  box-shadow: inset 0 0 0 1px #d5c8b8, 0 0 0 1px #765843, 3px 4px 0 #765843, 8px 16px 24px #49321b14;
  transform: rotate(-2deg);
}
.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.profile-content {
  max-width: 580px;
}
.profile-content h1 {
  color: var(--accent);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.profile-content p {
  color: var(--body-text);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.profile-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.profile-content a:hover {
  text-decoration-thickness: 2px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 22px;
  font-size: 15px;
}
.profile-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.profile-work {
  margin-top: 52px;
}
.profile-work h2 {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 26px;
}
.profile-work dl {
  margin: 0;
}
.profile-work dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.profile-work dt {
  font-weight: 500;
}
.profile-work dd {
  margin: 0;
  color: var(--muted);
}
.profile-all-projects {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.home-page .site-footer {
  padding: 26px 0;
}
@media (max-width: 950px) {
  .profile-page {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
    padding-top: 42px;
  }
  .profile-content p {
    font-size: 16px;
  }
  .profile-work dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 650px) {
  .home-page .site-header {
    height: 80px;
  }
  .home-page .wordmark {
    font-size: 16px;
  }
  .home-page .nav-projects {
    font-size: 14px;
  }
  .profile-page {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 24px 0 48px;
  }
  .profile-photo {
    width: min(210px, 70%);
    margin: 0;
  }
  .profile-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .profile-work {
    margin-top: 40px;
  }
}

.profile-actions #explore {
  padding: 0 18px;
  background: var(--accent);
  color: var(--mat);
  text-decoration: none;
  border-radius: 2px;
}
.profile-work h2 { color: var(--ink); }
.profile-contact { margin-top: 42px; scroll-margin-top: 40px; }
.profile-contact h2 { font-size: 22px; font-weight: 400; margin: 0 0 12px; }
.profile-contact a { display: block; width: fit-content; padding: 10px 0; font-size: 15px; overflow-wrap: anywhere; }
#contact-form { margin-top: 28px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#contact-form label { display: block; font-size: 13px; color: var(--body-text); }
#contact-form input:not([type="hidden"]), #contact-form textarea {
  display: block; width: 100%; margin: 9px 0 20px; border: 1px solid #a99a89;
  border-radius: 2px; background: var(--mat); color: var(--ink); padding: 12px;
  font: 16px/1.5 var(--sans); min-height: 48px;
}
#contact-form textarea { resize: vertical; min-height: 140px; }
#contact-form input:focus-visible, #contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#contact-form button { border: 0; border-radius: 2px; min-height: 46px; padding: 12px 20px; font-size: 14px; color: var(--mat); background: var(--accent); }
#contact-form button:disabled { opacity: .65; cursor: wait; }
#contact-form .contact-honey { display: none; }
#contact-form #contact-status { font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
#contact-form .contact-note { font-size: 12px; line-height: 1.7; margin: 12px 0 0; color: var(--muted); }
@media (max-width: 500px) { .contact-fields { grid-template-columns: 1fr; gap: 0; } }
