.home-intro h1, .home-recent h2, .home-contact h2 { line-height: 1.25; }
.home-intro { padding-block: 47px 60px; background: var(--panel); }
.home-intro-layout {
  width: calc(100% - 120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 32.6667% minmax(0, 1fr);
  min-height: 755px;
  background: var(--paper);
}
.home-portrait {
  position: relative;
  min-width: 0;
  background: #f5eee5;
}
.home-portrait img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.home-intro-copy {
  width: min(541px, calc(100% - 32px));
  justify-self: center;
  margin-inline-end: 8px;
  padding-block: 70px 39px;
}
.home-intro h1 { font-size: 56px; margin-bottom: 7px; overflow-wrap: anywhere; }
.home-bio { max-width: 469px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.home-bio > * + * { margin-top: 1em; }
.home-socials { display: flex; gap: 7px; margin-top: 21px; }
.home-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
.home-socials img { width: 24px; height: 24px; }
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 17px;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  font: inherit;
  text-align: center;
  text-decoration: none;
}
.home-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.home-resume { width: 150px; max-width: 100%; margin-top: 21px; font-size: 14px; }

.home-column { width: min(980px, calc(100% - 40px)); margin-inline: auto; }
.home-recent { padding-block: 46px 26px; text-align: center; }
.home-recent h2 { font-size: 47px; }
.home-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 906px;
  margin: 57px auto 0;
  text-align: left;
}
.home-post {
  position: relative;
  min-width: 0;
  min-height: 335px;
  padding: 34px 12px 20px;
  border: 1px solid var(--line);
}
.home-post:hover { border-color: #999; }
.home-post time { font-size: 12px; }
.home-post-source {
  width: fit-content;
  margin-top: 6px;
  padding: 4px 12px;
  color: var(--white);
  background: var(--accent);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-post h3 {
  font: 700 22px/1.4 var(--post-heading);
  margin: 12px 0 10px;
  overflow-wrap: anywhere;
}
.home-post h3 a { text-decoration: none; }
.home-post h3 a::after { content: ""; position: absolute; inset: 0; }
.home-post-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.5;
}
.home-empty { margin-block: 30px 27px; }
.home-publication-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 305px));
  justify-content: center;
  gap: 38px;
  margin-top: 19px;
}
.home-publication-links .home-button { min-height: 47px; font-size: 18px; }

.home-contact { padding-block: 20px 46px; border-top: 1px solid #444; }
.home-contact h2 { text-align: center; font-size: 44px; margin-bottom: 19px; }
.home-contact-form {
  width: min(350px, 100%);
  margin-inline: auto;
  gap: 10px 14px;
}
.home-contact-form label { font-size: 14px; font-weight: 400; }
.home-contact-form input:not([type=checkbox]), .home-contact-form textarea {
  min-height: 28px;
  padding: 2px 7px;
  border-color: var(--accent);
  font-size: 14px;
}
.home-contact-form textarea { min-height: 67px; }
.home-contact-actions { display: flex; justify-content: flex-end; }
.home-contact-actions .home-button { min-height: 30px; min-width: 97px; padding-block: 2px; font-size: 14px; }

@media (max-width: 1100px) {
  .home-intro-copy { width: min(541px, calc(100% - 48px)); }
  .home-intro h1 { font-size: clamp(36px, 5.1vw, 56px); }
}

@media (max-width: 980px) {
  .home-intro { padding-block: 28px 36px; }
  .home-intro-layout { width: calc(100% - 48px); min-height: 0; }
  .home-intro-copy { padding-block: 36px; }
  .home-posts { gap: 16px; }
}

@media (max-width: 680px) {
  .home-intro { padding: 0; background: var(--paper); }
  .home-intro-layout { width: 100%; display: block; }
  .home-portrait img {
    position: static;
    height: auto;
    aspect-ratio: 1280 / 1112;
  }
  .home-intro-copy {
    width: min(469px, calc(100% - 48px));
    margin-inline: auto;
    padding-block: 22px 34px;
  }
  .home-intro h1 { font-size: clamp(30px, 9.375vw, 40px); margin-bottom: 10px; }
  .home-bio { font-size: clamp(14px, 4.375vw, 17px); }
  .home-socials { gap: 10px; }
  .home-socials a { min-width: 44px; min-height: 44px; }
  .home-resume { margin-top: 12px; }
  .home-recent { border-top: 1px solid var(--line); padding-top: 25px; }
  .home-recent h2, .home-contact h2 { font-size: 34px; }
  .home-posts { margin-top: 24px; grid-template-columns: 1fr; }
  .home-post { min-height: 0; padding: 16px; }
  .home-publication-links { gap: 10px; }
  .home-publication-links .home-button { font-size: 15px; padding-inline: 9px; }
  .home-contact-form input:not([type=checkbox]), .home-contact-actions .home-button { min-height: 42px; }
}
