/* The phone-sized paintings carry both the architectural frame and its
   inscriptions. All sizes below are relative to this same portrait stage. */
.scene--entrance {
  --gate-paint:url("art/entrance-tall.webp");
}
.scene--entrance .gate-ink {
  background:var(--gate-paint) no-repeat center / contain;
}
.scene--entrance .devotional { inset:0; display:block; color:#fff0cc; }
.scene--entrance .devotional::before {content:none;}
.scene--entrance .devotional h1, .scene--entrance .ganesh-emblem,
.scene--entrance .mantra, .scene--entrance .open-invitation {
  position:absolute; left:50%; transform:translateX(-50%);
}
.scene--entrance .devotional h1 {
  top:32.4%; width:61%; max-width:15ch;
  font-size:clamp(1.65rem,8.0cqw,2.65rem); line-height:1.02;
}
.scene--entrance .ganesh-emblem {
  top:41%; width:25.8cqw; height:25.8cqw;
}
.scene--entrance .mantra {
  top:54.3%; width:69%;
  font-size:clamp(.9rem,4.05cqw,1.15rem); line-height:1.45;
  text-shadow:0 1px 4px #351019;
}
.scene--entrance .open-invitation {bottom:11.4%;}
.scene--entrance .open-invitation,.scene--final .letter-link {
  min-height:44px;
  font-size:clamp(.84rem,3.45cqw,1rem);
}
.scene--courtyard .letter-layout {
  position:absolute;
  inset:22% 12% 23.5%;
  width:auto;
  transform:none;
  display:grid;
  align-content:center;
  color:#472c25;
  text-align:center;
}
.family-letter {width:100%;}
.inscription {
  margin:0 auto clamp(.7rem,2.3cqw,1.05rem);
  width:100%;
  max-width:none;
  font:430 clamp(.875rem,3.75cqw,1.1rem)/1.29 var(--sans);
  text-wrap:balance;
}
.inscription > span, .inscription strong {display:block;}
.inscription strong {
  margin:.24em 0;
  color:#542c30;
  font:400 clamp(1.08rem,5cqw,1.48rem)/1.12 var(--serif);
}
.elder-name, .parent-name {display:inline-block;}
.name-row,.wedding-joins {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:.33rem;
  text-align:center;
}
.wedding-name {
  margin:0;
  color:#69273c;
  font:italic 400 clamp(1.4rem,7.1cqw,2.2rem)/1.15 var(--serif);
  white-space:nowrap;
}
.wedding-surname {
  font-size:.69em;
  font-style:normal;
}
html[data-large-type] .wedding-name {
  white-space:normal;
  overflow-wrap:anywhere;
}
.family-origin {
  margin:.28rem 0 0;
  padding-inline:.4rem;
  color:#432d28;
  font:560 clamp(.875rem,3.64cqw,1.05rem)/1.32 var(--sans);
  text-wrap:balance;
}
.family-origin abbr {text-decoration:none;}
.family-origin address {
  margin:.1rem 0 0;
  color:#624a3b;
  font:450 clamp(.875rem,3.55cqw,1rem)/1.24 var(--sans);
}
.wedding-joins {
  margin:clamp(.32rem,1.65cqw,.65rem) 0;
}
.wedding-joins i {
  display:block;
  color:#795336;
  font:italic 400 clamp(1rem,4.5cqw,1.32rem)/1 var(--serif);
}
.wedding-joins i::before,.wedding-joins i::after {
  content:"";
  display:inline-block;
  width:.65em;
  margin:0 .35em;
  vertical-align:middle;
  border-top:1px solid #ba926a;
}
.scene--final .envelope-display {
  width:72%;
  top:58%;
}
.scene--final .final-copy {bottom:9%;}

/* Coordinates traced on the actual 887 × 1774 door painting. The two leaves
   share the same painted centre seam and aperture with the stationary surround. */
.scene--entrance {
  --hinge-left: 17.024%;
  --hinge-right: 82.864%;
  --left-foot: 17.024% 77.283%;
  --right-foot: 82.864% 77.283%;
  --seam-foot: 50.056% 77.283%;
  --seam-crown: 50.056% 21.984%;
  --left-crown:
    17.024% 28.241%, 17.700% 27.508%, 18.377% 27.057%, 19.053% 26.776%, 19.729% 26.550%,
    20.406% 26.381%, 21.082% 26.212%, 21.759% 26.156%, 22.435% 26.099%, 23.112% 26.043%,
    23.788% 26.043%, 24.352% 26.099%, 24.464% 26.043%, 25.141% 25.366%, 25.817% 24.915%,
    26.494% 24.634%, 27.170% 24.408%, 27.847% 24.295%, 28.523% 24.126%, 29.200% 24.070%,
    29.876% 24.014%, 30.552% 24.014%, 31.229% 24.014%, 31.905% 24.070%, 32.582% 24.126%,
    33.258% 24.239%, 33.935% 24.352%, 34.160% 24.352%, 34.611% 24.070%, 35.287% 23.732%,
    35.964% 23.506%, 36.640% 23.393%, 37.317% 23.281%, 37.993% 23.168%, 38.670% 23.168%,
    39.346% 23.112%, 40.023% 23.168%, 40.699% 23.168%, 41.375% 23.281%, 42.052% 23.393%,
    42.728% 23.506%, 43.405% 23.732%, 44.081% 23.393%, 44.758% 23.112%, 45.434% 22.943%,
    46.110% 22.830%, 46.787% 22.717%, 47.463% 22.604%, 48.140% 22.492%, 48.816% 22.322%,
    49.493% 22.153%, 50.056% 21.984%;
  --right-crown:
    50.169% 22.041%, 50.846% 22.322%, 51.522% 22.492%, 52.198% 22.604%, 52.875% 22.717%,
    53.551% 22.830%, 54.228% 22.943%, 54.904% 23.168%, 55.581% 23.393%, 56.257% 23.732%,
    56.370% 23.732%, 56.933% 23.563%, 57.610% 23.393%, 58.286% 23.281%, 58.963% 23.224%,
    59.639% 23.168%, 60.316% 23.168%, 60.992% 23.168%, 61.669% 23.168%, 62.345% 23.224%,
    63.021% 23.337%, 63.698% 23.506%, 64.374% 23.732%, 65.051% 24.014%, 65.727% 24.408%,
    65.840% 24.408%, 66.404% 24.295%, 67.080% 24.183%, 67.756% 24.070%, 68.433% 24.014%,
    69.109% 24.014%, 69.786% 24.014%, 70.462% 24.070%, 71.139% 24.183%, 71.815% 24.295%,
    72.492% 24.408%, 73.168% 24.634%, 73.844% 24.915%, 74.521% 25.310%, 75.197% 25.874%,
    75.648% 26.099%, 75.874% 26.099%, 76.550% 26.043%, 77.227% 26.099%, 77.903% 26.156%,
    78.579% 26.268%, 79.256% 26.381%, 79.932% 26.607%, 80.609% 26.832%, 81.285% 27.114%,
    81.962% 27.508%, 82.638% 28.185%, 82.864% 28.523%;
  --frame-cutout:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,
    var(--left-foot),var(--left-crown),var(--right-crown),var(--right-foot),var(--left-foot));
  --leaf-left:polygon(var(--left-foot),var(--left-crown),var(--seam-foot));
  --leaf-right:polygon(var(--seam-foot),var(--seam-crown),var(--right-crown),var(--right-foot));
}
