@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --frame: clamp(0.625rem, 1.5vw, 1.5rem);
  background: #f8f6f0;
  color: #2e352b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: var(--frame);
}

main {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 2 * var(--frame));
  min-height: calc(100svh - 2 * var(--frame));
  padding: clamp(2rem, 6.8vw, 8rem);
  background: #e9e0d1;
}

.flower {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 12%;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(5rem, 11vw, 12.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.045em;
}

h1 em {
  display: block;
  margin-inline-start: 0.48em;
  font-weight: 400;
}

p {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: clamp(2rem, 4vw, 3.75rem) 0 0;
  font: 400 clamp(0.875rem, 1.1vw, 1rem) / 1.5 system-ui, sans-serif;
  letter-spacing: 0.025em;
}

p::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

@media (max-aspect-ratio: 1/1) {
  main {
    align-items: end;
    padding: clamp(1.5rem, 7vw, 4rem);
    padding-bottom: clamp(1.75rem, 4.5svh, 3.5rem);
  }

  .flower {
    object-position: 83% top;
  }

  h1 {
    font-size: clamp(4.75rem, 20vw, 9rem);
  }
}
