:root { color-scheme: dark; --night: #082849; --gold: #e7c986; --paper: #faf6ee; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--paper); font: 16px/1.5 Georgia, "Times New Roman", serif; }
.welcome { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 34px 22px; overflow: clip; perspective: 1600px; background: radial-gradient(ellipse at center, #fffdf8, #e7d7b7); }
.welcome-door { position: absolute; inset-block: 0; width: 50%; z-index: -1; backface-visibility: hidden; transition: transform 950ms cubic-bezier(.65,0,.25,1), opacity 950ms ease; }
.door-left { left: 0; transform-origin: left center; border-right: 1px solid #d2b57c22; background: radial-gradient(ellipse at 100% 40%, #173d59, #082849 60%, #041a31); }
.door-right { right: 0; transform-origin: right center; background: radial-gradient(ellipse at 0 40%, #173d59, #082849 60%, #041a31); }
.welcome-door::after { content: ""; position: absolute; inset: 18px; border: 1px solid #d2b57c26; }
.welcome-card { position: relative; width: min(100%, 530px); padding: 54px 28px 34px; border: 1px solid #dfc488a3; border-radius: 265px 265px 8px 8px; box-shadow: 0 0 0 8px #d2b57c08, 0 25px 90px #00142d59; text-align: center; transition: opacity 550ms ease, transform 900ms cubic-bezier(.65,0,.25,1); }
.welcome-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid #dfc48840; border-radius: inherit; pointer-events: none; }
.welcome-content { position: relative; animation: welcome-arrival 1100ms ease both; }
.welcome-monogram { display: block; width: 126px; height: auto; margin: 0 auto 22px; filter: drop-shadow(0 5px 24px #e8c27624); }
.welcome-kicker { margin: 0 0 18px; font: 10px/1.5 Arial, sans-serif; letter-spacing: .25em; text-transform: uppercase; color: #ecdbb4; }
h1 { margin: 0; font-weight: normal; text-transform: uppercase; }
h1 span { display: block; font-size: clamp(25px, 5vw, 32px); line-height: 1.2; letter-spacing: .16em; color: var(--gold); }
h1 strong { display: block; margin-top: 6px; font-size: clamp(66px, 13vw, 86px); font-weight: normal; line-height: 1.14; letter-spacing: .11em; padding-left: .11em; }
.welcome-ornament { display: flex; align-items: center; gap: 12px; width: 170px; margin: 22px auto; color: var(--gold); font-size: 14px; }
.welcome-ornament::before, .welcome-ornament::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #dfc488); }
.welcome-ornament::after { transform: rotate(180deg); }
.welcome-date { margin: 0; font-size: clamp(17px, 4vw, 21px); letter-spacing: .025em; }
.welcome-open { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 56px; margin-top: 30px; padding: 13px 25px; border: 1px solid #f0d69a; border-radius: 3px; color: #092542; background: linear-gradient(115deg, #e3c581, #f6e4b6 50%, #cfaa5e); box-shadow: 0 7px 26px #00000026; font-size: 17px; text-decoration: none; touch-action: manipulation; transition: transform 180ms ease, box-shadow 180ms ease; }
.welcome-open svg { width: 22px; height: 22px; flex: 0 0 22px; }
.welcome-open:hover { transform: translateY(-2px); box-shadow: 0 10px 30px #0000004d; }
.welcome-open:focus-visible { outline: 2px solid #fffaf0; outline-offset: 6px; }
.welcome-open[aria-busy="true"] { cursor: progress; }
.welcome-note { margin: 22px 0 0; color: #d8d5cd; font-size: 14px; font-style: italic; }
.welcome-stars { position: absolute; inset: 0; pointer-events: none; transition: opacity 400ms ease; }
.welcome-stars i { position: absolute; width: 48px; height: 48px; background: radial-gradient(ellipse, #ecd6a16b, transparent 70%); }
.welcome-stars i::before, .welcome-stars i::after { content: ""; position: absolute; background: linear-gradient(transparent, #ebce8c, transparent); }
.welcome-stars i::before { width: 1px; height: 100%; left: 50%; }
.welcome-stars i::after { height: 1px; width: 100%; top: 50%; background: linear-gradient(90deg, transparent, #ebce8c, transparent); }
.welcome-stars i:nth-child(1) { top: 16%; left: 12%; }
.welcome-stars i:nth-child(2) { top: 24%; right: 10%; width: 30px; height: 30px; }
.welcome-stars i:nth-child(3) { bottom: 17%; right: 14%; }
.welcome-stars i:nth-child(4) { bottom: 28%; left: 9%; width: 26px; height: 26px; }
.welcome.is-opening .door-left { transform: rotateY(-100deg); opacity: 0; }
.welcome.is-opening .door-right { transform: rotateY(100deg); opacity: 0; }
.welcome.is-opening .welcome-card { transform: translateZ(120px) scale(1.06); opacity: 0; }
.welcome.is-opening .welcome-stars { opacity: 0; }
@keyframes welcome-arrival { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .welcome { padding: 26px 18px; }
  .welcome-card { padding: 46px 17px 28px; }
  .welcome-monogram { width: 108px; margin-bottom: 18px; }
  .welcome-kicker { letter-spacing: .15em; font-size: 9px; }
  .welcome-open { width: 100%; max-width: 270px; padding-inline: 16px; gap: 14px; }
  .welcome-stars i:nth-child(1) { left: 2%; top: 10%; }
  .welcome-stars i:nth-child(2) { right: 1%; top: 19%; }
  .welcome-stars i:nth-child(3), .welcome-stars i:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
