/* =========================================================
   ABOUT.CSS
   신랑 / 신부 소개 카드
========================================================= */


/* =========================================================
   1. About Grid
========================================================= */

.about__grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  width: 100%;

  gap:
    clamp(14px, 4vw, 18px);
}


/* =========================================================
   2. About Card
========================================================= */

.about-card {
  min-width: 0;

  text-align: center;
}


/* =========================================================
   3. Profile Photo
========================================================= */

.about-card__photo {
  position: relative;

  width: 100%;

  aspect-ratio: 0.72;

  overflow: hidden;

  /*
    INTRO의 타원 형태와 비슷하지만
    조금 더 단정한 프로필용 비율
  */
  border-radius:
    50% / 42%;

  background:
    linear-gradient(
      145deg,
      #ead9d4 0%,
      #c4a9a3 48%,
      #aa8f89 100%
    );

  box-shadow:
    0 10px 22px
    rgba(0, 0, 0, 0.055);

  transition:
    transform
    var(--motion-fast)
    var(--ease-standard),

    box-shadow
    var(--motion-fast)
    var(--ease-standard);
}


/* 실제 사진 */
.about-card__photo.has-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}


/* =========================================================
   4. Photo Placeholder
========================================================= */

.about-card__photo span {
  position: absolute;

  inset: 0;

  display: grid;

  place-items: center;

  padding: 14px;

  color:
    rgba(255, 250, 247, 0.75);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(8px, 2.2vw, 9px);

  font-weight: 300;

  line-height: 1.8;

  letter-spacing:
    var(--tracking-widest);

  text-align: center;

  transition:
    opacity
    var(--motion-normal)
    var(--ease-standard);
}


/* 사진이 있으면 placeholder 숨김 */
.about-card__photo.has-image span {
  opacity: 0;
}


/* =========================================================
   5. Role
   GROOM / BRIDE
========================================================= */

.about-card__role {
  margin:
    clamp(16px, 4.5vw, 18px)
    0
    6px;

  color:
    var(--color-muted);

  font-family:
    "Sometimestimes",
    serif;

  font-size:
    clamp(13px, 2.7vw, 11px);

  font-weight: 600;

  line-height: 1;

  letter-spacing:
    var(--tracking-widest);

  text-transform:
    uppercase;
}


/* =========================================================
   6. Name
========================================================= */

.about-card h3 {
  margin: 0;

  color:
    var(--color-ink);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(20px, 4vw, 22px);

  font-weight: 300;

  line-height: 1.45;

  letter-spacing:
    -0.02em;
}


/* =========================================================
   Family
========================================================= */

.about-card__family {
  display: flex;

  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 3px;

  margin:
    12px 0 0;

  color:
    var(--color-muted);

  font-family:
    "SUIT-Light",
    sans-serif;

  font-size:
    clamp(15px, 2.8vw, 18px);

  font-weight: 500;

  line-height: 1.6;

  letter-spacing:
    -0.015em;

  text-align: center;

  word-break: keep-all;
}


.about-card__parent-name {
  color:
    var(--color-ink);
}


.about-card__family-dot {
  color:
    var(--color-muted);
}


.about-card__family-relation {
  color:
    var(--color-muted);
}


.about-contact {
  display: flex;
  justify-content: center;

  width: 100%;

  margin-top:
    clamp(30px, 8vw, 40px);
}


.about-contact__button {
  width:
    min(100%, 240px);
}


/* =========================================================
   7. Hover
========================================================= */

@media (hover: hover) {

  .about-card__photo:hover {
    transform:
      translateY(-2px);

    box-shadow:
      0 14px 26px
      rgba(0, 0, 0, 0.07);
  }

}


/* =========================================================
   8. Small Mobile
========================================================= */

@media (max-width: 360px) {

  .about__grid {
    gap: 12px;
  }


  .about-card__role {
    margin-top: 14px;

    font-size: 9px;
  }


  .about-card h3 {
    font-size: 14px;
  }

}


/* =========================================================
   9. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .about-card__photo,
  .about-card__photo span {
    transition: none;
  }


  .about-card__photo:hover {
    transform: none;
  }

}