/* Homepage only: one photograph, with live HTML on the photograph's own paper.
   The desktop crop keeps the writer's proportions intact; it is not stretched.
   On smaller screens the same sheet extends into the foreground for readability. */
.home-page .site-header {
  max-width: 1180px;
  padding-inline: 30px;
}
.scene-hero {
  color: var(--gold-light);
  background: #0c1720;
}
.scene-stage {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 56% 44%;
  width: min(100%, 1180px);
  margin-inline: auto;
  aspect-ratio: 687 / 635;
  overflow: hidden;
}
.scene-art {
  position: absolute;
  z-index: -2;
  inset: 0 auto auto 0;
  width: 100%;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.scene-art img { width: 100%; height: auto; }
.scene-stage::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #0c172000 84%, #0c1720c7 98%, #0c1720),
              linear-gradient(90deg, #0c172030, transparent 3%, transparent 98%, #0c172018);
  pointer-events: none;
}
.scene-invitation {
  grid-column: 2;
  align-self: start;
  position: relative;
  min-width: 0;
  /* These coordinates line up with the original poster's parchment interior. */
  margin: 0 9% 0 8%;
  padding-top: 6.8cqw;
  padding-bottom: 24px;
  color: #30291f;
}
.scene-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90%;
  color: #725235;
  font: 600 9px/1.5 var(--sans);
  letter-spacing: 2px;
}
.scene-eyebrow > span {
  flex: 0 0 20px;
  height: 1px;
  background: currentColor;
}
.scene-invitation h1 {
  margin: 22px 0 0;
  color: #172027;
  font-family: var(--serif);
  font-size: clamp(54px, 6.25cqw, 74px);
  line-height: 1.01;
  letter-spacing: -2.8px;
}
.scene-invitation h1 em { font-weight: 400; }
.scene-ink-rule {
  width: 32%;
  height: 2px;
  margin: 23px 0 26px;
  background: #66502e;
  transform: rotate(-3deg);
  clip-path: polygon(0 75%, 97% 0, 100% 70%, 6% 100%);
}
.scene-invitation p:not(.scene-privacy) { font-family: var(--serif); }
.scene-lead {
  font-size: clamp(20px, 2.08cqw, 25px);
  line-height: 1.4;
  margin-bottom: 20px;
}
.scene-copy {
  font-size: clamp(17px, 1.75cqw, 21px);
  line-height: 1.6;
}
.scene-promise {
  border-left: 1px solid #a98954;
  padding-left: 18px;
  margin: 27px 0 29px;
  font-size: clamp(18px, 1.8cqw, 22px);
  line-height: 1.55;
}
.scene-promise em { font-size: 1.06em; }
.scene-cta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 16px 23px;
  font-size: 14px;
  border-radius: 2px;
  box-shadow: 0 3px 8px #40301719;
}
.scene-cta span[aria-hidden] { font-size: 24px; }
.scene-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  color: #715b40;
  font: 11px/1.5 var(--sans);
  text-align: center;
}
.scene-privacy svg { flex: 0 0 13px; width: 13px; height: 15px; }
.scene-signoff {
  position: absolute;
  right: 5%;
  bottom: 2.8%;
  width: 41%;
  color: #f3dfbc;
  font: italic clamp(22px, 2.4cqw, 29px)/1.4 var(--serif);
  text-align: center;
  text-shadow: 0 2px 12px #07121d;
  transform: rotate(-4deg);
}
.scene-footer {
  max-width: 1120px;
  margin-inline: auto;
  padding: 19px 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #bfad90;
}
.scene-footer > span { font: italic 17px/1.5 var(--serif); }
.scene-footer > a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-size: 9px;
  letter-spacing: 2px;
}
.scene-footer > a > span { font-size: 22px; }
@media (min-width: 901px) and (max-width: 1060px) {
  .scene-invitation h1 { margin-top: 18px; }
  .scene-ink-rule { margin-block: 18px 20px; }
  .scene-lead { margin-bottom: 15px; }
  .scene-promise { margin-block: 21px; }
}
/* A proportionally shrunken desktop paper is too narrow to read on a phone.
   Keep one continuous artwork instead: crop closer to the writer, and bring
   the parchment forward. Its content remains in normal document flow. */
@media (max-width: 900px) {
  .home-page .site-header { padding-inline: 22px; }
  .scene-stage {
    display: block;
    aspect-ratio: auto;
    padding: min(88vw, 540px) 22px 25px;
  }
  .scene-art {
    width: 100%;
    left: 0;
    height: min(115vw, 660px);
  }
  .scene-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
  }
  .scene-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, #0c1720);
  }
  .scene-stage::after { background: none; }
  .scene-invitation {
    width: min(100%, 570px);
    margin: 0 auto;
    padding: 42px 36px 36px;
    filter: drop-shadow(0 12px 20px #0004);
  }
  .scene-invitation::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url('/static/hero-paper.webp') center / 100% 100%, #f1d5a7;
    clip-path: polygon(0.5% 0.8%, 16% 0, 34% 0.6%, 51% 0.1%, 72% 0.4%, 99.1% 0,
                       100% 24%, 99.3% 51%, 100% 73%, 99% 99.6%, 80% 99.2%,
                       59% 100%, 38% 99.5%, 18% 100%, 0 99.4%, 0.6% 72%, 0 49%);
  }
  .scene-eyebrow { font-size: 9px; letter-spacing: 1.8px; }
  .scene-invitation h1 { margin-top: 23px; font-size: clamp(50px, 8.7vw, 68px); letter-spacing: -2px; }
  .scene-ink-rule { width: 108px; margin: 22px 0 25px; }
  .scene-lead { font-size: 23px; margin-bottom: 18px; }
  .scene-copy { font-size: 18px; line-height: 1.65; }
  .scene-promise { font-size: 19px; margin: 25px 0; }
  .scene-cta { min-height: 56px; }
  .scene-privacy { font-size: 11px; }
  .scene-signoff {
    position: relative;
    inset: auto;
    width: auto;
    margin: 27px auto 5px;
    font-size: 25px;
    text-shadow: none;
  }
  .scene-footer { padding: 12px 24px 23px; }
  .scene-footer > span { font-size: 15px; }
  .scene-footer > a { gap: 10px; font-size: 8px; letter-spacing: 1px; }
}
@media (max-width: 440px) {
  .scene-stage { padding-inline: 14px; }
  .scene-invitation { padding: 34px 26px 30px; }
  .scene-eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .scene-invitation h1 { font-size: clamp(45px, 12.5vw, 55px); letter-spacing: -1.9px; }
  .scene-lead { font-size: 21px; }
  .scene-copy { font-size: 17px; }
  .scene-promise { font-size: 18px; }
  .scene-cta { padding: 15px 18px; font-size: 13px; gap: 12px; }
  .scene-privacy { font-size: 10px; gap: 6px; }
  .scene-signoff { font-size: 23px; }
  .scene-footer { padding-inline: 22px; }
  .scene-footer > span { max-width: 155px; }
}
@media print {
  .scene-stage { display: block; aspect-ratio: auto; padding: 0; overflow: visible; }
  .scene-art, .scene-stage::after, .scene-invitation::before, .scene-signoff, .scene-footer, .scene-cta { display: none; }
  .scene-hero { background: white; color: black; }
  .scene-invitation { width: auto; margin: 0; padding: 0; filter: none; color: black; }
  .scene-invitation h1 { font-size: 30pt; }
  .scene-invitation p { font-size: 13pt; }
}
