@font-face {
  font-family: Omnes;
  src: url("../fonts/meditation-omnes-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Omnes;
  src: url("../fonts/meditation-omnes-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: #000;
  background: #fdfdfd;
  font: 500 1.225rem/1.47 Omnes, system-ui, sans-serif;
}

h1, h2, p { margin: 0; }
h2 + p, p + p { margin-top: 1rem; }
h2 { font-size: 1.45rem; line-height: 1.52; text-align: center; }
a { color: inherit; text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

main > section {
  display: grid;
}

/* Each section shares the same columns so the photo, text, and button line up. */
.layout {
  display: grid;
  margin-inline: auto;
  width: 88%;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 11px;
}

.hero {
  position: relative;
  align-content: end;
  min-height: 66vh;
  padding-block: 3vw;
  background: #333;
  color: white;
}
.hero .layout { grid-template-rows: repeat(9, minmax(24px, auto)); }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 93.203% 65.6041%;
}
.hero h1 {
  position: relative;
  grid-area: 1 / 1 / -1 / 8;
  padding-top: 4.45rem;
  font-size: inherit;
  backdrop-filter: blur(2px);
}

.guidance { padding-top: 6.6vmax; }
.guidance .layout { row-gap: 0; }
.guidance-copy { grid-column: 1 / -1; }
#booking-button {
  grid-column: 2 / 8;
  margin-block: 48px;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0.35em 1em;
  border: 3px solid;
  border-radius: 300px;
  font: 700 1.25rem/1.25 Omnes, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}
#booking-button:is(:hover, :focus-visible) {
  border-color: #000;
  background: #000;
  color: white;
  outline-color: #000;
}

.biography { padding-bottom: 6.6vmax; }
.biography .layout { align-items: start; row-gap: 24px; }
.portrait {
  grid-column: 1 / 8;
  max-width: 17.5rem;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
}
.bio-copy { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .layout {
    width: min(94%, 1800px);
    grid-template-columns: repeat(24, minmax(0, 1fr));
  }
  .hero .layout { grid-template-rows: repeat(4, minmax(min(2.021vw, 38.7px), auto)); }
  .hero h1 {
    grid-column: 2 / 10;
    display: block;
    align-content: center;
    padding-top: 4.4rem;
  }
  .guidance-copy { grid-column: 4 / 22; }
  #booking-button { grid-column: 10 / 16; margin-block: 80px; }
  .portrait { grid-column: 1 / 10; max-width: none; }
  .bio-copy { grid-column: 12 / 22; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  #booking-button { grid-column: 8 / 18; }
}

@media (min-width: 1101px) {
  body { font-size: 1.325rem; }
  h2 { font-size: 1.75rem; }
}
