@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;700;900&family=Caveat:wght@500;600;700&family=Caveat+Brush&display=swap');

:root {
  --coral: #FF7A85;
  --peach: #FFB27A;
  --yellow: #FFD95C;
  --lime: #C6E86B;
  --mint: #8FE3C4;
  --cyan: #7FD8F0;
  --blue: #8AB6F9;
  --lavender: #B9A6F5;
  --purple: #C78BE8;

  --ink: #12141C;
  --paper: #FBF7F0;
  --paper-solid: #FFFFFF;
  --accent: #8A4FD6;

  --border: rgba(18, 20, 28, .1);
  --border-soft: rgba(18, 20, 28, .12);
  --border-input: rgba(18, 20, 28, .22);
  --border-dashed: rgba(18, 20, 28, .3);

  --card-bg: rgba(255, 255, 255, .62);
  --card-bg-active: rgba(255, 255, 255, .92);
  --input-bg: rgba(255, 255, 255, .8);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 12px 26px -22px rgba(18, 20, 28, .6);

  --font-display: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-hand-brush: 'Caveat Brush', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--yellow); }

[hidden] { display: none !important; }

/* ---------- Global keyframes ---------- */
@keyframes hueshift {
  0% { filter: hue-rotate(-30deg) saturate(1); }
  33% { filter: hue-rotate(40deg) saturate(1.15); }
  66% { filter: hue-rotate(120deg) saturate(1.05); }
  100% { filter: hue-rotate(-30deg) saturate(1); }
}
@keyframes bounceX { from { transform: translateX(-14vw); } to { transform: translateX(52vw); } }
@keyframes bounceY { from { transform: translateY(-10vh); } to { transform: translateY(46vh); } }
@keyframes bounceX2 { from { transform: translateX(44vw); } to { transform: translateX(-10vw); } }
@keyframes bounceY2 { from { transform: translateY(38vh); } to { transform: translateY(-8vh); } }
@keyframes wob {
  0% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
  100% { transform: rotate(-1.4deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fall {
  0% { transform: translateY(-12vh) rotate(0deg); }
  100% { transform: translateY(112vh) rotate(600deg); }
}
@keyframes pop {
  0% { transform: scale(.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Global animated background (all routes) ---------- */
.bg-anim {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(140deg, #FFD9E6 0%, #FFE9C9 30%, #D6F0E4 62%, #D9E4FC 100%);
  animation: hueshift 26s ease-in-out infinite;
}
.bg-anim .blob-x { position: absolute; }
.bg-anim .blob-y { width: 100%; height: 100%; }
.bg-anim .blob { width: 100%; height: 100%; border-radius: 50%; mix-blend-mode: multiply; }
.bg-anim .blob-1-x { top: 0; left: 0; width: 74vw; height: 74vw; animation: bounceX 23s ease-in-out infinite alternate; }
.bg-anim .blob-1-y { animation: bounceY 17s ease-in-out infinite alternate; }
.bg-anim .blob-1 { background: radial-gradient(circle at 50% 50%, #FFAFC2 0%, #FFD79B 55%, rgba(255,215,155,0) 74%); filter: blur(30px); opacity: .75; }
.bg-anim .blob-2-x { top: 0; right: 0; width: 66vw; height: 66vw; animation: bounceX2 31s ease-in-out infinite alternate; }
.bg-anim .blob-2-y { animation: bounceY2 21s ease-in-out infinite alternate; }
.bg-anim .blob-2 { background: radial-gradient(circle at 50% 50%, #A8DEF5 0%, #C3B7F7 58%, rgba(195,183,247,0) 76%); filter: blur(34px); opacity: .7; }
.bg-anim .blob-3-x { bottom: -18vh; left: 6vw; width: 62vw; height: 62vw; animation: bounceX 37s ease-in-out infinite alternate-reverse; }
.bg-anim .blob-3-y { animation: bounceY2 27s ease-in-out infinite alternate; }
.bg-anim .blob-3 { background: radial-gradient(circle at 50% 50%, #C8EFA8 0%, #9FE3D6 60%, rgba(159,227,214,0) 78%); filter: blur(36px); opacity: .62; }
.bg-anim .veil { position: absolute; inset: 0; background: rgba(251, 247, 240, .52); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 240, .66);
  border-bottom: 1px solid var(--border);
}

.site-header .header-row {
  max-width: 1220px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-word {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .01em;
}
.brand-dots {
  display: flex;
  gap: 3px;
  padding-bottom: 4px;
}
.brand-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.brand-dots span:nth-child(1) { background: var(--coral); }
.brand-dots span:nth-child(2) { background: var(--yellow); }
.brand-dots span:nth-child(3) { background: var(--mint); }
.brand-dots span:nth-child(4) { background: var(--lavender); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
  flex-wrap: wrap;
}

.nav-link {
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .22s ease, color .22s ease;
}
.nav-link.hue-schedule:hover { border-bottom-color: var(--coral); color: var(--ink); }
.nav-link.hue-missions:hover { border-bottom-color: var(--mint); color: var(--ink); }

.nav-rsvp {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(18, 20, 28, .5);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border-soft);
  padding: 30px 28px 46px;
}
.site-footer .footer-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .65;
}
.site-footer .footer-hint {
  font-family: var(--font-hand);
  font-size: 20px;
  opacity: .9;
}

/* ---------- Buttons ---------- */
.dark-button {
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .09em;
  box-shadow: 0 9px 0 -4px var(--coral);
  transition: box-shadow .22s ease, transform .22s ease, background .22s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dark-button:hover { box-shadow: 0 9px 0 -4px var(--mint); transform: translateY(-2px); }
.dark-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.outline-button {
  border: 1.5px solid rgba(18, 20, 28, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  color: var(--ink);
  padding: 13px 26px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .09em;
  transition: border-color .22s ease, background .22s ease;
}
.outline-button:hover { border-color: var(--ink); background: var(--yellow); }

.full-button { width: 100%; justify-content: center; }

/* ---------- Rainbow divider ---------- */
.rainbow-divider {
  height: 9px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--coral) 0 11.11%, var(--peach) 11.11% 22.22%, var(--yellow) 22.22% 33.33%,
    var(--lime) 33.33% 44.44%, var(--mint) 44.44% 55.55%, var(--cyan) 55.55% 66.66%,
    var(--blue) 66.66% 77.77%, var(--lavender) 77.77% 88.88%, var(--purple) 88.88% 100%);
  margin: 0 0 40px;
}

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label,
.field > span:first-child {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field small { font-weight: 400; opacity: .5; margin-left: 4px; }

.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-input);
  background: var(--input-bg);
  font-size: 15.5px;
  outline: none;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; }

.form-message {
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 10px;
}
.form-message.success { background: rgba(143, 227, 196, .35); color: #1f5c46; }
.form-message.error { background: rgba(255, 122, 133, .2); color: #99202b; }

/* ---------- Shared layout ---------- */
.hue-kicker {
  font-family: var(--font-hand);
  font-size: 27px;
  margin: 0 0 4px;
  color: var(--accent);
  transform: rotate(-1.5deg);
  display: inline-block;
}
