/* Wide-screen overrides (min-width: 600px) */

body {
  /* white border on all sides, framing the grey card */
  padding-block: 2rem;
}

header {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.header-media {
  width: auto;
  flex-shrink: 0;
}

.elevator-pitch {
  flex: 1;
  text-align: center;
}

.profile-photo {
  width: 12rem;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
}

.ribbon {
  --r: 1em;
  /* size to its (nowrap) content instead of stretching to the photo's width */
  align-self: flex-start;
  /* matches main's wide padding, so the ribbon still bleeds to meet the card's edge */
  margin-left: -40px;
  margin-right: 0;
}

main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.15);
}

#skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

#skills > h2 {
  grid-column: 1 / -1;
  justify-self: start;
}

.project-media-row {
  /* a BFC so it contains the floated figure's height, without stopping
     the text below from wrapping around it */
  display: flow-root;
}

.project-figure {
  float: right;
  width: 45%;
  margin: 0 0 1rem 1.5rem;
}

.project-text {
  display: block;
}

.project-text p {
  margin-bottom: 0.75rem;
}

.project-text p:last-child {
  margin-bottom: 0;
}
