html.piper-open { overflow: hidden; }
dialog.piper-dialog {
  position: fixed; inset: 0; box-sizing: border-box; width: min(53rem, calc(100% - 2rem));
  max-width: none; height: max-content; max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
  border: 1px solid #dccaab; background: #faf4e8; color: #193e31; overflow: auto;
  box-shadow: 0 24px 100px #06160fb3; border-radius: 5px; color-scheme: light;
}
.piper-dialog::backdrop { background: rgb(3 16 12 / .78); }
.piper-invitation { display: grid; grid-template-columns: .93fr 1.07fr; }
.piper-photo-link { display: block; position: relative; min-height: 26rem; background: #1a3021; }
.piper-photo-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.piper-letter { padding: clamp(2rem, 3.6vw, 3.3rem); align-self: center; }
.piper-dialog .piper-kicker, .piper-special .piper-kicker {
  margin: 0 0 1.1rem; color: #834437; font: 700 .75rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .17em;
}
.piper-letter h2 {
  margin: 0; color: #153b2f; font: italic 400 clamp(2.8rem, 5vw, 4.5rem)/.99 Georgia, serif;
  letter-spacing: -.062em; text-transform: none; text-wrap: balance; overflow-wrap: break-word;
}
.piper-letter .piper-terms {
  border-block-start: 1px solid #bdae92; margin: 1.35rem 0 1.3rem; padding-top: 1.1rem;
  color: #752e37; font: 650 1.35rem/1.35 "Public Sans", system-ui, sans-serif; text-wrap: pretty;
}
.piper-button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .85rem 1.1rem;
  border: 1px solid #752e37; border-radius: 3px; background: #752e37; color: #fff8eb;
  text-align: center; text-decoration: none; font: 650 .94rem/1.4 "Public Sans", system-ui, sans-serif;
}
.piper-button:hover { background: #57232b; color: #fff; }
.piper-continue {
  display: block; margin: .5rem 0 0; padding: .65rem 0; min-height: 44px; border: 0;
  color: #425347; background: transparent; cursor: pointer; text-decoration: underline;
  text-underline-offset: .2em; font: 500 .89rem/1.4 var(--sans);
}
.piper-close {
  position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid #a9987d;
  color: #344239; background: #faf4e8; cursor: pointer; font: 400 1.75rem/1 Arial, sans-serif;
}
.piper-dialog :focus-visible, .piper-special :focus-visible { outline: 3px solid #ae8242; outline-offset: 3px; }
.piper-special { background: var(--bg); }
.piper-special .piper-path { padding-block: 1rem; margin: 0; }
.piper-hero { background: #17382d; color: #fbf4e7; }
.piper-hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.piper-hero-copy { padding: clamp(2rem, 4vw, 4.3rem) clamp(1.6rem, 4vw, 4.25rem) clamp(2rem, 4vw, 4.3rem) 0; align-self: center; }
.piper-special .piper-hero .piper-kicker { color: #edd2a0; }
.piper-hero h1 { font: 400 clamp(3rem, 5.1vw, 5.3rem)/1 Georgia, serif; letter-spacing: -.06em; margin: 0; color: #fff8e7; text-wrap: balance; }
.piper-hero .piper-rate { color: #f3d3ac; margin: 1.35rem 0 .8rem; font: 600 clamp(1.08rem, 1.6vw, 1.4rem)/1.4 var(--sans); }
.piper-hero .piper-intro { color: #f0ece1; font: 400 1.05rem/1.6 var(--sans); max-width: 50ch; margin: 0 0 1.4rem; }
.piper-hero .piper-button { background: #f0d5a7; color: #21382c; border-color: #f0d5a7; }
.piper-hero .piper-button:hover { background: #fff0d7; }
.piper-hero-image { position: relative; margin: 0; min-height: 24rem; }
.piper-hero-image > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.piper-hero-image .piper-mini { position: absolute; inset-inline-end: 5%; bottom: 5%; width: clamp(6.5rem,11vw,9.6rem); height: auto; border: 3px solid #fff6df; transform: rotate(6deg); box-shadow: 0 4px 16px #0008; }
.piper-details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.8rem); padding-block: clamp(2.2rem, 4vw, 4.5rem); }
.piper-details article { border-top: 1px solid var(--line); padding-block-start: 1.2rem; }
.piper-details h2 { font: 400 clamp(1.7rem, 3vw, 2.7rem)/1.12 Georgia, serif; margin: 0 0 .6rem; }
.piper-details p { color: var(--muted); max-width: 54ch; margin: .5rem 0; line-height: 1.6; }
.piper-details a, .piper-path a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.piper-details .piper-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; }
.piper-contact a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
@media (max-width: 650px) {
  dialog.piper-dialog { width: min(29rem, calc(100% - 1.25rem)); max-height: calc(100dvh - 1.25rem); }
  .piper-invitation { grid-template-columns: 1fr; }
  .piper-photo-link { min-height: 0; height: clamp(7rem, 29dvh, 14rem); background: #183620; overflow: hidden; }
  .piper-photo-link img { object-fit: cover; }
  .piper-letter { padding: 1.25rem clamp(1.25rem,6vw,2.25rem) .55rem; }
  .piper-dialog .piper-kicker { margin-bottom: .45rem; }
  .piper-letter h2 { font-size: clamp(2.4rem,9vw,3.4rem); }
  .piper-letter .piper-terms { margin: .8rem 0; padding-top: .65rem; font-size: 1.13rem; }
  .piper-hero-inner, .piper-details { grid-template-columns: 1fr; }
  .piper-hero-copy { padding: 2.1rem 0; }
  .piper-hero-image { min-height: 0; aspect-ratio: 1.75; }
  .piper-details { gap: 1.5rem; }
}
@media (max-height: 480px) and (min-width: 651px) {
  .piper-photo-link { min-height: 19rem; }
  .piper-letter { padding: 1.1rem 2rem; }
  .piper-letter h2 { font-size: 2.9rem; }
}

