/* About: header + portrait + introduction fit one screen.
 * .about-content is a size container; sizes below use cqh (% of the space under the header)
 * so the portrait and spacing shrink on short windows instead of scrolling. */
.page-about { height: 100svh; min-height: 560px; overflow: hidden; }
.about-content { flex: 1 1 0; min-height: 0; padding: 0; container-type: size; }

.profile { height: 100cqh; max-width: 1200px; margin: 0 auto; padding: 0 2%; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; }

/* Polaroid: the frame hugs the photo — equal white border on top/left/right, wide bottom for the signature. */
.profile-portrait { --edge: 2.2cqh; justify-self: center; position: relative; margin: 0; width: min(100%, calc(74cqh * .8 + 2 * var(--edge))); padding: var(--edge) var(--edge) 8cqh; background: var(--card); box-shadow: 0 12px 35px #65432f12; transform: rotate(-3deg); }
.profile-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-sign { position: absolute; right: 2.4cqh; bottom: 2cqh; font: italic clamp(16px, 3.8cqh, 24px) Georgia, serif; color: var(--accent); }

.profile-copy .page-title { font-size: clamp(24px, 6.2cqh, 43px); margin: clamp(8px, 2.4cqh, 21px) 0 clamp(6px, 1.6cqh, 12px); }
.profile-copy p { font-size: clamp(12.5px, 2.3cqh, 14px); line-height: clamp(21px, 4.3cqh, 29px); color: var(--soft); margin: 0 0 clamp(6px, 1.6cqh, 14px); }
.profile-facts { margin: clamp(10px, 2.6cqh, 28px) 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.profile-facts > div { display: flex; padding: clamp(6px, 1.6cqh, 13px) 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.profile-facts dt { width: 68px; flex: none; color: var(--soft); }
.profile-facts dd { margin: 0; }

@media (max-width: 1000px) {
  .profile { gap: 5%; padding: 0; }
  .profile-facts { grid-template-columns: 1fr; }
}
/* Phones: a keepsake-page layout on one centred axis — polaroid, eyebrow, title, rule,
   centred text, then the facts as a small card. The page scrolls; nothing is squeezed to fit. */
@media (max-width: 700px) {
  .page-about { height: auto; min-height: 100svh; overflow: visible; }
  .about-content { flex: 1 0 auto; container-type: normal; }
  .profile { height: auto; padding-block: 34px 56px; grid-template-columns: 1fr; gap: 34px; justify-items: center; }

  .profile-portrait { --edge: 9px; width: min(76%, 300px); padding: var(--edge) var(--edge) 38px; transform: rotate(-2deg); }
  .profile-portrait img { aspect-ratio: 1; object-position: 50% 40%; }
  .portrait-sign { font-size: 16px; right: 12px; bottom: 8px; }

  .profile-copy { width: 100%; max-width: 30em; text-align: center; }
  .profile-copy .tiny-label { display: block; color: var(--soft); letter-spacing: 3px; }
  .profile-copy .page-title { font-size: 27px; letter-spacing: 2px; margin: 12px 0 0; }
  .profile-copy .page-title::after { content: ""; display: block; width: 32px; height: 1px; margin: 18px auto 22px; background: #c9ab8b; }
  .profile-copy p { font-size: 14px; line-height: 2; letter-spacing: .4px; margin: 0 0 14px; text-align: left; }
  .profile-copy h1 + p { color: var(--ink); font-size: 15px; }

  /* facts: a small card, two equal columns, label over value */
  .profile-facts { margin: 30px 0 0; padding: 4px 20px; grid-template-columns: 1fr 1fr; column-gap: 20px; text-align: left; background: var(--card); border: 1px solid #e7d6c1; border-radius: 4px; box-shadow: 0 8px 26px #65432f0d; }
  .profile-facts > div { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .profile-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .profile-facts dt { width: auto; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 6px; }
}
@media (max-width: 360px) {
  .profile-facts { padding: 4px 14px; column-gap: 12px; }
  .profile-facts > div { font-size: 12.5px; }
}
