/* Homepage sections. Each group matches a templates/home/_*.html partial.
Shared heading/card styles belong in editorial.css; the opening image is in banner.css. */
.home-section {
  padding-block: 95px;
}

/* About: never impose a height on this portrait; preserve the source aspect ratio. */
.editorial-about {
  padding-block: 90px;
  background: var(--bg2);
  color: var(--fg);
  border: 0;
}

.editorial-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8%;
  align-items: center;
}

.about-portrait {
  margin: 0;
  width: 100%;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.editorial-about h2 {
  margin: 20px 0 0;
  font-size: clamp(2.8rem,5vw,5rem);
  text-transform: uppercase;
  line-height: 1.1;
}

.about-story {
  padding-top: 0;
}

.about-story h2 {
  margin-bottom: 30px;
}

.about-story p {
  font-size: .95rem;
  color: var(--muted);
}

.about-story .standfirst {
  margin-top: 0;
  font-family: var(--font-family);
  font-size: clamp(1.35rem,2vw,1.9rem);
  line-height: 1.4;
  color: var(--fg);
}

/* Projects: two columns (content + arrow), without an empty numbering column. */
.editorial-work {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 60px;
  gap: 20px;
  padding: 32px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  align-items: center;
}

.project-category {
  font-size: .6rem;
  color: var(--muted);
}

.project-row h3 {
  font-size: clamp(1.8rem,3vw,3rem);
  line-height: 1.2;
  margin: 8px 0;
}

.project-row p {
  font-size: .85rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}

.project-arrow {
  font-size: 2.4rem;
  transition: transform .25s;
}

.project-row:hover .project-arrow {
  transform: translate(5px,-5px);
}

/* Life outside work: one heading for personal photos and hobby navigation.
The counter is slide position, not section numbering.
The existing slideshow script manages active photos and accessible controls. */
.editorial-photos {
  width: 100%;
  padding: 65px 0 0;
  background: var(--bg2);
}

.home-slideshow {
  border: 0;
  padding: 0;
  background: transparent;
}

.home-slideshow__stage {
  height: 90svh;
  min-height: 430px;
  aspect-ratio: auto;
}

.home-slideshow__footer {
  padding-block: 20px;
  min-height: 85px;
  flex-wrap: wrap;
}

.home-slideshow__controls button {
  border-radius: 0;
  background: transparent;
}

/* Hobby links sit directly below the slideshow on the same section background.
   Use three equal columns on desktop and stacked rows on mobile. */
.interest-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 16px 56px;
}

.interest-list a {
  display: grid;
  grid-template-columns: minmax(0,1fr) 24px;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  align-items: start;
}


.interest-list h3 {
  font-size: 2.2rem;
  margin: 0;
}

.interest-list p {
  font-size: .8rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.interest-list a:hover h3 {
  color: var(--acc);
}

/* Contact stays dark in both themes to create a clear end to the page. */
.editorial-connect {
  width: 100%;
  padding: 35px max(56px,calc((100% - 1440px)/2)) 70px;
  background: #101010;
  color: #f5f5f5;
  --acc: #59acff;
  border: 0;
}

.editorial-connect .eyebrow {
  color: #b5b5b5;
}

.editorial-connect > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  gap: 20px;
}

.editorial-connect h2 {
  font-size: clamp(3.5rem,10.2vw,11rem);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 50px 0 0;
}

.editorial-connect > a > span {
  font-size: clamp(3rem,8vw,8rem);
  color: var(--acc);
}

/* Tablet gutters and mobile stacking; keep these beside their owning component. */
@media (max-width: 900px) {
  .editorial-connect {
    padding-inline: 24px;
  }
}

@media (max-width: 600px) {
  .home-section {
    padding-block: 60px;
  }
  .editorial-about {
    padding-block: 55px;
  }
  .editorial-about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-row {
    grid-template-columns: minmax(0,1fr) 24px;
    gap: 10px;
  }
  .project-row h3 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }
  .project-arrow {
    font-size: 1.6rem;
  }
  .project-category {
    font-size: .5rem;
  }
  .home-slideshow__stage {
    height: 75svh;
  }
  .home-slideshow__footer > .mono:first-child {
    width: 100%;
    font-size: .55rem;
  }
  .interest-list {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px 32px;
  }
  .editorial-connect > a > span {
    font-size: 2.5rem;
  }
  .editorial-connect h2 {
    font-size: 12vw;
  }
}
