/* =========================================================
   ABOUT
   Michael McCafferty Fine Art Photography

   Used by:
   /about.php
   ========================================================= */


/* =========================================================
   ABOUT HERO
   ========================================================= */

.about-page-hero {
  min-height: 100svh;

  padding:
    clamp(130px, 13vw, 200px)
    var(--gutter)
    clamp(90px, 10vw, 150px);

  display: grid;

  grid-template-columns:
    minmax(480px, 1fr)
    minmax(400px, .78fr);

  gap:
    clamp(55px, 5vw, 95px);

  align-items: center;
}


/* =========================================================
   HERO COPY
   ========================================================= */

.about-page-hero-copy {
  max-width: 650px;
}


.about-page-hero-copy h1 {
  margin:
    16px 0
    0;

  font-family: var(--serif);

  font-size:
    clamp(
      76px,
      8.7vw,
      150px
    );

  font-weight: 400;

  line-height: .78;

  letter-spacing: -.05em;
}


.about-page-role {
  margin:
    clamp(34px, 4vw, 58px)
    0
    0;

  font-family: var(--serif);

  font-size:
    clamp(
      26px,
      2.6vw,
      43px
    );

  line-height: 1;

  letter-spacing: -.015em;
}


.about-page-location {
  margin:
    14px 0
    0;

  font-size: 9px;

  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: .22em;

  color:
    rgba(0, 0, 0, .48);
}


.about-page-intro {
  max-width: 43ch;

  margin:
    30px 0
    38px;

  font-size:
    clamp(
      15px,
      1.2vw,
      18px
    );

  line-height: 1.8;

  color:
    rgba(0, 0, 0, .70);
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.about-page-hero-image {
  /*
   * The figure width matches the photograph exactly.
   * It is deliberately anchored to the right-hand edge
   * beneath the desktop navigation.
   */

  width:
    clamp(
      410px,
      28vw,
      520px
    );

  max-width: 100%;

  margin: 0;

  justify-self: end;
}


.about-page-hero-image img {
  display: block;

  width: 100%;
  height: auto;

  max-width: 100%;

  margin: 0;

  object-fit: contain;
}


/* =========================================================
   PHOTO CAPTION / CREDIT
   ========================================================= */

.about-page-hero-image figcaption {
  width: 100%;

  margin-top: 14px;

  display: flex;

  justify-content: space-between;

  align-items: baseline;

  gap:
    15px
    25px;

  font-size: 8px;

  font-weight: 500;

  line-height: 1.55;

  text-transform: uppercase;

  letter-spacing: .18em;

  color:
    rgba(0, 0, 0, .46);
}


.about-page-hero-image figcaption > span:first-child {
  text-align: left;
}


.about-photo-credit {
  text-align: right;

  white-space: nowrap;
}


.about-photo-credit a {
  position: relative;

  color:
    rgba(0, 0, 0, .68);

  text-decoration: none;

  transition:
    color .25s ease;
}


.about-photo-credit a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -3px;

  height: 1px;

  background:
    currentColor;

  transform:
    scaleX(0);

  transform-origin:
    right center;

  transition:
    transform .25s ease;
}


.about-photo-credit a:hover {
  color:
    rgba(0, 0, 0, .95);
}


.about-photo-credit a:hover::after {
  transform:
    scaleX(1);

  transform-origin:
    left center;
}


/* =========================================================
   BIOGRAPHY
   ========================================================= */

.about-page-biography {
  padding:
    clamp(125px, 15vw, 230px)
    var(--gutter);
}


.about-page-biography-inner {
  max-width: 1280px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(180px, .34fr)
    minmax(0, 1fr);

  gap:
    clamp(
      55px,
      9vw,
      145px
    );
}


.about-page-biography-label {
  padding-top: 10px;
}


.about-page-biography-label .section-number {
  margin-top: 30px;
}


.about-page-biography-copy {
  max-width: 760px;
}


.about-page-biography-copy p {
  margin:
    0 0
    30px;

  font-size:
    clamp(
      16px,
      1.3vw,
      19px
    );

  line-height: 1.9;

  color:
    rgba(0, 0, 0, .72);
}


.about-page-biography-copy .about-page-lead {
  margin-bottom: 45px;

  font-family: var(--serif);

  font-size:
    clamp(
      32px,
      3.5vw,
      56px
    );

  font-weight: 400;

  line-height: 1.1;

  letter-spacing: -.025em;

  color:
    rgba(0, 0, 0, .88);
}


/* =========================================================
   PHILOSOPHY
   ========================================================= */

.about-page-philosophy {
  padding:
    clamp(140px, 18vw, 280px)
    var(--gutter);
}


.about-page-philosophy-inner {
  max-width: 1320px;

  margin: 0 auto;
}


.about-page-philosophy h2 {
  width: fit-content;

  max-width: 100%;

  margin:
    25px 0
    55px;

  font-family: var(--serif);

  font-size:
    clamp(
      52px,
      6.4vw,
      104px
    );

  font-weight: 400;

  line-height: .94;

  letter-spacing: -.035em;

  white-space: nowrap;
}


.about-page-philosophy-inner > p:not(.eyebrow) {
  max-width: 48ch;

  margin: 0;

  color:
    rgba(255, 255, 255, .70);

  font-size:
    clamp(
      15px,
      1.35vw,
      19px
    );

  line-height: 1.85;
}


/* =========================================================
   COMMUNITY
   ========================================================= */

.about-page-community {
  padding:
    clamp(125px, 15vw, 235px)
    var(--gutter);
}


.about-page-community-inner {
  max-width: 1320px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(280px, .7fr)
    minmax(0, 1.3fr);

  gap:
    clamp(
      60px,
      9vw,
      150px
    );
}


.about-page-community-heading .section-number {
  margin-top: 28px;
}


.about-page-community-heading h2 {
  margin:
    35px 0
    0;

  font-family: var(--serif);

  font-size:
    clamp(
      62px,
      6.5vw,
      104px
    );

  font-weight: 400;

  line-height: .82;

  letter-spacing: -.04em;
}


.about-page-community-copy {
  max-width: 680px;

  padding-top: 10px;
}


.about-page-community-copy > p {
  margin:
    0 0
    30px;

  font-size:
    clamp(
      16px,
      1.3vw,
      19px
    );

  line-height: 1.9;

  color:
    rgba(0, 0, 0, .72);
}


/* =========================================================
   INLINE EXTERNAL LINKS
   ========================================================= */

.about-inline-link {
  position: relative;

  color:
    rgba(0, 0, 0, .88);

  text-decoration: none;

  white-space: nowrap;
}


.about-inline-link::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -2px;

  height: 1px;

  background:
    currentColor;

  opacity: .45;

  transform:
    scaleX(1);

  transform-origin:
    left center;

  transition:
    opacity .25s ease,
    transform .25s ease;
}


.about-inline-link:hover::after {
  opacity: 1;

  transform:
    scaleX(.78);
}


/* =========================================================
   PAGE LINKS
   ========================================================= */

.about-page-links {
  margin-top: 48px;

  display: flex;

  flex-wrap: wrap;

  gap:
    28px
    40px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

  .about-page-hero {
    grid-template-columns:
      minmax(400px, 1fr)
      minmax(340px, .72fr);

    gap:
      clamp(
        45px,
        5vw,
        75px
      );
  }


  .about-page-hero-image {
    width:
      clamp(
        360px,
        34vw,
        470px
      );

    justify-self: end;
  }

}


@media (max-width: 980px) {

  .about-page-hero {
    min-height: auto;

    grid-template-columns: 1fr;

    gap: 75px;

    padding-top: 130px;
  }


  .about-page-hero-copy {
    max-width: 760px;
  }


  .about-page-hero-copy h1 {
    font-size:
      clamp(
        84px,
        15vw,
        138px
      );
  }


  .about-page-hero-image {
    width:
      min(
        72vw,
        600px
      );

    justify-self: center;
  }


  .about-page-biography-inner,
  .about-page-community-inner {
    grid-template-columns: 1fr;
  }


  .about-page-biography-label {
    display: flex;

    align-items: baseline;

    gap: 35px;
  }


  .about-page-biography-label .section-number {
    margin: 0;
  }


  .about-page-community-copy {
    max-width: 760px;

    margin-left: auto;
  }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 760px) {

  .about-page-philosophy h2 {
    white-space: normal;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .about-page-hero {
    padding:
      108px
      var(--gutter)
      90px;

    gap: 58px;
  }


  .about-page-hero-copy h1 {
    font-size:
      clamp(
        67px,
        20vw,
        92px
      );

    line-height: .81;
  }


  .about-page-role {
    margin-top: 30px;

    font-size: 29px;
  }


  .about-page-intro {
    font-size: 15px;

    line-height: 1.75;
  }


  /*
   * Preserve the existing mobile treatment.
   */

  .about-page-hero-image {
    width: 100%;

    justify-self: stretch;
  }


  .about-page-hero-image img {
    width: 100%;
  }


  .about-page-hero-image figcaption {
    flex-direction: column;

    align-items: flex-start;

    gap: 7px;

    font-size: 7px;

    line-height: 1.6;
  }


  .about-photo-credit {
    text-align: left;

    white-space: normal;
  }


  .about-page-biography {
    padding:
      105px
      var(--gutter)
      125px;
  }


  .about-page-biography-label {
    display: block;
  }


  .about-page-biography-label .section-number {
    margin-top: 20px;
  }


  .about-page-biography-copy .about-page-lead {
    font-size:
      clamp(
        30px,
        9vw,
        40px
      );
  }


  .about-page-biography-copy p {
    font-size: 16px;

    line-height: 1.82;
  }


  .about-page-philosophy {
    padding:
      125px
      var(--gutter)
      145px;
  }


  .about-page-philosophy h2 {
    width: auto;

    max-width: 100%;

    font-size:
      clamp(
        43px,
        12vw,
        58px
      );

    line-height: .96;

    letter-spacing: -.03em;

    white-space: normal;
  }


  .about-page-community {
    padding:
      110px
      var(--gutter)
      130px;
  }


  .about-page-community-heading h2 {
    font-size:
      clamp(
        54px,
        15vw,
        72px
      );
  }


  .about-page-community-copy {
    margin-left: 0;
  }


  .about-page-community-copy > p {
    font-size: 16px;

    line-height: 1.82;
  }


  .about-page-links {
    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

  .about-page-hero-copy h1 {
    font-size: 61px;
  }


  .about-page-role {
    font-size: 26px;
  }


  .about-page-philosophy h2 {
    font-size: 41px;

    line-height: .98;
  }


  .about-page-community-heading h2 {
    font-size: 50px;
  }

}