/* "Alee fermecată" (Components/Heroes/ForestHero.razor), over site.css and the theme: the top of the invitation as a forest
   alley at dusk, chandeliers and strings of lights in the trees, the words on a veil of dusk. The sky takes the palette's
   ink, the light its gold. The lights come on and blink, the scene slowly grows (the guest walking in); nothing pans or
   sways. The rest of the page stays the palette's own. */
main[data-layout=forest]{position:relative;--dusk:color-mix(in srgb,var(--ink) 38%,#141a33);--dusk-low:color-mix(in srgb,var(--gold) 30%,#c98b5e);
  --forest-light:#ffe3a3;--forest-tree:color-mix(in srgb,var(--ink) 18%,#0c1012);--forest-text:#f6efe2;--forest-soft:color-mix(in srgb,#f6efe2 74%,transparent);
  --forest-gold:color-mix(in srgb,var(--gold) 40%,#f1d38e)}
.forest-hero{position:relative;overflow:hidden;isolation:isolate;min-height:min(100svh,1000px);display:grid;place-items:center;padding:110px 20px 96px;
  background:var(--dusk);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.forest-scene{position:absolute;z-index:-1;inset:0;width:100%;height:100%;transform-origin:50% 60%;animation:forest-walks 14s ease-out both}
@keyframes forest-walks{from{transform:none}to{transform:scale(1.07)}}
.forest-sky-top{stop-color:var(--dusk)}
.forest-sky-low{stop-color:color-mix(in srgb,var(--dusk) 35%,var(--dusk-low))}
.forest-glow-in{stop-color:var(--forest-light);stop-opacity:.9}
.forest-glow-mid{stop-color:var(--dusk-low);stop-opacity:.45}
.forest-glow-out{stop-color:var(--dusk);stop-opacity:0}
.forest-path{fill:color-mix(in srgb,var(--forest-light) 22%,var(--forest-tree));opacity:.75}
.forest-trunk,.forest-canopy{fill:var(--forest-tree)}
.forest-leaves{fill:var(--forest-tree)}
.forest-wire{fill:none;stroke:color-mix(in srgb,var(--forest-tree) 60%,var(--forest-gold));stroke-width:1.2}
.forest-bulb{fill:var(--forest-light);filter:drop-shadow(0 0 4px var(--forest-light)) drop-shadow(0 0 10px color-mix(in srgb,var(--forest-light) 70%,transparent));
  animation:bulb-lights .6s calc(.6s + var(--i) * .12s) ease-out both,bulb-blinks 2.8s calc(3.8s + var(--i) * .37s) ease-in-out infinite alternate}
@keyframes bulb-lights{from{opacity:.08}to{opacity:1}}
@keyframes bulb-blinks{from{opacity:1}to{opacity:.55}}
.forest-metal{fill:none;stroke:var(--forest-gold);stroke-width:2.2;stroke-linecap:round}
.forest-crystal{fill:color-mix(in srgb,#fff 70%,var(--forest-light));opacity:.85}
.forest-candles circle{fill:#fff6dc;filter:drop-shadow(0 0 4px var(--forest-light)) drop-shadow(0 0 9px var(--forest-light))}
.forest-halo-in{stop-color:var(--forest-light);stop-opacity:.42}
.forest-halo-out{stop-color:var(--forest-light);stop-opacity:0}
.forest-halo{fill:url(#forest-halo)}
.forest-chandelier{animation:chandelier-glows 4s 2s ease-in-out infinite alternate}
.forest-chandelier-2{animation-delay:3s}
@keyframes chandelier-glows{from{opacity:1}to{opacity:.8}}
.forest-firefly{fill:#fff1b8;filter:drop-shadow(0 0 5px #ffe58a);opacity:0;animation:firefly-blinks 3.4s calc(var(--i) * .41s) ease-in-out infinite}
@keyframes firefly-blinks{0%,100%{opacity:0}45%,60%{opacity:.9}}

/* — the words on a veil of dusk — */
.forest-card{position:relative;width:min(640px,100%);padding:34px 34px 30px;border-radius:200px 200px 18px 18px;text-align:center;color:var(--forest-text);
  background:linear-gradient(180deg,color-mix(in srgb,var(--dusk) 18%,transparent),color-mix(in srgb,var(--forest-tree) 48%,transparent) 40%,color-mix(in srgb,var(--forest-tree) 58%,transparent));
  border:1px solid color-mix(in srgb,var(--forest-gold) 45%,transparent);box-shadow:0 30px 80px rgb(0 0 0 / .35),inset 0 0 0 6px color-mix(in srgb,var(--forest-tree) 30%,transparent);
  -webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px)}
.forest-card :is(h1,.hero-story,.personal-greeting){text-shadow:0 1px 12px rgb(0 0 0 / .45)}
.forest-hero .hero-content{padding:44px 0 6px;max-width:none}
.forest-hero :is(.eyebrow,.personal-greeting,.ornament){color:var(--forest-gold)}
.forest-hero :is(.invite-line,.family-text,.tiny-note){color:var(--forest-soft)}
.forest-hero .hero-story{color:var(--forest-text)}
.forest-hero h1{color:#fff;text-shadow:0 0 22px color-mix(in srgb,var(--forest-light) 50%,transparent)}
.forest-hero .ornament:before,.forest-hero .ornament:after{background:color-mix(in srgb,var(--forest-gold) 55%,transparent)}
.forest-hero .event-date span{color:var(--forest-soft)}
.forest-hero .event-date strong{color:var(--forest-gold)}
.forest-hero .primary-button{background:var(--forest-gold);border-color:var(--forest-gold);color:color-mix(in srgb,var(--ink) 80%,#000);box-shadow:0 0 30px color-mix(in srgb,var(--forest-light) 40%,transparent)}
.forest-hero .primary-button:hover{background:#fff;border-color:#fff}
.forest-hero .primary-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
main[data-layout=forest] .invite-nav{position:absolute;left:0;right:0;z-index:5}
main[data-layout=forest] .invite-nav a{color:var(--forest-text)}
main[data-layout=forest] .invite-nav .mini-monogram{color:var(--forest-gold)}
main[data-layout=forest] .invite-nav>div a:last-child{border-bottom-color:var(--forest-gold)}
main[data-layout=forest] .invite-nav span{color:var(--forest-gold)}

@media (max-width:700px){
  /* On a phone the alley shows above the card, its chandeliers and lights first. */
  .forest-hero{padding:min(64vw,300px) 12px 56px;min-height:auto;place-items:end center}
  .forest-scene{height:min(118vw,560px);bottom:auto}
  .forest-card{padding:26px 16px 22px;border-radius:150px 150px 14px 14px}
  .forest-hero .hero-content{padding-top:36px}
}
@media (prefers-reduced-motion:reduce){.forest-hero *{animation:none!important}.forest-firefly{opacity:.7}}
@media print{
  .forest-hero{min-height:296mm;padding:20mm 12mm}
  .forest-hero *{animation:none!important}
  .forest-firefly{opacity:.7}
  .forest-card{-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
}
