/* The photograph stays until the visitor chooses to open the invitation. */
.intro-scene {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #ad8053;
  pointer-events: auto;
  contain: strict;
}
.intro-scene picture, .intro-scene img { display: block; width: 100%; height: 100%; }
.intro-scene img { object-fit: cover; object-position: center; }
.paper, body .print-invite .card {
  background-color: #f4eedf;
  background-image: url('assets/canson-paper.png');
  background-size: 640px 640px;
  background-repeat: repeat;
}
body .print-invite .card { background-size: 720px 720px; }
.class-finale { padding-top: 74px; padding-bottom: 90px; text-align: center; border-top: 1px solid #a58e5b40; }
.class-finale .class-portrait { max-width: 1160px; }
.farewell-intro { font: 400 clamp(1.9rem, 3.4vw, 3rem)/1.25 var(--serif); margin: 0 auto 42px; max-width: 850px; }
.farewell-ending { font: italic 400 clamp(2.1rem, 4.8vw, 4.4rem)/1.18 var(--serif); margin: 40px auto 0; color: #2c493f; text-wrap: balance; }
.class-finale .class-photo-foliage { width: 180px; top: -110px; left: -135px; }
.class-finale .class-photo-flowers { width: 220px; right: -135px; bottom: -42px; }
.committee-signature { margin-top: 34px; font: italic 1.35rem/1.5 var(--serif); }
.committee-signature span { font-style: normal; font-size: 1.7rem; }
body .art-seal.photographic-seal { filter: drop-shadow(0 2px 1px #4a3c2824); }
.icon-seal.photographic-seal { filter: drop-shadow(0 2px 1px #17271e26); }
@media (max-width: 650px) {
  .class-finale { padding: 58px 20px 65px; }
  .farewell-intro { margin-bottom: 30px; max-width: 330px; }
  .farewell-ending { margin-top: 30px; }
  .class-finale .class-photo-foliage { width: 100px; top: -62px; left: -78px; }
  .class-finale .class-photo-flowers { width: 130px; right: -88px; bottom: -30px; }
}

/* Keep date and time as distinct, unbreakable event lines. */
.invitation-date, .invitation-time { display: block; width: 100%; }
.invitation-time { white-space: nowrap; margin-top: 9px; }

/* Fit the class photograph and both farewell lines comfortably on desktop. */
.class-finale { height: auto; max-height: none; padding-bottom: max(100px, env(safe-area-inset-bottom)); }
.farewell-ending { padding: .08em .35em .2em; line-height: 1.3; overflow: visible; }
@media (min-width: 651px) {
  .class-finale { padding-top: 42px; }
  .class-finale .class-portrait { width: 100%; max-width: clamp(400px, calc((100svh - 420px) * 2.03125), 1160px); }
  .farewell-intro { margin-bottom: 26px; font-size: clamp(1.9rem, 3vw, 2.7rem); }
  .farewell-ending { margin-top: 26px; font-size: clamp(2.1rem, 4vw, 3.8rem); }
}

.site-header { flex-wrap: nowrap; gap: 16px; }
.restart-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 16px; border: 1px solid #7f897951; border-radius: 28px; background: transparent; color: var(--ink); font: 400 .85rem/1.3 var(--sans); white-space: nowrap; }
.restart-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.restart-button:hover { background: #2c493f0a; border-color: #2c493f80; }
@media (max-width: 650px) { .restart-button { padding: 9px 13px; font-size: .82rem; } }

html.intro-enabled { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.intro-action { position: absolute; z-index: 2; right: clamp(24px, 5vw, 100px); bottom: max(36px, env(safe-area-inset-bottom)); }
.intro-enter { min-height: 56px; padding: 15px 26px; border: 1px solid #bba16f; border-radius: 30px; background: #f8f3e8; color: #233e33; box-shadow: 0 6px 28px #30231342; font: 500 1rem/1.3 var(--sans); }
.intro-enter:hover { background: #fffaf0; box-shadow: 0 8px 30px #30231355; }
.intro-enter:focus-visible { outline: 3px solid #f8f3e8; outline-offset: 5px; }
@media (max-width: 650px) {
  .intro-action { left: 20px; right: 20px; bottom: max(26px, env(safe-area-inset-bottom)); display: flex; justify-content: center; }
  .intro-enter { font-size: 1rem; padding-inline: 25px; }
}
