:root {
  --blue: #264b5f;
  --green: #496d5a;
  --surface: #f6f8f4;
  --sage: #e9eee8;
  --line: #cbd9d0;
  --photo-radius: 12px;
  --photo-paper: #f5f3eb;
}

.site-header { background: var(--surface); }

/* The opening photo and caption are one composition. */
.hero {
  background: radial-gradient(ellipse at 88% 12%, #365e69, transparent 60%), #203e50;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 4.8vw, 72px);
  padding-block: clamp(46px, 5.9vw, 80px);
}

.hero-copy { min-width: 0; padding: 0; }
.hero h1 { font-size: clamp(2.65rem, 4.7vw, 4.4rem); }
.hero-actions { gap: 18px; }
.hero .underlined-link { align-self: flex-start; }

.hero-figure {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: var(--photo-paper);
  border-radius: calc(var(--photo-radius) + 5px);
  box-shadow: 0 20px 56px #132d4559;
}

.hero-image {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 650 / 433;
  border-radius: var(--photo-radius);
  background: #c6d9da;
}

.hero-image img,
.about-portrait img,
.story-photo img,
.retirement-photo img,
.intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img {
  position: static;
  object-position: center;
  transform: none;
}

.hero-figure figcaption {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 8px 5px;
  color: #38574d;
  font-size: .875rem;
  line-height: 1.5;
}

.hero-figure figcaption::before {
  content: "";
  width: 21px;
  height: 1px;
  flex: 0 0 auto;
  background: #728e79;
}

/* The portrait stays to the left and makes room for the introduction. */
.about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 680px);
  align-items: start;
  gap: clamp(36px, 7vw, 95px);
  max-width: 1040px;
}

.about-figure {
  align-self: start;
  width: 100%;
  margin: 0;
  padding: 2px 0 0;
}

.about-portrait {
  display: block;
  width: min(100%, 172px);
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px #a5bbad;
}

.about-portrait img {
  border-radius: 0;
  object-position: 50% 38%;
  transform: scale(1.13);
}

.about-figure figcaption {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.about-figure figcaption strong { display: block; }
.about-figure figcaption span { display: block; margin-top: 4px; font-size: .875rem; }
.about-copy { min-width: 0; }

/* The two stories share a baseline, with the copy attached to each photo. */
.life-section { background: #e8eee7; }
.life-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
}

.life-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid #cbd9d0;
  border-radius: var(--photo-radius);
}

.story-photo {
  display: block;
  width: auto;
  height: auto;
  aspect-ratio: 1.66;
  overflow: hidden;
  margin: 8px 8px 0;
  border-radius: 7px;
  background: #d6e0d5;
}

.story-photo img { object-position: 50% 50%; transition: transform .3s ease; }
.life-story-learning .story-photo img { object-position: 53% 53%; }
.story-photo:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story-photo:hover img { transform: scale(1.025); }
}

.story-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  padding: clamp(20px, 3.2vw, 37px);
}

.story-copy h3 { font-size: clamp(1.75rem, 2.65vw, 2.35rem); }
.story-copy .underlined-link { margin-top: auto; }

/* The retirement photo is the left half of a single feature. */
.retirement-story { background: var(--surface); }
.retirement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid #ccdad0;
  border-radius: var(--photo-radius);
  background: #e7eee6;
}

.retirement-grid .retirement-photo {
  position: relative;
  width: 100%;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #d6e0d5;
}

.retirement-photo img {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  object-position: right 40%;
}

.retirement-grid > div {
  align-self: center;
  min-width: 0;
  padding: clamp(27px, 4.6vw, 62px);
}

.retirement-grid .button { white-space: normal; text-align: center; }

/* The introduction images on the inner pages use a shallow mount. */
.product-intro,
.community-intro {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5.5vw, 72px);
}

.intro-photo {
  width: 100%;
  margin: 0;
  padding: 7px;
  aspect-ratio: 1.95;
  border: 1px solid #cbd9d0;
  border-radius: var(--photo-radius);
  background: var(--surface);
}

.intro-photo img { border-radius: 7px; }
.product-intro .intro-photo img { object-position: 93% center; }
.community-intro .intro-photo img { object-position: center 36%; }

.rt-page .rt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 27%);
  gap: clamp(20px, 4vw, 48px);
}

.rt-page .intro-photo { aspect-ratio: 2.2; }
.rt-page .intro-photo img { object-position: 70% 15%; }

@media (max-width: 760px) {
  .hero-grid,
  .product-intro,
  .community-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-grid { padding-block: 38px 30px; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4rem); }
  .hero-figure { padding: 7px; }
  .hero-figure figcaption { padding: 10px 6px 4px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero .underlined-link { align-self: center; }

  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-figure { display: flex; align-items: center; gap: 16px; }
  .about-portrait { flex: 0 0 98px; width: 98px; border-width: 4px; }
  .about-figure figcaption { margin: 0; }

  .retirement-grid { grid-template-columns: minmax(0, 1fr); }
  .retirement-grid .retirement-photo { min-height: 0; aspect-ratio: 1.8; }
}

@media (max-width: 560px) {
  .life-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rt-page .rt-hero { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .rt-page .intro-photo { max-width: 320px; aspect-ratio: 2.55; }
  .rt-page .intro-photo img { object-position: 75% 5%; }
}

@media (max-width: 410px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero .underlined-link { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .story-photo img { transition: none; }
}
