@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 {
  color-scheme: light;
  --paper: #e5d8c7;
  --green: #344631;
  --gold: #a27a35;
  --gilt: #c9aa71;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--green); background: var(--paper); }
.invitation { display: grid; grid-template-columns: 53% 47%; min-height: 100vh; min-height: 100svh; }
.message {
  padding: clamp(2.6rem, 5.5vw, 6rem) clamp(2.5rem, 7vw, 8.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}
.wordmark {
  width: clamp(13rem, 22vw, 22rem);
  max-width: 100%;
  aspect-ratio: 1126 / 296;
  background: url('/assets/jawhara-saint-tropez.jpg') 47.73% 42.79% / 103.908% auto no-repeat;
}
.announcement { align-self: center; padding-block: clamp(4rem, 10vh, 8rem); }
.flourish { display: flex; align-items: center; gap: .68rem; margin-bottom: clamp(1.6rem, 2.6vw, 3.1rem); }
.flourish::before { content: ''; width: 3.3rem; border-top: 1px solid var(--gold); }
.flourish i, .ornament i {
  display: block;
  width: .55rem;
  height: .55rem;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}
h1 {
  margin: 0;
  font: 400 clamp(4.8rem, 8.45vw, 10.5rem)/.94 'Instrument Serif', Baskerville, Georgia, serif;
  letter-spacing: -.035em;
}
h1 em { display: block; font-weight: 400; }
.announcement p {
  margin: clamp(1.4rem, 2.25vw, 2.75rem) 0 0 .18em;
  color: #60533c;
  font: 500 .875rem/1.4 Arial, sans-serif;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.signoff { display: flex; width: 100%; align-items: center; gap: .6rem; }
.signoff::before { content: ''; flex: 1; height: 1px; background: #b7a17f; }
.signoff i { display: block; width: .38rem; height: .38rem; background: var(--gold); transform: rotate(45deg); }
.illustration {
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 8rem) clamp(2.4rem, 6vw, 8rem);
  background-color: #344733;
  background-image: repeating-linear-gradient(90deg, transparent 0 5px, #e9dbab05 5px 6px),
                    radial-gradient(ellipse at 50% 45%, #506443, #344733 72%);
}
.illustration::before {
  content: '';
  position: absolute;
  inset: clamp(.95rem, 1.6vw, 1.8rem);
  border: 1px solid #c9aa7163;
  pointer-events: none;
}
.plate {
  width: min(100%, 34rem);
  aspect-ratio: .72;
  position: relative;
  container-type: inline-size;
  border: 1px solid #c9aa71bf;
  border-radius: 50% 50% 1px 1px / 36% 36% 1px 1px;
}
.plate::before {
  content: '';
  position: absolute;
  inset: 2.1%;
  border: 1px solid #c9aa716b;
  border-radius: inherit;
}
.niche {
  position: absolute;
  inset: 4.2%;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 36% 36% 0 0;
  background: var(--paper);
}
.niche::after {
  content: '';
  position: absolute;
  inset: 2.3%;
  border: 1px solid #a27a354d;
  border-radius: inherit;
  pointer-events: none;
}
.bird {
  position: absolute;
  width: 75%;
  aspect-ratio: 374 / 407;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url('/assets/jawhara-saint-tropez.jpg') 53.85% 91.49% / 312.835% auto no-repeat;
}
.medallion {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  left: 45.5%;
  top: 10%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--gold) 0deg 2deg, transparent 2deg 15deg);
}
.medallion::after {
  content: '';
  position: absolute;
  inset: 26%;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--paper);
}
.ornament { position: absolute; bottom: 8%; left: 32%; width: 36%; display: flex; align-items: center; gap: 7%; }
.ornament::before, .ornament::after { content: ''; flex: 1; border-top: 1px solid #a27a3599; }
.ornament i { width: 1.35cqw; height: 1.35cqw; }
@media (min-width: 1800px) {
  .message { padding-left: max(8.5rem, calc((100vw - 100rem) / 3)); }
}
@media (max-width: 700px) {
  .invitation { grid-template-columns: 1fr; }
  .message { padding: 2.4rem clamp(1.6rem, 8vw, 4rem) 2.6rem; }
  .wordmark { width: clamp(12.4rem, 43vw, 16rem); }
  .announcement { padding: 2.7rem 0 0; }
  .flourish { margin-bottom: 1.2rem; }
  .flourish::before { width: 2.2rem; }
  h1 { font-size: clamp(4.35rem, 13.8vw, 6.3rem); }
  .announcement p { margin-top: 1.3rem; font-size: .8125rem; }
  .signoff { display: none; }
  .illustration { padding: 2.65rem max(3rem, 18vw); }
  .plate { width: min(100%, 18.5rem); }
}
@media (max-width: 345px) {
  .message { padding-inline: 1.35rem; }
  h1 { font-size: 3.85rem; }
}
