.boutique-letter {
  position: relative;
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 108px);
  margin: 0;
  padding: clamp(36px, 4.8vw, 80px) var(--page);
  color: var(--brand-ink);
  background: var(--limestone);
}

.boutique-letter__art {
  position: relative;
  align-self: stretch;
  min-height: clamp(280px, 30vw, 510px);
}

.boutique-letter__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% 44%;
  filter: grayscale(1);
}

.boutique-letter__message,
.boutique-letter__caption {
  min-width: 0;
  max-width: 36rem;
}

html[dir="rtl"] :is(.boutique-letter__message, .boutique-letter__caption) {
  direction: rtl;
  justify-self: end;
}

.boutique-letter h2 {
  font: 400 clamp(48px, 6.3vw, 100px) / 1.2 var(--display);
}

.boutique-letter h2 span {
  display: block;
}

html[lang="en"] .boutique-letter h2 {
  line-height: 1.04;
}

.boutique-letter p {
  max-width: 30em;
  margin-block: clamp(16px, 2vw, 28px) 12px;
  font-size: clamp(15px, 1.22vw, 18px);
  line-height: 1.85;
  text-wrap: pretty;
}

.boutique-letter .text-link {
  min-height: 44px;
  gap: 14px;
  color: inherit;
  font: 400 clamp(20px, 1.7vw, 27px) / 1.45 var(--display);
}

.boutique-letter .text-link svg {
  width: .76em;
  height: .76em;
}

.boutique-letter--plate .boutique-letter__art {
  min-height: clamp(240px, 23vw, 390px);
}

.boutique-letter__caption span {
  display: block;
  font: 400 clamp(30px, 3.5vw, 58px) / 1.3 var(--display);
}

.boutique-letter__caption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: clamp(14px, 1.2vw, 18px);
  text-decoration: underline;
  text-underline-offset: .33em;
}

@media (max-width: 700px) {
  .boutique-letter {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    padding: 32px var(--page) 40px;
  }

  .boutique-letter__art,
  .boutique-letter--plate .boutique-letter__art {
    min-height: clamp(180px, 55vw, 320px);
  }

  .boutique-letter h2 {
    font-size: clamp(44px, 11vw, 65px);
  }
}

#footer {
  --signature-left: clamp(22px, 4.5vw, 88px);
  --signature-width: clamp(240px, 31vw, 550px);
  --signature-top: clamp(14px, 2vw, 32px);
  position: relative;
  isolation: isolate;
  direction: ltr;
  display: flex;
  align-items: end;
  gap: clamp(26px, 5vw, 100px);
  padding: var(--signature-top) var(--page) clamp(22px, 2.2vw, 40px) var(--signature-left);
  color: var(--brand-ink);
  background: var(--limestone);
}

/* Start inside the f at (630, 154.24) in the 796 × 312 lockup.
   The first 92 units keep the pen angle at logo scale; only the long sweep stretches. */
#footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(var(--signature-left) + var(--signature-width) * 630 / 796);
  right: 0;
  top: calc(var(--signature-top) + var(--signature-width) * 116 / 796);
  height: calc(var(--signature-width) * 44 / 796);
  border: 0 solid transparent;
  border-left-width: calc(var(--signature-width) * 92 / 796);
  border-image: url("/brand/nouf-script-swash.svg") 0 0 0 92 fill / 0 0 0 1 stretch;
  pointer-events: none;
}

#footer .footer-brand {
  color: var(--moss);
  display: block;
  flex: none;
  align-self: start;
  position: relative;
  width: var(--signature-width);
}

@media (prefers-reduced-motion: no-preference) {
  #footer[data-signature="ready"]::before {
    clip-path: inset(0 100% 0 0);
  }
  #footer[data-signature="written"]::before {
    animation: nouf-sign-invitation 950ms cubic-bezier(0.18, 0.58, 0.32, 1);
  }
  @keyframes nouf-sign-invitation {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0);
    }
  }
}

#footer .footer-brand svg {
  width: 100%;
  height: auto;
}

#footer .footer-inner {
  align-self: start;
  margin-top: calc(var(--signature-width) * 146 / 796 + 12px);
}

#footer .footer-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 760px) {
  #footer {
    --signature-width: min(76vw, 340px);
    display: grid;
    gap: 15px;
  }

  #footer .footer-inner {
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 15px;
    margin: 0;
  }
}
