/* Åbningsevent søndag 1. november 2026 kl. 14–17 (Cilles invitation, 24/10).
   Hører sammen med aabningsevent.js og aabningsevent.ics. Kan fjernes efter eventet. */

/* Knappen øverst på forsiden */
.f8ev-chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: rgba(221, 217, 206, .94); color: var(--espresso); font-family: var(--label); font-weight: 600; font-size: 11px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; text-align: left; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: background .2s; }
.f8ev-chip:hover { background: var(--blue); }
.f8ev-chip b { font-weight: 700; }
.f8ev-chip .ic { flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--espresso); color: var(--paleoak); display: grid; place-items: center; }
.f8ev-chip .ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 420px) { .f8ev-chip { font-size: 10px; letter-spacing: .1em; padding-right: 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .f8ev-chip { animation: f8ev-chip-in .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .f8ev-chip .ic { animation: f8ev-pulse 2.6s 1.2s ease-out infinite; }
  @keyframes f8ev-chip-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes f8ev-pulse { 0% { box-shadow: 0 0 0 0 rgba(146, 177, 205, .75); } 70%, 100% { box-shadow: 0 0 0 10px rgba(146, 177, 205, 0); } }
}

/* Invitationen */
html.f8ev-lock, html.f8ev-lock body { overflow: hidden; }
.f8ev { --c: min(82vw, 370px); --e: calc(var(--c) * 1.15); position: fixed; inset: 0; z-index: 100; display: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: opacity .25s; }
@supports (height: 100svh) { .f8ev { --c: min(82vw, 370px, max(280px, calc((100svh - 190px) / 1.3))); } }
.f8ev.is-open { display: block; }
.f8ev.is-closing { opacity: 0; }
.f8ev-backdrop { position: fixed; inset: 0; background: rgba(34, 20, 11, .8); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .f8ev-backdrop { background: rgba(34, 20, 11, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.f8ev-scroll { position: relative; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: max(72px, calc(env(safe-area-inset-top, 0px) + 64px)) 16px max(36px, calc(env(safe-area-inset-bottom, 0px) + 24px)); pointer-events: none; }
.f8ev-stage { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 30px; }
@media (min-width: 880px) { .f8ev-stage { display: grid; grid-template-columns: var(--c) minmax(0, 390px); column-gap: clamp(44px, 5vw, 84px); align-items: center; } }

.f8ev-close { position: fixed; z-index: 3; top: max(16px, calc(env(safe-area-inset-top, 0px) + 10px)); right: max(16px, calc(env(safe-area-inset-right, 0px) + 10px)); width: 46px; height: 46px; border-radius: 999px; border: 1.5px solid rgba(221, 217, 206, .7); background: rgba(34, 20, 11, .55); color: var(--paleoak); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.f8ev-close:hover { background: var(--paleoak); color: var(--espresso); }
.f8ev-close:focus-visible { outline: 2px solid var(--paleoak); outline-offset: 3px; }
.f8ev-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.f8ev-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.f8ev-invite { position: relative; width: var(--c); }

/* Kortet – samme opbygning og rækkefølge som Cilles invitation */
.f8ev-card { position: relative; z-index: 2; width: 100%; overflow: hidden; border-radius: 9px; background: linear-gradient(180deg, #F7F5F0 0%, #EFEBE3 100%); color: var(--espresso); text-align: center; box-shadow: 0 26px 60px rgba(0, 0, 0, .38), 0 2px 6px rgba(0, 0, 0, .14); }
.f8ev-card-in { padding: calc(var(--c) * .095) calc(var(--c) * .055) calc(var(--c) * .075); display: flex; flex-direction: column; align-items: center; }
.f8ev-card p { margin: 0; max-width: none; text-transform: uppercase; }
.f8ev-kicker { font-family: var(--label); font-weight: 700; font-size: max(10px, calc(var(--c) * .03)); letter-spacing: .3em; line-height: 1.3; padding-left: .3em; }
.f8ev .f8ev-title { margin: calc(var(--c) * .022) 0 0; font-family: var(--label); font-weight: 700; font-size: calc(var(--c) * .086); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.f8ev-rule { display: block; width: calc(var(--c) * .14); height: 2px; border-radius: 2px; background: var(--blue); margin: calc(var(--c) * .042) 0; }
.f8ev-when { font-family: var(--body); font-weight: 400; font-size: calc(var(--c) * .054); line-height: 1.2; letter-spacing: .03em; }
.f8ev-text { margin-top: calc(var(--c) * .06) !important; font-family: var(--body); font-weight: 400; font-size: max(11.5px, calc(var(--c) * .035)); line-height: 1.5; letter-spacing: .05em; color: var(--brown); }
.f8ev-treat { margin-top: calc(var(--c) * .038) !important; font-family: var(--body); font-weight: 500; font-size: max(12.5px, calc(var(--c) * .039)); line-height: 1.38; letter-spacing: .035em; }
.f8ev-treat + .f8ev-rule { margin-bottom: calc(var(--c) * .036); }
.f8ev-where { font-family: var(--label); font-weight: 700; font-size: max(10px, calc(var(--c) * .029)); line-height: 1.65; letter-spacing: .22em; padding-left: .22em; }
.f8ev-logo { width: calc(var(--c) * .31); height: auto; margin-top: calc(var(--c) * .045); }

/* Det sker på dagen (fra Instagram-opslaget) */
.f8ev-info { width: var(--c); color: var(--paleoak); }
@media (min-width: 880px) { .f8ev-info { width: auto; } }
.f8ev-info p { margin: 0; }
.f8ev-eyebrow { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px !important; }
.f8ev-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(221, 217, 206, .22); }
.f8ev-list li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid rgba(221, 217, 206, .22); font-size: 16px; line-height: 1.45; }
.f8ev-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 18px; height: 1px; background: var(--blue); }
.f8ev-list b { font-weight: 500; }
.f8ev-list small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; opacity: .85; }
.f8ev-info a:not(.pill) { color: var(--blue); text-decoration: none; }
.f8ev-info a:not(.pill):hover { text-decoration: underline; text-underline-offset: 3px; }
.f8ev-note { margin-top: 16px !important; font-size: 15px; line-height: 1.55; opacity: .85; }
.f8ev-sign { margin-top: 14px !important; font-family: var(--label); font-weight: 600; font-size: 11px; line-height: 1.7; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
@media (max-width: 440px) { .f8ev-list li { font-size: 15px; } }
.f8ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.f8ev-actions .pill { color: var(--paleoak); }
.f8ev-actions .pill:hover { background: var(--paleoak); color: var(--espresso); }
.f8ev-actions .pill.solid { background: var(--paleoak); color: var(--espresso); border-color: var(--paleoak); }
.f8ev-actions .pill.solid:hover { background: var(--blue); border-color: var(--blue); }
@media (max-width: 440px) { .f8ev-actions { gap: 10px; } .f8ev-actions .pill { padding: 10px 16px 8px; letter-spacing: .14em; } }

/* Kuverten (vises kun under animationen) */
.f8ev-post, .f8ev-env { display: none; }
.f8ev--anim .f8ev-invite { height: var(--h); }
.f8ev--anim .f8ev-card { position: absolute; top: 0; left: 0; height: var(--h); }
.f8ev--anim .f8ev-post { display: block; position: absolute; left: 0; right: 0; top: calc(var(--et) - 46px); margin: 0; max-width: none; text-align: center; font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--paleoak); }
.f8ev--anim .f8ev-env { display: block; position: absolute; top: var(--et); left: calc((var(--c) - var(--e)) / 2); width: var(--e); height: calc(var(--e) * .635); }
.f8ev-env svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.f8ev-back { z-index: 1; border-radius: 7px; background: linear-gradient(180deg, #CFC5B4 0%, #DED7CA 55%, #E3DDD1 100%); box-shadow: 0 22px 46px rgba(0, 0, 0, .4), 0 2px 5px rgba(0, 0, 0, .15); }
.f8ev-flap { transform-origin: 50% 0; }
.f8ev-flap-out { z-index: 4; }
.f8ev-flap-in { z-index: 1; opacity: 0; }
.f8ev-front { z-index: 3; }
.f8ev-front img { position: absolute; left: 50%; top: 76%; width: 25%; height: auto; transform: translate(-50%, -50%); }
