.founders main {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}

.founders-intro {
  text-align: center;
  margin-inline: 1rem;
}

.founders-intro h1 {
  font: 400 clamp(2.8rem, 6vw, 4.75rem)/1.04 var(--serif);
  letter-spacing: -.03em;
  color: #303721;
}

.founders-intro p {
  margin-top: .6rem;
  color: #654b37;
}

.story-tree {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  width: min(94%, 53rem);
  margin: 2.25rem auto 1rem;
}

.portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: min(84%, 13.5rem);
  background: #fffcf6;
  padding: clamp(7px, 1vw, 12px);
  border: 1px solid #dfd4bf;
  box-shadow: 1px 3px 5px #4432141c, 3px 9px 18px #4432141c;
  color: #443522;
  text-align: center;
  text-decoration: none;
  transform: rotate(-2deg);
}

.portrait::before {
  content: "";
  position: absolute;
  top: -.65rem;
  left: 33%;
  width: 34%;
  height: 1.3rem;
  background: #d9ab669e;
  transform: rotate(2deg);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait span {
  display: block;
  margin: .5rem 0 .15rem;
  font: 400 clamp(1.12rem, 2.2vw, 1.55rem)/1.25 var(--serif);
}

.portrait:is(:hover,:focus-visible) span {
  color: #884020;
  text-decoration: underline;
  text-underline-offset: .18em;
}

@media (prefers-reduced-motion: no-preference) {
  .portrait { transition: transform .18s ease-out; }
  .story-tree .portrait:is(:hover,:focus-visible) { transform: translateY(-3px); }
}

.portrait.together {
  grid-column: 1 / -1;
  width: min(74%, 19rem);
  transform: rotate(-1deg);
}

.couple-frame { aspect-ratio: 4 / 3; overflow: hidden; }
.couple-frame img {
  aspect-ratio: 4 / 3;
  transform: scale(1.45);
  transform-origin: 70% 40%;
}
.portrait.sam { transform: rotate(2deg); }
.branches {
  grid-column: 1 / -1;
  width: 60%;
  height: auto;
  margin-block: -.4% -1%;
  mix-blend-mode: multiply;
}

.founder-stories {
  width: min(90%, 40rem);
  margin: 2rem auto;
}

.founder-stories article { margin-top: 2rem; }
.founders article h2 {
  color: #303721;
  font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.14 var(--serif);
}
.founders article p { margin-top: .85rem; line-height: 1.65; }

#story-reader {
  max-width: min(46rem, 93vw);
  max-height: 88dvh;
  overflow: auto;
  background: var(--paper);
  color: var(--coffee);
}

#story-reader form {
  display: flex;
  justify-content: end;
  position: sticky;
  top: 0;
  background: inherit;
  padding: .5rem 1rem;
}

#story-reader button {
  min-height: 44px;
  font-weight: 700;
  color: var(--olive);
}

.story-page {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.75rem;
  padding: 0 clamp(1.2rem, 4vw, 2.25rem) 2rem;
}

.story-page img {
  width: 100%;
  height: auto;
  border: 6px solid #fffcf6;
  box-shadow: 1px 3px 6px #44321426;
}

@media (max-width: 40rem) {
  .story-page { grid-template-columns: 1fr; gap: 1.2rem; }
  .story-page img { width: auto; max-width: 100%; max-height: 26dvh; margin: auto; }
}
