/* Linimasa: one heading face, shared with the wedding invitation. Body and controls stay native. */
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: block; src: url('/public/fonts/great-vibes-latin.woff2') format('woff2'); }
:root {
  --paper: rgb(255 255 255 / .08);
  --paper-solid: #1c1c1e;
  --ink: #fff;
  --graphite: rgb(235 235 245 / .62);
  --tertiary: rgb(235 235 245 / .32);
  --hairline: rgb(255 255 255 / .12);
  --fill: rgb(118 118 128 / .26);
  --glass: blur(30px) saturate(170%);
  /* Liquid glass, curated for a dark camera: a tinted body that blurs and brightens what is behind it,
     a lit top rim and a faint lower rim where light would bend through the edge, no outer glow. */
  /* Resting glass: tinted enough that white text stays readable over a bright photo */
  --lg: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / .06) 48%, rgb(255 255 255 / .03) 52%, rgb(255 255 255 / .1)), rgb(26 26 30 / .52);
  --lg-blur: blur(16px) saturate(190%) brightness(1.08);
  --lg-rim: inset 0 1px .5px rgb(255 255 255 / .42), inset 0 -1px .5px rgb(255 255 255 / .12), inset 0 0 0 .5px rgb(255 255 255 / .14);
  /* A selected segment inside a glass pill: a brighter drop of the same material */
  /* Panels (drawers, sheets, menus) are the same glass, darker so text on them stays readable */
  --lg-panel: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .04) 120px, rgb(255 255 255 / .02)), rgb(22 22 26 / .66);
  --lg-panel-blur: blur(32px) saturate(180%) brightness(1.05);
  --lg-panel-rim: inset 0 1px .5px rgb(255 255 255 / .38), inset 0 0 0 .5px rgb(255 255 255 / .12);
  /* Active and primary: the same glass, a brighter drop, white text at weight 600. Never yellow, never solid white. */
  --lg-drop: linear-gradient(180deg, rgb(255 255 255 / .36), rgb(255 255 255 / .16) 55%, rgb(255 255 255 / .24)), rgb(64 64 72 / .6);
  --gold: #f5b800;
  --danger: #ff453a;
  --ok: #30d158;
  --heading: 'Great Vibes', var(--serif);
  --script: var(--heading);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --radius-s: 10px; --radius-m: 14px; --radius-l: 22px; --pill: 980px;
  --shadow-float: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .12);
  --dur-1: 100ms; --dur-2: 150ms; --dur-3: 200ms; --dur-4: 300ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
  font: 17px/1.4 var(--sans);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; font-style: normal; line-height: 1.15; letter-spacing: 0; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--ink); }
button, input, a, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; }
button:disabled { opacity: .4; cursor: default; }
/* Focus rings only for keyboard users: touch and scripted focus (dialogs restoring focus) stay clean. */
:focus, :focus-visible { outline: none; }
html.keyboard :focus-visible { outline: 2px solid rgb(255 255 255 / .9); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; pointer-events: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; }

/* Press feedback: every tappable answers on touch-down */
.press { transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out); }
.press:active:not(:disabled) { transform: scale(.97); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 22px; border-radius: var(--pill); font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary, .btn-light { background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); color: #fff; }
.btn-secondary { background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); color: var(--ink); }
.btn-plain { min-height: 44px; width: auto; padding: 0 4px; background: none; color: var(--ink); font-weight: 500; }
.btn-danger { background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); color: var(--danger); }
.btn[aria-busy=true] { color: transparent; pointer-events: none; position: relative; }
.btn[aria-busy=true]::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgb(255 255 255 / .2); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Ambient: the event's own photo, blurred and dimmed, behind every page (as in Apple Invites) */
.ambient { position: fixed; inset: -10%; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, #2b2622 0%, #000 70%) center / cover no-repeat; transform: scale(1.15); filter: blur(60px) saturate(1.5) brightness(.5); opacity: 0; transition: opacity 600ms var(--ease-out); }
.ambient.ready { opacity: 1; }
body.camera-mode .ambient { display: none; }

/* Floating glass tab bar with a sprung selection pill */
.tabbar { position: fixed; z-index: 20; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 76px); padding: 5px; border-radius: var(--pill); background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim), 0 12px 32px rgb(0 0 0 / .4); transform: translateX(-50%); animation: tabbar-in var(--dur-4) var(--ease-out); }
@keyframes tabbar-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.tab { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 0 5px; border-radius: var(--pill); color: var(--graphite); font-size: 11px; font-weight: 600; transition: color var(--dur-2) var(--ease-out); }
.tab .icon { width: 25px; height: 25px; }
.tab .icon + .icon, .tab[aria-current=page] .icon:first-of-type { display: none; }
.tab[aria-current=page] .icon + .icon { display: block; }
.tab[aria-current=page] { color: #fff; }
.tab-indicator { position: absolute; top: 5px; left: 5px; width: 76px; height: 52px; border-radius: var(--pill); background: var(--lg-drop); box-shadow: var(--lg-rim); }

/* Toast: drops in from the top, leaves upward */
.toast { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top) + 12px); left: 50%; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--pill); background: var(--lg); color: #fff; backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); font-size: 15px; font-weight: 500; line-height: 1.35; text-align: center; box-shadow: var(--lg-rim), 0 8px 28px rgb(0 0 0 / .3); transform: translate(-50%, 0); animation: toast-in var(--dur-4) var(--ease-out); }
.toast.leaving { animation: toast-out var(--dur-2) var(--ease-in) forwards; }
body.camera-mode .toast { top: auto; bottom: calc(env(safe-area-inset-bottom) + 220px); }
.toast:has(a) { border-radius: 18px; }
.toast a { display: block; min-height: 44px; padding-top: 10px; color: var(--gold); font-weight: 600; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, -8px); } }

/* Sheets (dialogs) rise from the bottom over a dimmed page */
dialog { width: min(100%, 560px); max-width: 100%; max-height: calc(100svh - env(safe-area-inset-top) - 16px); margin: auto auto 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--radius-l) var(--radius-l) 0 0; background: var(--lg-panel); backdrop-filter: var(--lg-panel-blur); -webkit-backdrop-filter: var(--lg-panel-blur); box-shadow: var(--lg-panel-rim); color: #f5f5f7; overscroll-behavior: contain; }
dialog[open] { animation: sheet-in var(--dur-4) var(--ease-sheet); }
dialog::backdrop { background: rgb(0 0 0 / .45); animation: fade-in var(--dur-4) var(--ease-out); }
@keyframes sheet-in { from { transform: translateY(32px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.close-dialog { background: var(--lg); backdrop-filter: var(--lg-blur); -webkit-backdrop-filter: var(--lg-blur); box-shadow: var(--lg-rim); flex-shrink: 0; }
dialog > p, .dialog-copy { color: rgb(235 235 245 / .6); font-size: 15px; line-height: 1.45; }

/* Page transitions: iOS-style push and pop between screens */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-4); animation-timing-function: var(--ease-out); }
html.nav-forward::view-transition-old(root) { animation-name: page-out-left; }
html.nav-forward::view-transition-new(root) { animation-name: page-in-right; }
html.nav-back::view-transition-old(root) { animation-name: page-out-right; }
html.nav-back::view-transition-new(root) { animation-name: page-in-left; }
@keyframes page-in-right { from { transform: translateX(28%); opacity: 0; } }
@keyframes page-out-left { to { transform: translateX(-12%); opacity: 0; } }
@keyframes page-in-left { from { transform: translateX(-12%); opacity: 0; } }
@keyframes page-out-right { to { transform: translateX(28%); opacity: 0; } }
.page-enter { animation: page-in-right var(--dur-4) var(--ease-out); }
.page-enter-back { animation: page-in-left var(--dur-4) var(--ease-out); }
.page-enter-fade { animation: fade-in var(--dur-3) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .btn[aria-busy=true]::after { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --lg: #2c2c2e; --lg-panel: #1c1c1e; --lg-drop: #48484a; --lg-blur: none; --lg-panel-blur: none; }
}
