:root {
  color-scheme: light;
  --rose: #b5797b;
  --dust: #e2d1d0;
  --blush: #f5dbdd;
  --ink: #8f4b4d;
  --body-font: "DM Sans", Arial, sans-serif;
  --display-font: Georgia, serif;
  --art-scale: 0.025rem;
  --artboard: 1366 / 768;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font: 400 1rem/1.4 var(--body-font);
}

main { container-type: inline-size; }
main:focus { outline: none; }

img { display: block; max-width: 100%; }

.heading-art {
  width: min(100%, calc(var(--art-width) * var(--art-scale)));
  height: auto;
}
a { color: inherit; text-underline-offset: 0.14em; }
a:focus-visible, summary:focus-visible, iframe:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }

h2, h3 {
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1.16;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  background: var(--blush);
}

.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1rem 0.9rem;
  background: var(--rose);
  color: white;
}

.hero-logo { width: min(58%, 15rem); height: auto; }

.hero h1 { width: min(90%, 25rem); }

.hero h1 img, .hero-flower { width: 100%; height: auto; }

.hero-flower { width: min(100%, 30rem); margin-top: 1rem; }

.hero-booking {
  display: grid;
  min-height: 2.95rem;
  min-width: 9.25rem;
  place-items: center;
  padding: 0.45em 1.1em;
  border: 1px solid #e2d1d0;
  text-align: center;
  text-transform: uppercase;
}

.hero-booking:hover { background: #fff2; }

.studio { background: var(--dust); }

.studio-photo {
  height: clamp(17rem, 94vw, 29rem);
  margin-inline: 1rem;
  overflow: hidden;
}

.studio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.studio-copy {
  padding: 1.15rem clamp(1rem, 5vw, 2rem) 1.6rem;
  text-align: center;
}

.studio-copy h2 { font-size: clamp(1.65rem, 7.5vw, 2.5rem); }
.studio-copy h2 img { width: min(100%, 20rem); margin-inline: auto; }

.studio-copy p { margin-top: 1.2em; font-size: clamp(1rem, 4.8vw, 1.45rem); }

.services { background: var(--rose); color: var(--dust); }
.team { background: var(--blush); }

.services > .section-inner, .team > .section-inner {
  width: 88.75%;
  margin-inline: auto;
  padding-block: clamp(2.8rem, 18vw, 5rem) 2rem;
}

.section-heading { margin-bottom: 1.1rem; }

.section-heading h2 { font-size: clamp(2rem, 10vw, 3rem); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.7%; }

.feature > img {
  width: 100%;
  height: auto;
  aspect-ratio: 387 / 362;
  object-fit: cover;
}

.feature-copy { padding-top: 0.45rem; text-align: center; }

.feature-copy h3 { min-height: 1em; font-size: clamp(0.72rem, 3.2vw, 1.2rem); }
.feature-copy .heading-art, .contact-booking .heading-art { margin-inline: auto; }
.services .feature-copy { --art-scale: 0.0125rem; }

.feature-copy p {
  margin-top: 0.45em;
  font-size: clamp(0.625rem, 2.7vw, 0.9rem);
  line-height: 1.25;
}

.team .feature-grid {
  max-width: 29rem;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.65rem;
  margin-inline: auto;
}

.team .feature-copy h3 { font-size: 1.45rem; }
.team .feature-copy p { font-size: 1rem; }

.founder {
  padding: clamp(2.2rem, 14vw, 5rem) 6%;
  background: linear-gradient(#e2d1d05c, #e2d1d05c), url("./assets/founder.webp") center / cover, var(--dust);
  text-align: center;
}

.founder blockquote { font-size: clamp(1.15rem, 6vw, 1.85rem); line-height: 1.38; }
.founder figcaption { margin-top: 2rem; font-size: clamp(0.98rem, 4vw, 1.25rem); }

.contact { padding-bottom: clamp(1.5rem, 4vw, 3.5rem); background: var(--dust); }

.contact-inner { position: relative; padding: 3rem 6%; }

.contact-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.13;
  text-transform: uppercase;
}

.contact-intro h2 { margin-top: 0.3em; font-size: clamp(2.2rem, 8vw, 3.5rem); font-weight: 600; }

.contact-photo { width: min(100%, 27rem); margin: 1.5rem auto; }

.contact-photo img { width: 100%; height: auto; border-radius: 50%; }

.contact-booking {
  display: block;
  margin-bottom: 1.6rem;
  font: 400 clamp(1.65rem, 6vw, 2.35rem)/1.22 var(--display-font);
  text-align: center;
}

.contact address { font-style: normal; }
.contact-details { display: grid; gap: 0.8rem; }
.contact-details dt { font: 400 1.35rem/1.2 var(--display-font); }
.contact-details dd { overflow-wrap: anywhere; }

.social-links { display: flex; gap: 1rem; margin-top: 1.25rem; }
.social-links a { display: block; width: 2.75rem; }
.social-links img { width: 100%; height: auto; }

.terms {
  padding: 1.2rem 3% 1.6rem;
  background: var(--blush);
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.34;
  text-align: center;
}

.terms h2, .terms h3 {
  font: inherit;
  text-transform: uppercase;
}

.terms h2, .terms-company { display: inline; }
.terms-content h3 { margin-top: 0.7em; }
.terms-content p { margin-block: 0.12em; }
.terms-content ul { margin: 0; padding: 0; list-style: none; }
.terms-content li::before { content: "* "; }

@media (min-width: 48rem) {
  main { --art-scale: 0.03701cqw; }

  .hero {
    display: block;
    padding: 0;
    aspect-ratio: var(--artboard);
  }

  .hero-logo, .hero h1, .hero-flower, .hero-booking { position: absolute; }
  .hero-logo { inset: 4.28cqw auto auto 13.32%; width: 22.83%; }
  .hero h1 { inset: 30.27cqw auto auto 9.03%; width: 33.53%; }
  .hero-flower { inset: 3.4cqw auto auto 50%; width: 46%; margin: 0; }

  .hero-booking {
    inset: 49.83cqw auto auto 65.72%;
    width: 14.58%;
    min-width: 0;
    min-height: 4.89cqw;
    border-color: #e2d1d0aa;
    font-size: 1.65cqw;
  }

  .studio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    aspect-ratio: var(--artboard);
  }

  .studio-photo { height: auto; margin: 0; }

  .studio-copy {
    width: 30.74cqw;
    margin-left: 8.09cqw;
    align-self: start;
    padding: 3.15cqw 0 0;
  }

  .studio-copy h2 { font-size: 2.93cqw; line-height: 1.24; }
  .studio-copy h2 img { width: min(100%, calc(var(--art-width) * var(--art-scale))); }
  .studio-copy p { margin-top: 2.85cqw; font-size: 1.95cqw; line-height: 1.29; }

  .services, .team { aspect-ratio: var(--artboard); }

  .services > .section-inner, .team > .section-inner { padding-block: 8.25cqw 0; }

  .section-heading { min-height: 3cqw; margin-bottom: 3.63cqw; }
  .section-heading h2 { font-size: 3.9cqw; line-height: 1.18; }

  .feature-grid, .team .feature-grid {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.15%;
  }

  .feature-copy { padding-top: 0.73cqw; }
  .services .feature-copy { --art-scale: 0.03701cqw; }

  .feature-copy h3, .team .feature-copy h3 { min-height: 2.1cqw; font-size: 1.95cqw; }
  .feature-copy p, .team .feature-copy p { margin-top: 0.85cqw; font-size: 1.37cqw; line-height: 1.29; }

  .founder { padding: 5.62cqw 0 0; aspect-ratio: var(--artboard); }
  .founder-quote { width: 47.93%; margin-inline: auto; }
  .founder blockquote { font-size: 2.5815cqw; line-height: 1.38; }
  .founder figcaption { margin-top: 5.4cqw; font-size: 1.6664cqw; }

  .contact-inner { padding: 0; aspect-ratio: var(--artboard); }

  .contact-intro, .contact-photo, .contact-booking, .contact address, .social-links { position: absolute; }
  .contact-intro { inset: 5.62cqw auto auto 5.62%; }
  .contact-name { font-size: 1.76cqw; }
  .contact-intro h2 { margin-top: 1.98cqw; font-size: 3.9cqw; }
  .contact-photo { inset: 17.08cqw auto auto 5.62%; width: 34.65%; margin: 0; }
  .contact-booking { inset: 13.65cqw 7.3% auto 53.12%; margin: 0; font-size: 3.28cqw; }
  .contact address { inset: 27.75cqw 5% auto 56.23%; }
  .contact-details { gap: 2.12cqw; }
  .contact-details dt { font-size: 1.96cqw; }
  .contact-details dd { font-size: 1.37cqw; }
  .social-links { inset: 47.23cqw auto auto 56.23%; gap: 2.18cqw; margin: 0; }
  .social-links a { width: 4.44cqw; }

  .terms {
    padding: 1.37cqw 2.54% 2.5cqw;
    font-size: max(0.725rem, 1.16cqw);
    line-height: 1.3;
  }

  .terms-content h3, .terms-content p { margin: 0; }
}
