/* Home page. Loaded after style.css, pages.css and articles.css. */

main.home { display: block; max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }
@media (min-width: 768px) { main.home { padding: 40px 40px 72px; } }

/* ---------- Intro: photo left, text right, with a soft halo behind ---------- */
main.home { overflow-x: clip; }   /* the halo may extend past the edges without causing sideways scroll */
main.home .home-intro {
  position: relative; top: auto; isolation: isolate; max-width: 880px; margin: 0 auto;
  display: grid; gap: 20px; justify-items: center; text-align: center;
}
main.home .home-intro::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -50px -60px -50px;
  background: radial-gradient(55% 60% at 38% 50%, rgba(125, 155, 184, 0.40), rgba(125, 155, 184, 0) 72%);
}
main.home .avatar { width: 120px; height: 120px; margin: 0; }
.home-intro-text h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); margin: 0 0 6px; }
.home-intro-text .job { font-size: 1.1rem; }
.home-intro-text .bio { max-width: 54ch; margin: 0 auto 22px; font-size: 1.05rem; line-height: 1.65; }
@media (min-width: 768px) {
  main.home .home-intro { grid-template-columns: 170px 1fr; gap: 44px; align-items: center; justify-items: start; text-align: left; }
  main.home .avatar { width: 170px; height: 170px; justify-self: center; }
  .home-intro-text .bio { margin-left: 0; }
}
@media (min-width: 1024px) {
  main.home .home-intro { grid-template-columns: 190px 1fr; gap: 52px; }
  main.home .avatar { width: 190px; height: 190px; }
}

/* ---------- Sections ---------- */
.home-section { margin-top: 64px; }
.home-heading { margin: 0 0 22px; text-align: center; text-wrap: balance; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.home-section .more-wrap { justify-content: center; margin-top: 28px; }

/* Projects: smaller cards, two rows of three */
.home-projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .home-projects { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 359px) { .home-projects { grid-template-columns: 1fr; } }
.home-projects .link-card { border-radius: 14px; height: 100%; }
.home-projects .link-title { padding: 10px 12px 12px; font-size: 0.92rem; line-height: 1.3; }

/* Articles: three cards (the featured one first) */
.home-articles { margin-top: 0; }
.home-articles .art-card .art-pill { align-self: flex-start; margin-bottom: 8px; padding: 2px 10px; font-size: 0.72rem; }
@media (min-width: 620px) and (max-width: 959px) { .home-articles > li:nth-child(3) { grid-column: 1 / -1; } }
