/* =============================================================================
   Ανδρέας & Σταύρη — styles
   The look follows the printed invitation: thin geometric capitals for the
   names, the handwritten "και", tall serif numerals and fine vertical lines.
   ============================================================================= */

/* ------------------------------------------------------------------ Fonts -- */
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 200; font-display: swap;
  src: url('../fonts/murecho-greek-200-normal.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 200; font-display: swap;
  src: url('../fonts/murecho-latin-200-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/murecho-greek-300-normal.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/murecho-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/murecho-greek-400-normal.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/murecho-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/murecho-greek-500-normal.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Murecho'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/murecho-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Gilda Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/gilda-display-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ms Madi'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ms-madi-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ----------------------------------------------------------------- Tokens -- */
:root {
  --paper: #FBFAF8;        /* page — the invitation's white, a touch warmer */
  --white: #FFFFFF;
  --mist: #F2EDE8;         /* soft veil for the dreamy light */
  --mist-2: #E8E1DA;
  --ink: #2E2B29;          /* the invitation's charcoal */
  --stone: #67605A;        /* secondary text (≈ 6:1 on paper) */
  --pebble: #9B948D;       /* decorative only */
  --line: rgba(46, 43, 41, .14);
  --line-strong: rgba(46, 43, 41, .30);

  --font-sans: 'Murecho', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-num: 'Gilda Display', 'Murecho', Georgia, serif;
  --font-script: 'Ms Madi', 'Murecho', cursive;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5.5vw, 64px);
  --nav-h: 64px;
}

/* ------------------------------------------------------------------- Base -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
  color-scheme: only light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--mist-2); color: var(--ink); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
body.no-scroll { overflow: hidden; }

/* -------------------------------------------------------------- Preloader -- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.preloader__line {
  display: block; width: 1px; height: 64px; background: var(--ink);
  transform: scaleY(0); transform-origin: top;
  animation: drawY 1.4s var(--ease-out) .1s forwards;
}
.is-ready .preloader { opacity: 0; visibility: hidden; }
.no-js .preloader { display: none; }

/* -------------------------------------------------------------------- Nav -- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-solid, .menu-open .nav {
  background: rgba(251, 250, 248, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 200; font-size: 1.2rem; letter-spacing: .1em; line-height: 1;
  text-decoration: none;
}
.nav__brand i { display: block; width: 1px; height: 1.15em; background: var(--ink); opacity: .55; }

.nav__links { display: none; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav__links a {
  position: relative; padding: .35rem 0;
  font-size: .92rem; font-weight: 300; color: var(--stone); text-decoration: none;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: .45rem .66rem; border-radius: 999px;
  font-size: .74rem; font-weight: 400; letter-spacing: .06em; line-height: 1; color: var(--stone);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.menu-btn {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 7px;
}
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--ink); transition: transform .5s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.6rem;
  padding: var(--nav-h) var(--gutter) 3rem;
  background: var(--paper);
  opacity: 0; transition: opacity .45s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.menu__links a { font-size: 2.1rem; font-weight: 200; line-height: 1.3; text-decoration: none; }
.menu__date { color: var(--stone); font-size: .95rem; }

@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .menu-btn, .menu { display: none !important; }
}

/* ------------------------------------------------------------------- Hero -- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(1.6rem, 5vh, 3.5rem)) var(--gutter) clamp(2rem, 5vh, 3.2rem);
  display: flex; align-items: center;
  overflow: hidden;
}
/* a soft pool of light behind the photo.
   It fades out inside the hero, so the section edge does not cut it into a hard line. */
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(120vw, 980px); aspect-ratio: 1;
  right: -30vw; bottom: -10%;
  background: radial-gradient(closest-side, rgba(236, 224, 214, .95), rgba(236, 224, 214, 0));
}
html:not([data-theme="halloween"]) .hero::before {
  inset: 0; width: auto; height: auto; aspect-ratio: auto;
  background: radial-gradient(
    ellipse 86% 46% at 58% 74%,
    rgba(236, 224, 214, .9) 0%,
    rgba(236, 224, 214, .42) 34%,
    rgba(236, 224, 214, .12) 54%,
    rgba(236, 224, 214, 0) 70%
  );
}
@media (min-width: 960px) {
  html:not([data-theme="halloween"]) .hero::before {
    background: radial-gradient(
      ellipse 46% 54% at 76% 58%,
      rgba(236, 224, 214, .9) 0%,
      rgba(236, 224, 214, .4) 34%,
      rgba(236, 224, 214, .1) 54%,
      rgba(236, 224, 214, 0) 70%
    );
  }
}
.hero__inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  gap: clamp(2.4rem, 6vw, 4rem);
}

/* names — set like the invitation */
.names {
  margin: 0;
  font-weight: 200;
  font-size: clamp(2.8rem, 13vw, 6.3rem);
  line-height: 1.1;
  letter-spacing: .07em;
  color: var(--ink);
}
.names__line { display: block; white-space: nowrap; }
.names__line--2 {
  display: flex; align-items: baseline; gap: .26em;
  padding-left: .28em;
}
.names__and { display: inline-flex; align-items: baseline; flex: none; }
.kai {
  display: block; flex: none;
  width: 1.9em; height: .46em;        /* viewBox 203 × 49 */
  margin-bottom: -.06em;
  overflow: visible; color: inherit;
}
.and-script {
  display: none;
  font-family: var(--font-script); font-weight: 400;
  font-size: .62em; letter-spacing: 0; line-height: .8;
  padding-right: .05em;
}
html[lang="en"] .kai { display: none; }
html[lang="en"] .and-script { display: inline-block; }

.hero__date {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  font-size: clamp(1rem, 2.4vw, 1.12rem); font-weight: 400; letter-spacing: .02em;
}

.countdown {
  margin-top: .9rem;
  display: flex; flex-wrap: wrap; align-items: baseline;
  color: var(--stone); font-size: .95rem; line-height: 1.4;
}
.cd { position: relative; display: inline-flex; align-items: baseline; gap: .45rem; padding: 0 1rem; }
.cd:first-child { padding-left: 0; }
.cd + .cd::before {
  content: ''; position: absolute; left: 0; top: .35em; bottom: .15em;
  width: 1px; background: var(--line-strong);
}
.cd[hidden] { display: none; }
.cd__num { font-family: var(--font-num); font-size: 1.75rem; line-height: 1; color: var(--ink); }
.countdown__msg { color: var(--ink); font-size: 1.02rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: clamp(1.8rem, 4.5vh, 2.6rem); }

/* photo in an arch + the stacked date */
.hero__visual {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(1.1rem, 4vw, 2.8rem);
}
.arch { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: end; }
.arch::before {
  content: ''; position: absolute; inset: -14px 14px 14px -14px; pointer-events: none;
  border: 1px solid var(--line-strong); border-radius: 999px 999px 0 0;
}
.arch__frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0; background: var(--mist);
  transform: translateZ(0);
}
.arch__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.is-ready .arch__frame img { animation: slowZoom 16s var(--ease-out) forwards; }

.spine { display: flex; flex-direction: column; align-items: center; gap: clamp(.55rem, 1.6vh, .95rem); }
.spine__line { display: block; width: 1px; height: clamp(34px, 7vh, 72px); background: var(--ink); opacity: .7; transform-origin: top; }
.spine__num { font-family: var(--font-num); font-size: clamp(2.5rem, 9vw, 4.4rem); line-height: .92; }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .names { font-size: clamp(4.2rem, 6.4vw, 6.3rem); }
}

/* ---------------------------------------------------- Opening sequence --- */
@keyframes drawY { to { transform: scaleY(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes nameIn { to { opacity: 1; letter-spacing: .07em; filter: blur(0); } }
@keyframes write { to { clip-path: inset(-30% -4% -30% 0); } }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes curtain { to { clip-path: inset(-24px -24px 0 -24px); } }
@keyframes slowZoom { from { transform: scale(1.07); } to { transform: scale(1); } }

.js .names__line--1,
.js .names__line--2 [data-c="bride"] { opacity: 0; letter-spacing: .2em; filter: blur(5px); }
.js .names__and { clip-path: inset(-30% 100% -30% 0); }
.js .spine__line { transform: scaleY(0); }
.js .spine__num { opacity: 0; }
.js .intro { opacity: 0; transform: translateY(12px); }
.js .intro--photo { opacity: 1; transform: none; clip-path: inset(100% -24px 0 -24px); }

.is-ready .names__line--1 { animation: nameIn 1.9s var(--ease-out) .2s forwards; }
.is-ready .names__line--2 [data-c="bride"] { animation: nameIn 1.9s var(--ease-out) .45s forwards; }
.is-ready .names__and { animation: write 1.5s cubic-bezier(.6, 0, .3, 1) .95s forwards; }
.is-ready .spine__line { animation: drawY 1.2s var(--ease-out) .55s forwards; }
.is-ready .spine__line:last-child { animation-delay: 1.3s; }
.is-ready .spine__num { animation: fadeIn 1.1s var(--ease) forwards; }
.is-ready .spine__num:nth-child(2) { animation-delay: .8s; }
.is-ready .spine__num:nth-child(3) { animation-delay: .95s; }
.is-ready .spine__num:nth-child(4) { animation-delay: 1.1s; }
.is-ready .intro { animation: introIn 1.2s var(--ease-out) var(--d, 0s) forwards; }
.is-ready .intro--photo { animation: curtain 1.7s var(--ease-out) var(--d, 0s) forwards; }

/* ---------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .75rem 1.5rem;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: .95rem; font-weight: 400; line-height: 1.2; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #46413D; border-color: #46413D; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: .45rem 1.05rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-size: .88rem; font-weight: 400; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); background: var(--white); }
.chip .icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------- Sections -- */
.section { padding: clamp(2.6rem, 6vw, 4.2rem) var(--gutter); }
.section__head {
  max-width: 680px; margin: 0 auto clamp(1.5rem, 3.5vw, 2.2rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.vline {
  display: block; width: 1px; height: clamp(28px, 4.5vw, 40px);
  margin: 0 auto clamp(.85rem, 2vw, 1.15rem);
  background: var(--ink); opacity: .55;
}
.title {
  margin: 0;
  font-weight: 200; font-size: clamp(1.95rem, 6vw, 3rem); line-height: 1.22; letter-spacing: .005em;
  text-wrap: balance;
}
.lead { margin: 1.1rem auto 0; max-width: 32rem; color: var(--stone); text-wrap: pretty; }
.numdate {
  display: inline-flex; align-items: center; gap: .85rem;
  margin-top: 1.3rem; font-family: var(--font-num); font-size: 1.3rem; line-height: 1; color: var(--stone);
}
.numdate i { display: block; width: 1px; height: 1.05em; background: var(--line-strong); }

/* ---------------------------------------------------------------- Welcome -- */
.welcome__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: clamp(3.5rem, 9vw, 6rem); align-items: center;
}
.welcome__photos { position: relative; width: 100%; max-width: 500px; margin: 0 auto; aspect-ratio: 5 / 6; }
.frame { position: absolute; overflow: hidden; background: var(--mist); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--a { left: 0; top: 0; width: 70%; height: 84%; border-radius: 999px 999px 0 0; }
.frame--b { right: 0; bottom: 0; width: 58%; height: 38%; box-shadow: 0 0 0 10px var(--paper); }
.welcome__text { max-width: 33rem; margin: 0 auto; text-align: center; }
.welcome__body p { margin-top: 1.3rem; color: var(--stone); text-wrap: pretty; }
.parents { margin-top: 2.4rem; }
.parents__title { color: var(--stone); font-size: .95rem; }
.parents__list { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: 1.12rem; }

@media (min-width: 900px) {
  .welcome__inner { grid-template-columns: 1fr 1fr; }
  .welcome__photos { order: -1; }
  .welcome__text { text-align: left; margin: 0; }
  .welcome__text .vline { margin-left: 0; }
}

/* --------------------------------------------------------------- Schedule -- */
.timeline {
  --conn: clamp(54px, 10vw, 80px);
  --gap: clamp(18px, 3.5vw, 26px);
  list-style: none; margin: 0 auto; padding: 0; max-width: 640px; text-align: center;
}
.t-item { position: relative; }
.t-item + .t-item { padding-top: calc(var(--gap) * 2 + var(--conn)); }
.t-item + .t-item::before {
  content: ''; position: absolute; left: 50%; top: var(--gap);
  width: 1px; height: var(--conn); background: var(--ink); opacity: .5;
  transform-origin: top;
}
.js .t-item + .t-item::before { transform: scaleY(0); transition: transform 1.3s var(--ease-out); }
.js .t-item.is-drawn::before { transform: scaleY(1); }

.t-item__icon { display: block; width: 30px; height: 30px; margin: 0 auto 1rem; color: var(--stone); }
.t-item__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.t-item__time {
  font-family: var(--font-num); font-size: clamp(2.5rem, 9vw, 3.5rem); line-height: 1; letter-spacing: .01em;
}
.t-item__time .dash { display: inline-block; margin: 0 .22em; color: var(--pebble); }
.t-item__time--words { font-family: var(--font-sans); font-weight: 200; font-size: clamp(2rem, 7vw, 2.6rem); letter-spacing: .02em; }
.t-item__title { margin: .95rem 0 0; font-size: clamp(1.25rem, 3.6vw, 1.45rem); font-weight: 400; line-height: 1.35; }
.t-item__text { margin: .55rem auto 0; max-width: 30rem; color: var(--stone); text-wrap: pretty; }
.t-item__place {
  margin-top: 1.1rem; display: flex; flex-direction: column; align-items: center;
  font-size: .98rem; line-height: 1.5;
}
.t-item__place b { font-weight: 400; }
.t-item__place span { color: var(--stone); }
.t-item__logo { display: block; width: 92px; height: auto; margin: 0 auto .35rem; }
.t-item__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }

/* ---------------------------------------------------------------- Seating -- */
.seating { background: linear-gradient(180deg, var(--paper), var(--mist) 18%, var(--mist) 82%, var(--paper)); }
.finder { max-width: 640px; margin: 0 auto; }
.search { position: relative; }
.search__icon {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  color: var(--stone); pointer-events: none;
}
.search__input {
  width: 100%; height: 62px; padding: 0 58px 0 56px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  color: var(--ink); font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 300;
  box-shadow: 0 18px 40px -30px rgba(70, 55, 40, .45);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s var(--ease);
}
.search__input::placeholder { color: var(--pebble); opacity: 1; }
.search__input:focus { border-color: var(--ink); }
.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.search__input:disabled { background: rgba(255, 255, 255, .55); }
.search__clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  color: var(--stone); cursor: pointer; display: none; place-items: center;
}
.search.has-value .search__clear { display: grid; }
.search__clear:hover { background: var(--mist); color: var(--ink); }

.finder__status { min-height: 1.75em; margin-top: 1rem; text-align: center; color: var(--stone); font-size: .95rem; text-wrap: pretty; }
.finder__status:empty { min-height: 0; margin-top: .6rem; }
.results { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.results:empty { display: none; }
.result {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.25rem; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .78); text-align: left; cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.result:hover, .result.is-active { border-color: var(--ink); background: var(--white); }
.result__name { font-weight: 400; line-height: 1.4; }
.result__table { flex: none; display: inline-flex; align-items: baseline; gap: .4rem; color: var(--stone); font-size: .88rem; white-space: nowrap; }
.result__table b { font-family: var(--font-num); font-weight: 400; font-size: 1.35rem; line-height: 1; color: var(--ink); }

.seat {
  margin-top: 1rem; padding: clamp(1.6rem, 5vw, 2.6rem);
  display: grid; gap: 1.4rem; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 40px 80px -56px rgba(70, 55, 40, .55);
  animation: seatIn .7s var(--ease-out) both;
}
.seat[hidden] { display: none; }
@keyframes seatIn { from { opacity: 0; transform: translateY(10px); } }
.seat__visual svg { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; overflow: visible; }
.seat__label { color: var(--stone); font-size: .95rem; }
.seat__name { margin: .3rem 0 0; font-weight: 300; font-size: clamp(1.6rem, 5vw, 2.05rem); line-height: 1.22; }
.seat__soon { margin-top: .6rem; color: var(--stone); }
.mates { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.mates__title { color: var(--stone); font-size: .9rem; }
.mates__list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.mates__list li { padding: .28rem .8rem; border-radius: 999px; background: var(--mist); font-size: .88rem; line-height: 1.5; }
.seat__actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }

@media (min-width: 640px) {
  .seat { grid-template-columns: 210px minmax(0, 1fr); align-items: start; text-align: left; }
  .seat__visual { padding-top: .4rem; }
  .mates__list, .seat__actions { justify-content: flex-start; }
}

/* round table drawing */
.rt__glow { fill: var(--mist); }
.rt__ring { fill: none; stroke: var(--line-strong); stroke-width: .8; stroke-dasharray: .5 4.5; stroke-linecap: round; }
.rt__table { fill: var(--white); stroke: var(--ink); stroke-width: .9; }
.rt__chair {
  fill: var(--white); stroke: var(--ink); stroke-width: .9;
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: chairIn .6s var(--ease-out) forwards;
  animation-delay: calc(.15s + var(--i) * 55ms);
}
.rt__chair.is-taken { fill: var(--mist-2); }
.rt__label { font-family: var(--font-sans); font-size: 10px; font-weight: 400; letter-spacing: .04em; fill: var(--stone); text-anchor: middle; }
.rt__num { font-family: var(--font-num); font-size: 58px; fill: var(--ink); text-anchor: middle; }
.rt__word { font-family: var(--font-sans); font-size: 15px; font-weight: 300; fill: var(--ink); text-anchor: middle; }
@keyframes chairIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------- Gallery -- */
.gallery__grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 44vw, 300px); grid-auto-flow: dense;
  gap: clamp(8px, 1.5vw, 16px);
}
.g-item {
  position: relative; display: block; padding: 0; border: 0; overflow: hidden;
  border-radius: 4px; background: var(--mist); cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), opacity .9s var(--ease); }
.js .g-item img { opacity: 0; }
.js .g-item img.is-loaded { opacity: 1; }
@media (hover: hover) { .g-item:hover img { transform: scale(1.035); } }
.g-item:nth-child(8n+1) { grid-row: span 2; border-radius: 999px 999px 4px 4px; }
.g-item:nth-child(8n+3) { grid-column: span 2; }
.g-item:nth-child(8n+6) { grid-row: span 2; }
.g-item:nth-child(8n+7) { grid-column: span 2; }
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 280px); }
}

/* --------------------------------------------------------------- Lightbox -- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(24, 22, 20, .95);
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; padding: 70px 12px 96px; width: 100%; height: 100%; display: grid; place-items: center; }
.lb-figure img {
  max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 2px; transition: opacity .35s var(--ease);
}
.lb-figure img.is-switching { opacity: 0; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .32); background: rgba(24, 22, 20, .35); color: #fff;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); }
.lb-btn[hidden] { display: none; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-prev { left: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); }
.lb-next { right: 16px; bottom: calc(22px + env(safe-area-inset-bottom)); }
.lb-count {
  position: absolute; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  color: rgba(255, 255, 255, .72); font-family: var(--font-num); font-size: 1.05rem; letter-spacing: .06em;
}
.lb-like {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .3rem 1rem .3rem .75rem;
  border: 0; border-radius: 999px; background: rgba(255, 252, 249, .94);
  color: #8E4E48; font: inherit; font-size: 1rem; line-height: 1; cursor: pointer;
}
.lb-like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.lb-like[aria-pressed="true"] svg { fill: currentColor; }
.lb-like span:empty { display: none; }
.lb-like[hidden] { display: none; }
.lb-like:disabled { opacity: .6; cursor: progress; }
@media (min-width: 900px) {
  .lb-figure { padding: 64px 96px; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { left: 28px; }
  .lb-next { right: 28px; }
  .lb-count { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- Closing -- */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 66vh; min-height: 66svh;
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) clamp(9rem, 26vh, 16rem);
  display: grid; justify-items: center; align-content: start; text-align: center; color: #fff;
}
.closing__media { position: absolute; inset: 0; z-index: -2; background: #3A3430; }
.closing__media img { width: 100%; height: 100%; object-fit: cover; }
.closing::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28, 24, 21, .55), rgba(28, 24, 21, .28) 55%, rgba(28, 24, 21, .12));
}
.closing__content { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.vline--light { display: none; background: #fff; opacity: .85; }
.closing__title { margin: 0; font-weight: 200; font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.22; text-wrap: balance; }
.closing__names {
  margin-top: 2.2rem; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .55em;
  font-weight: 200; font-size: clamp(1.15rem, 3.8vw, 1.5rem); letter-spacing: .14em;
}
.closing__names .kai { width: 3.4em; height: .82em; margin-bottom: -.1em; }
.closing__names .and-script { font-size: 1.5em; letter-spacing: 0; }
@media (min-width: 900px) {
  .closing { min-height: 92vh; min-height: 92svh; }
  .vline--light { display: block; height: 56px; }
}

/* ----------------------------------------------------------------- Footer -- */
.footer {
  padding: 2.4rem var(--gutter) calc(2.4rem + env(safe-area-inset-bottom));
  text-align: center; color: var(--stone); font-size: .92rem;
}

/* ------------------------------------------------------------ Photo frame -- */
.photo__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: clamp(2.8rem, 8vw, 5rem); align-items: center;
}
.photo__text { max-width: 31rem; margin: 0 auto; text-align: center; }
.photo__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.photo__actions label.btn { cursor: pointer; }
.photo__sample {
  order: 2; margin: 0 auto; width: min(100%, 380px);
  transform: rotate(-2deg);
  box-shadow: 0 34px 70px -38px rgba(50, 36, 24, .55), 0 2px 6px rgba(50, 36, 24, .08);
  transition: transform .8s var(--ease-out);
}
.photo__sample:hover { transform: rotate(0); }
.photo__sample img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; background: var(--mist); }
@media (min-width: 900px) {
  .photo__inner { grid-template-columns: 1fr 1fr; }
  .photo__sample { order: 0; width: min(100%, 420px); }
  .photo__text { margin: 0; text-align: left; }
  .photo__text .vline { margin-left: 0; }
  .photo__actions, .frame-style { justify-content: flex-start; }
}

/* frame style: classic or Halloween */
.frame-style { display: flex; justify-content: center; margin-top: 1.4rem; }
.frame-style__group { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.frame-style button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: transparent; cursor: pointer; color: var(--stone);
  padding: .5rem .95rem; border-radius: 999px; font-size: .88rem; line-height: 1.2;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.frame-style button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.frame-style svg { width: 16px; height: 16px; flex: none; }
.frame-style .fs-pumpkin ellipse { fill: #EE8A3C; stroke: #A9501A; stroke-width: 1.2; }
.frame-style .fs-pumpkin path { fill: none; stroke: #8FA35A; stroke-width: 1.5; stroke-linecap: round; }
.frame-style .fs-classic { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ------------------------------------------------------------ Photo booth -- */
.booth {
  position: fixed; inset: 0; z-index: 110;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto;
  justify-items: center; align-items: center; gap: 14px;
  padding: calc(66px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  background: #121013; color: #F2E9DE;
  opacity: 0; transition: opacity .35s var(--ease);
}
.booth.is-open { opacity: 1; }
.booth__stage { position: relative; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; container-type: size; }
.booth__frame { position: relative; width: min(100%, 52vh); aspect-ratio: 1080 / 1350; }
@supports (width: 1cqh) { .booth__frame { width: min(100cqw, 80cqh); } }
.booth__video { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.booth__canvas, .booth__final {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.booth__count {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-num); font-size: clamp(5rem, 30vw, 9rem); color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.booth__count:empty { display: none; }
.booth__count.is-tick { animation: tick .9s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: scale(1.5); } 30% { opacity: 1; transform: scale(1); } to { opacity: .2; } }
.booth__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; border-radius: 4px; }
.booth__flash.is-on { animation: flash .6s ease-out; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.booth__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
  padding: 1.5rem; text-align: center; color: rgba(242, 233, 222, .85); background: #121013;
}
.booth__fallback[hidden] { display: none; }
.booth__controls { display: flex; align-items: center; justify-content: center; gap: 34px; }
.booth__shutter {
  position: relative; width: 74px; height: 74px; padding: 0; border-radius: 50%;
  border: 3px solid #fff; background: transparent; cursor: pointer;
}
.booth__shutter::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
  transition: transform .2s var(--ease);
}
.booth__shutter:active::after { transform: scale(.86); }
.booth__shutter:disabled { opacity: .4; }
.booth__btn {
  width: 48px; height: 48px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .32); background: transparent; color: #fff;
  font-family: var(--font-num); font-size: 1rem;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.booth__btn[aria-pressed="true"] { background: #fff; color: #121013; }
.booth__btn[hidden] { display: none; }
.booth__after { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-width: 560px; }
.booth .btn--line { color: #F2E9DE; border-color: rgba(242, 233, 222, .35); }
.booth .btn--line:hover { border-color: #F2E9DE; }
.booth .btn--dark { background: #F2E9DE; color: #1B1714; border-color: #F2E9DE; }
.booth .btn--dark:hover { background: #fff; border-color: #fff; }
.booth .btn:disabled { opacity: .55; cursor: default; }
.booth__status { min-height: 1.4em; max-width: 30rem; text-align: center; font-size: .92rem; line-height: 1.45; color: rgba(242, 233, 222, .82); }
.booth .frame-style { margin: 0; }
.booth .frame-style__group { border-color: rgba(242, 233, 222, .3); }
.booth .frame-style button { color: rgba(242, 233, 222, .75); }
.booth .frame-style button[aria-pressed="true"] { background: #F2E9DE; color: #1B1714; }
.booth__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.booth__torch { top: calc(12px + env(safe-area-inset-top)); left: 12px; }
.booth__torch[aria-pressed="true"] { background: #fff; color: #121013; border-color: #fff; }
.booth__torch[aria-pressed="true"] .booth__torch-slash { display: none; }
.booth.is-fill { background: #fff; }

/* -------------------------------------------------------------- Team vote -- */
:root { --team-bride: #C49A86; --team-groom: #7F8E99; }
.teams {
  max-width: 700px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  gap: clamp(.6rem, 3vw, 1.6rem);
}
.team {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: clamp(1.3rem, 5vw, 2.1rem) .8rem clamp(1.2rem, 4vw, 1.8rem);
  border: 1px solid var(--line-strong); border-radius: 26px; background: var(--white);
  cursor: pointer; text-align: center;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.team--bride { --team: var(--team-bride); }
.team--groom { --team: var(--team-groom); }
.team:hover { border-color: var(--ink); }
.team[aria-pressed="true"] { border-color: var(--team); box-shadow: 0 0 0 1.5px var(--team), 0 26px 50px -34px rgba(60, 45, 30, .5); }
.team:disabled { cursor: progress; }
.team__icon { width: 34px; height: 34px; margin-bottom: .5rem; fill: none; stroke: var(--team); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.team__label { font-size: clamp(1rem, 3.8vw, 1.2rem); font-weight: 400; line-height: 1.3; }
.team__name { color: var(--stone); font-size: .92rem; }
.team__count {
  margin-top: .7rem; min-height: 1em;
  font-family: var(--font-num); font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1;
}
.team__unit { min-height: 1.1em; font-size: .82rem; color: var(--stone); }
.team__pct { margin-top: .15rem; min-height: 1em; font-family: var(--font-num); font-size: 1.05rem; color: var(--pebble); }
.team.is-pop { animation: pop .55s var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.045); } }
.teams__or { font-weight: 200; font-size: clamp(1.3rem, 4.5vw, 1.8rem); color: var(--stone); }
.tally {
  max-width: 700px; height: 6px; margin: 1.35rem auto 0;
  display: flex; overflow: hidden; border-radius: 6px; background: var(--line);
}
.tally i { display: block; width: 50%; height: 100%; transition: width 1.1s var(--ease-out); }
.tally__bride { background: var(--team-bride); }
.tally__groom { background: var(--team-groom); }
.vote__foot { max-width: 32rem; margin: 1.15rem auto 0; text-align: center; }
.vote__status { margin: 0; min-height: 1.4em; color: var(--stone); text-wrap: pretty; }
.vote__status.is-mine {
  display: inline-block; min-height: 0;
  padding: .55rem 1.15rem; border-radius: 999px;
  background: var(--mist); color: var(--ink);
}
.vote__hint { margin: .7rem 0 0; color: var(--pebble); font-size: .9rem; line-height: 1.45; }
.vote__hint[hidden] { display: none; }
.vote__clear {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: .95rem; min-height: 42px; padding: .45rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white);
  color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer;
}
.vote__clear[hidden] { display: none; }
.vote__clear:disabled { opacity: .45; cursor: progress; }

/* ---------------------------------------------------------- Shared photos -- */
.shared__empty { text-align: center; color: var(--stone); }
.shared__empty[hidden] { display: none; }
.shared__grid {
  max-width: 1100px; margin: 1.4rem auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 14px);
}
.shared__grid:empty { display: none; }
.shared__card { position: relative; }
.shared__item {
  display: block; width: 100%; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 5; border-radius: 4px; background: var(--mist);
}
.shared__item img { width: 100%; height: 100%; object-fit: cover; }
.shared__like {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  display: inline-flex; align-items: center; gap: .28rem;
  min-height: 34px; padding: .15rem .6rem .15rem .45rem;
  border: 0; border-radius: 999px; background: rgba(255, 252, 249, .92);
  color: #8E4E48; font: inherit; font-size: .82rem; line-height: 1; cursor: pointer;
}
.shared__like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.shared__like[aria-pressed="true"] svg { fill: currentColor; }
.shared__like span:empty { display: none; }
.shared__like:disabled { opacity: .6; cursor: progress; }
@media (min-width: 700px) {
  .shared__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ========================================================== Halloween mode ==
   The pumpkin at the top turns the site into a Halloween night — the wedding
   is on 31 October. Everything below only applies while it is switched on.     */
.pumpkin {
  position: relative; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .3s var(--ease);
}
@media (hover: hover) { .pumpkin:hover { background: var(--mist); } }
.pumpkin[hidden] { display: none; }
.pumpkin svg { width: 26px; height: 26px; overflow: visible; transition: transform .5s var(--ease-out), filter .5s var(--ease); }
@media (hover: hover) { .pumpkin:hover svg { transform: rotate(-8deg) scale(1.06); } }
.pumpkin__body ellipse { fill: var(--paper); stroke: currentColor; stroke-width: 1.15; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.pumpkin__stem { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; transition: stroke .5s var(--ease); }
.pumpkin__leaf { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.pumpkin__face { fill: #FFE6A6; opacity: 0; transition: opacity .5s var(--ease); }
.is-ready .pumpkin svg { animation: wiggle 1s var(--ease) 2.8s 1; }   /* one small hello after the page opens */
@keyframes wiggle {
  0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(11deg); }
  60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); }
}

html[data-theme="halloween"] {
  --paper: #17131B;
  --white: #221C27;
  --mist: #1F1924;
  --mist-2: #3A2B2A;
  --ink: #F2E9DE;
  --stone: #B7ACA3;
  --pebble: #857A82;
  --line: rgba(242, 233, 222, .13);
  --line-strong: rgba(242, 233, 222, .28);
  --pumpkin: #EE8A3C;
  color-scheme: dark;
}
html[data-theme="halloween"] .pumpkin__body ellipse { fill: var(--pumpkin); stroke: #A9501A; }
html[data-theme="halloween"] .pumpkin__stem { stroke: #8FA35A; }
html[data-theme="halloween"] .pumpkin__leaf { fill: #8FA35A; stroke: #8FA35A; }
html[data-theme="halloween"] .pumpkin__face { opacity: 1; animation: candle 2.6s ease-in-out infinite; }
html[data-theme="halloween"] .pumpkin svg { filter: drop-shadow(0 0 6px rgba(238, 138, 60, .6)); }
@keyframes candle { 0%, 100% { opacity: 1; } 40% { opacity: .72; } 55% { opacity: .95; } 70% { opacity: .82; } }

html[data-theme="halloween"] .nav.is-solid,
html[data-theme="halloween"] .menu-open .nav { background: rgba(23, 19, 27, .86); }
html[data-theme="halloween"] .hero::before {      /* a harvest moon behind the photo */
  background: radial-gradient(closest-side, rgba(238, 138, 60, .42), rgba(238, 138, 60, .12) 55%, rgba(238, 138, 60, 0));
}
html[data-theme="halloween"] .names__and,
html[data-theme="halloween"] .cd__num,
html[data-theme="halloween"] .t-item__icon { color: var(--pumpkin); }
html[data-theme="halloween"] .arch::before { border-color: rgba(238, 138, 60, .5); }
html[data-theme="halloween"] .btn--dark { background: var(--pumpkin); border-color: var(--pumpkin); color: #1B130E; }
html[data-theme="halloween"] .btn--dark:hover { background: #F59A52; border-color: #F59A52; }
html[data-theme="halloween"] .lang button[aria-pressed="true"] { background: var(--pumpkin); color: #1B130E; }
html[data-theme="halloween"] .result { background: rgba(34, 28, 39, .82); }
html[data-theme="halloween"] .rt__chair.is-taken { fill: rgba(238, 138, 60, .55); stroke: var(--pumpkin); }
html[data-theme="halloween"] .t-item__logo { filter: invert(1) brightness(1.08); }
html[data-theme="halloween"] ::selection { background: rgba(238, 138, 60, .35); }
html[data-theme="halloween"] { --team-bride: #EE8A3C; --team-groom: #9A7BC4; }
html[data-theme="halloween"] .booth .btn--dark { background: var(--pumpkin); border-color: var(--pumpkin); color: #1B130E; }
html[data-theme="halloween"] .frame-style button[aria-pressed="true"] { background: var(--pumpkin); color: #1B130E; }

.hero { isolation: isolate; }
.hero__boo { display: none; margin-top: .9rem; color: var(--pumpkin); font-size: .98rem; }
html[data-theme="halloween"] .hero__boo { display: block; animation: booIn .9s var(--ease-out) .3s both; }
@keyframes booIn { from { opacity: 0; transform: translateY(6px); } }

/* bats crossing the night sky */
.bats { position: absolute; inset: 0; z-index: -1; display: none; overflow: hidden; pointer-events: none; }
html[data-theme="halloween"] .bats { display: block; }
.bat { position: absolute; left: 0; top: var(--y); width: var(--s); animation: batFly var(--dur) linear var(--delay) infinite; }
.bat svg { display: block; width: 100%; height: auto; fill: #0A070B; transform-origin: 50% 40%;
  filter: drop-shadow(0 0 3px rgba(238, 138, 60, .95)) drop-shadow(0 0 9px rgba(238, 138, 60, .35));
  animation: flap .3s ease-in-out infinite alternate; }
@keyframes batFly {
  0%   { transform: translate(-14vw, 0); }
  25%  { transform: translate(22vw, -3vh); }
  50%  { transform: translate(55vw, 1.5vh); }
  75%  { transform: translate(86vw, -2.5vh); }
  100% { transform: translate(118vw, 1vh); }
}
@keyframes flap { to { transform: scaleY(.55); } }

/* a little spider hanging over the photo */
.hero__visual { position: relative; }
.spider { position: absolute; z-index: 2; top: 13%; left: 62%; width: 24px; display: none; pointer-events: none; color: #0C090D; }
html[data-theme="halloween"] .spider { display: block; animation: spiderDrop 1.6s var(--ease-out) .2s both, dangle 5.5s ease-in-out 1.8s infinite; }
.spider__thread {
  position: absolute; bottom: 70%; left: 50%; width: 1px; height: 120px;
  background: linear-gradient(rgba(242, 233, 222, 0), rgba(242, 233, 222, .55));
}
.spider svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 2px rgba(238, 138, 60, .7)); }
@keyframes spiderDrop { from { transform: translateY(-60vh); } }
@keyframes dangle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(22px) rotate(3deg); } }

/* the switch spreads out from the pumpkin like a circle of light */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* -------------------------------------------------------- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
