/* Quote: large pull quote beside a round portrait, with an author footer */

.quote {
  max-width: 30ch;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: var(--ramp-h2);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-ink);
  text-align: center;
}
.quote__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-quiet);
}

.quote--portrait {
  display: grid;
  grid-template-areas: "photo" "text" "author";
  justify-items: center;
  gap: var(--space-md);
  max-width: none;
  font-size: calc(var(--ramp-h2) * 0.8);
}
.quote__photo {
  grid-area: photo;
  width: min(240px, 60%);
}
.quote__photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}
.quote__text {
  grid-area: text;
  text-wrap: balance;
}
.quote__text::before {
  content: "\201C";
  color: var(--color-accent);
}
.quote__text::after {
  content: "\201D";
  color: var(--color-accent);
}
.quote--portrait .quote__author {
  grid-area: author;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}
.quote--portrait .quote__author b {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-accent);
}
@media (min-width: 768px) {
  .quote--portrait {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: "photo text" "photo author";
    grid-template-rows: 1fr 1fr;
    justify-items: start;
    column-gap: var(--space-xl);
    text-align: left;
  }
  .quote__text {
    align-self: end;
  }
  .quote--portrait .quote__author {
    align-self: start;
  }
  .quote__photo {
    width: 100%;
    max-width: 320px;
    justify-self: end;
  }
  .quote--portrait .quote__author {
    align-items: flex-start;
  }
}
