/* ==========================================================================
   ABOUT.CSS
   ========================================================================== */

.about__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.about__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  color: var(--color-text);
  margin-bottom: var(--space-2xs);
}

.about__name {
  font-family: var(--font-serif);
  font-size: var(--fs-name);
  font-weight: var(--fw-regular);
  line-height: 1.05;
  letter-spacing: -5%;
  margin-bottom: var(--space-2xs);
}

.about__tag {
  font-family: var(--font-display);
  font-size: var(--fs-tag);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.about__intro {
  font-family: var(--font-sans);
  font-size: var(--fs-intro);
  color: var(--color-text-muted);
  max-width: 62ch;
}

.about__intro strong {
  color: var(--color-text);
  font-weight: var(--fw-bold);
}

.about__photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--color-border-soft);
  filter: grayscale(100%);
}

/* The About window has to stretch to match the combined height of the
   Contact + Software windows beside it (see layout.css grid areas). Without
   this, that extra height collects as empty space below the panels instead
   of being absorbed into them. */
.window--about .window__body {
  display: flex;
  flex-direction: column;
}

.about__header {
  flex-shrink: 0; /* header keeps its natural height */
}

.about__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: stretch; /* makes both boxes match height of the taller one */
  flex: 1; /* panels grow to fill any remaining height */
}

.about__panel {
  display: flex;
  flex-direction: column;
}

.about__panel p {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  margin-bottom: var(--space-md);
}

.about__panel p:last-of-type {
  margin-bottom: var(--space-md);
}

.about__panel strong {
  font-weight: var(--fw-bold);
}

.about__panel .btn-chrome {
  margin-top: auto;   /* pushes the button to the bottom of the box */
  align-self: center; /* centers it horizontally */
}
