/* ==========================================================
   About page
   Uses the base styles in intro.css and the nav / footer in home.css.
   ========================================================== */

/* On pages other than home the nav is always fully shown. */
.page-static .nav-links,
.page-static .site-nav .theme-toggle { opacity: 1; transform: none; pointer-events: auto; }
.nav-logo {
  font-family: var(--font-name);
  font-weight: 900;
  font-size: 40px;           /* sized by site.js to match the home page */
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { display: inline-block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.about {
  padding: calc(var(--nav-h) + 96px) var(--margin) 80px;
  font-family: var(--font-small);
  font-weight: 400;
}

/* ---------- Headline ---------- */
.about-headline {
  margin: 0 0 48px;
  text-align: right;
  font: 300 clamp(28px, 3.3vw, 48px)/1.3 var(--font-small);
}
.about-headline em {
  font-family: var(--font-name);
  font-style: normal;
  font-weight: 900;
  font-size: 1.12em;
}

/* ---------- Photo + bio ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
  gap: 16px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #555;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-bio { padding-top: 16px; }
.about-bio p {
  margin: 0 0 1.1em;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--fg) 72%, transparent);
}
.about-bio p:last-child { margin-bottom: 0; }
/* Names of places and clients stand out at full contrast. */
.about-bio em { font-style: normal; color: var(--fg); }
/* Decorative first letter, two lines tall. */
.dropcap {
  float: left;
  font-family: var(--font-name);
  font-weight: 900;
  font-size: 3.6em;
  line-height: .8;
  margin: .06em .1em 0 0;
  color: var(--fg);
}

/* ---------- Expertise + albums ---------- */
.about-section { margin-top: 112px; }
.about-section h2 {
  margin: 0 0 32px;
  font: 400 clamp(28px, 2.9vw, 40px)/1.2 var(--font-small);
}
.expertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 384px));
}
.expertise ul { list-style: none; margin: 0; padding: 0; }
.expertise li { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.95; }

.albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 292px));
  gap: 28px;
}
.albums figure { margin: 0; }
.albums img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: var(--radius); }
.albums figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}
.albums figcaption strong { display: block; font-weight: 400; }
.albums-note { margin: 32px 0 0; font-size: clamp(17px, 1.6vw, 22px); }

.about-credit {
  margin: 96px 0 0;
  text-align: center;
  font-size: clamp(17px, 1.6vw, 22px);
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .about { padding-top: calc(var(--nav-h) + 48px); }
  .about-headline { text-align: left; margin-bottom: 32px; }
  .about-intro { grid-template-columns: 1fr; gap: 24px; }
  .about-bio { padding-top: 0; }
  .about-section { margin-top: 72px; }
  .expertise { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 420px) {
  .expertise { grid-template-columns: 1fr; }
}

/* ---------- Photo: black and white, with the ASCII hover canvas on top ---------- */
.about-photo {
  position: relative;
  --photo-zoom: 1.04;          /* zoomed in slightly to crop thin light edges in the photo */
}
.about-photo:has(img) { background: none; }
.about-photo img { filter: grayscale(1); transform: scale(var(--photo-zoom)); }
.about-photo-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
