:root {
  color-scheme: light;
  font-family: "Roboto Slab", Rockwell, Clarendon, Georgia, "Times New Roman", serif;
  background: #3b2416;
  color: #2a190f;
  --sand: #f3e3c3;
  --sand-light: #fff4d6;
  --leather: #8b4a2b;
  --wood: #3b2416;
  --rust: #c8553d;
  --turquoise: #2fa4a9;
  --denim: #3d5a80;
  --star: #e8b64c;
  --ink: #2a190f;
  --muted: #76583d;
  --card: rgba(255, 246, 224, .94);
  --line: rgba(139, 74, 43, .36);
  --slab: Rockwell, Clarendon, "Roboto Slab", Georgia, serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; min-width: 0; }
html { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 182, 76, .32), transparent 19rem),
    radial-gradient(circle at 88% 0, rgba(47, 164, 169, .25), transparent 22rem),
    linear-gradient(135deg, rgba(59, 36, 22, .96), rgba(139, 74, 43, .84)),
    repeating-linear-gradient(90deg, #3b2416 0 1.2rem, #442818 1.2rem 2.4rem);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-linear-gradient(92deg, transparent 0 1.9rem, rgba(255,255,255,.08) 1.95rem 2rem),
    radial-gradient(ellipse at 50% 0, rgba(255,255,255,.18), transparent 42rem);
  mix-blend-mode: soft-light;
}
button, input, textarea, select { font: inherit; }
img, svg, canvas, video { max-width: 100%; }
button, .provider {
  border: 2px solid rgba(59, 36, 22, .18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent),
    linear-gradient(135deg, var(--sand-light), var(--sand));
  color: var(--ink);
  padding: .78rem 1rem;
  box-shadow: 0 10px 24px rgba(42, 25, 15, .16);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, .provider:hover { transform: translateY(-1px) rotate(-.25deg); box-shadow: 0 16px 34px rgba(42,25,15,.2); }
button:disabled { opacity: .62; cursor: wait; transform: none; }
button.primary {
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent),
    linear-gradient(135deg, var(--leather), var(--rust));
  color: #fff9e8;
  border-color: rgba(232, 182, 76, .72);
  text-shadow: 0 1px 0 rgba(0,0,0,.24);
}
button.danger { background: #ffe5d4; color: #8f2115; }
button.selected, button.active, button.liked {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 1.2rem),
    linear-gradient(135deg, var(--star), #f7d98a);
  color: #3b2416;
  border-color: var(--wood);
}
input, textarea, select {
  width: 100%;
  border: 2px solid rgba(139,74,43,.28);
  border-radius: 1rem;
  padding: .85rem .95rem;
  background: rgba(255,250,236,.94);
  color: var(--ink);
  box-shadow: inset 0 2px 8px rgba(59,36,22,.06);
}
textarea { resize: vertical; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: .92rem; font-weight: 800; }
a { color: #8a2d20; font-weight: 900; overflow-wrap: anywhere; }
.app-shell { min-height: 100vh; }
.sparkle-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; }
.card {
  position: relative;
  background:
    radial-gradient(circle at 0 0, rgba(232,182,76,.16), transparent 10rem),
    linear-gradient(135deg, rgba(255,250,236,.97), var(--card));
  border: 2px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 22px 52px rgba(42,25,15,.22), inset 0 0 0 1px rgba(255,255,255,.35);
}
.card::after {
  content: "";
  position: absolute;
  inset: .42rem;
  border: 2px dashed rgba(139, 74, 43, .24);
  border-radius: .92rem;
  pointer-events: none;
}
.login { width: min(980px, 100%); margin: 0 auto; padding: 2rem 1rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; align-items: stretch; }
.hero-login {
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(59,36,22,.82), rgba(139,74,43,.46)),
    url("https://a0.muscache.com/im/pictures/hosting/Hosting-1775521521673529687/original/0b1afecd-9c7c-4b50-a56b-b10ab8d30995.jpeg?im_w=720") center/cover;
  color: white;
}
.hero-login h1 { font-family: var(--slab); font-size: clamp(2.7rem, 8vw, 5.7rem); margin: .5rem 0; line-height: .88; letter-spacing: .03em; text-transform: uppercase; }
/* Neutral sign-in (no invitation): no space name, no gîte photo. */
.hero-login.hero-neutral {
  background:
    radial-gradient(circle at 78% 18%, rgba(255,214,140,.55), rgba(255,214,140,0) 42%),
    radial-gradient(circle at 18% 85%, rgba(234,164,174,.45), rgba(234,164,174,0) 45%),
    linear-gradient(140deg, #3b2a40, #6b4a5e 55%, #b9826b);
}
.hero-login.hero-neutral h1, .hero-login.hero-grece h1 { text-transform: none; letter-spacing: .01em; font-size: clamp(2.4rem, 6.5vw, 4.4rem); line-height: 1; }
.hero-login.hero-cowboy h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: .95; overflow-wrap: anywhere; }
.hero-login.hero-grece {
  background:
    radial-gradient(circle at 80% 15%, rgba(242,182,50,.75), rgba(242,182,50,0) 38%),
    linear-gradient(160deg, #123e73, #1f5fa8 60%, #eaa4ae);
}
.hero-login.hero-grece h1 { font-family: "Didot", "Bodoni 72", "Playfair Display", Georgia, serif; }
.login-form, .providers { display: grid; gap: .8rem; }
.code-wait-note { margin: -.2rem 0 .2rem; padding: .65rem .75rem; border-radius: 1rem; background: rgba(255, 244, 214, .86); border: 1px solid rgba(139,74,43,.28); }
.login-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.muted { color: var(--muted); }
.badge, .tag, .credit {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .36rem .68rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent),
    linear-gradient(135deg, var(--sand-light), #ead09e);
  color: #5a2e1a;
  border: 1px solid rgba(139,74,43,.34);
  font-size: .85rem;
  font-weight: 950;
}
.credit.exhausted { background: #ffe7c9; color: #8f2115; }
.space-layout { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: .55rem;
  padding: calc(.62rem + env(safe-area-inset-top, 0px)) .75rem .72rem;
  background:
    radial-gradient(circle at 12% 10%, rgba(232,182,76,.18), transparent 9rem),
    linear-gradient(135deg, rgba(59,36,22,.96), rgba(139,74,43,.92));
  color: #fff9e8;
  border-bottom: 2px solid rgba(232,182,76,.35);
  backdrop-filter: blur(14px);
}
.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .34rem;
  z-index: 3;
  width: 4.6rem;
  height: 3.75rem;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(96,53,31,0), rgba(96,53,31,.88) 54%, rgba(96,53,31,1));
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.top-actions { display: flex; align-items: center; gap: .6rem; }
.lang-picker { display: inline-flex; gap: .2rem; padding: .18rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(232,182,76,.4); }
.lang-picker button { box-shadow: none; padding: .35rem .55rem; font-size: .78rem; font-weight: 950; background: transparent; color: inherit; border: 0; }
.lang-picker button.active { background: var(--star); color: var(--wood); }
.login-lang { align-self: flex-start; margin-bottom: auto; background: rgba(255,255,255,.18); }
.inline { margin-bottom: 1rem; }
.brand { color: #fff9e8; text-decoration: none; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.mobile-brand-badge { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.mini-star {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  clip-path: polygon(50% 0, 60% 31%, 92% 12%, 73% 45%, 100% 50%, 73% 55%, 92% 88%, 60% 69%, 50% 100%, 40% 69%, 8% 88%, 27% 55%, 0 50%, 27% 45%, 8% 12%, 40% 31%);
  background: var(--star);
  color: var(--wood);
  font-size: .78rem;
  line-height: 1;
}
.mobile-section-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff8e8;
  font-size: 1.02rem;
  letter-spacing: .02em;
}
.mobile-tabbar {
  position: relative;
  display: flex;
  gap: .42rem;
  overflow-x: auto;
  padding: .08rem 2.4rem .1rem .05rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  transition: padding .22s ease;
}
.mobile-tabbar::-webkit-scrollbar { display: none; }
.mobile-tab {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 44px;
  scroll-snap-align: start;
  padding: .58rem .78rem;
  border-color: rgba(232,182,76,.4);
  background: rgba(255,255,255,.08);
  color: #fff9e8;
  box-shadow: none;
  gap: .35rem;
}
.mobile-tab.active { background: linear-gradient(135deg, var(--star), var(--sand-light)); color: #2a190f; box-shadow: 0 0 24px rgba(232,182,76,.28); }
.mobile-tab .nav-emoji { font-size: 1.1rem; }
.mobile-tab .nav-label { font-weight: 950; }
.nav-shrunk .topbar { box-shadow: 0 12px 28px rgba(42,25,15,.2); }
.profile { position: relative; }
.profile summary { cursor: pointer; font-weight: 900; }
.profile-menu {
  position: absolute;
  right: 0;
  top: 2rem;
  width: min(18rem, 90vw);
  display: grid;
  gap: .65rem;
  background: var(--sand-light);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 1rem;
  padding: .8rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.cowboy-sidebar { display: none; }
.space { position: relative; z-index: 3; width: min(1120px, 100%); margin: 0 auto; padding: 1rem; display: grid; gap: 1rem; }
.tab-content { scroll-margin-top: calc(7.5rem + env(safe-area-inset-top, 0px)); }
.hero-cover {
  min-height: min(82vh, 52rem);
  padding: clamp(.75rem, 2vw, 1.2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(47,164,169,.18), transparent 14rem),
    linear-gradient(135deg, #e6c98f, var(--sand));
  color: var(--ink);
}
.hero-cover::before {
  content: "";
  position: absolute;
  inset: .65rem;
  border: .26rem double var(--wood);
  border-radius: 1rem;
  pointer-events: none;
  z-index: 2;
}
.cover { position: absolute; inset: 7.4rem 1.3rem auto auto; width: min(37rem, 48%); height: calc(100% - 9rem); object-fit: cover; opacity: .92; border: .55rem solid #ead09e; border-bottom-width: 2rem; border-radius: .45rem; box-shadow: 0 20px 34px rgba(59,36,22,.36); transform: rotate(1.4deg); }
.cover-slideshow { position: absolute; inset: 0; overflow: hidden; }
.cover-slideshow .cover { inset: 7.4rem 1.3rem auto auto; }
.cover-slide { opacity: 0; animation: cover-fade 48s infinite, kenburns 16s ease-in-out infinite alternate; transform-origin: center; }
.cover-slide.slide-0 { animation-delay: 0s; }
.cover-slide.slide-1 { animation-delay: 6s; }
.cover-slide.slide-2 { animation-delay: 12s; }
.cover-slide.slide-3 { animation-delay: 18s; }
.cover-slide.slide-4 { animation-delay: 24s; }
.cover-slide.slide-5 { animation-delay: 30s; }
.cover-slide.slide-6 { animation-delay: 36s; }
.cover-slide.slide-7 { animation-delay: 42s; }
@keyframes cover-fade { 0%, 16% { opacity: .92; } 22%, 100% { opacity: 0; } }
@keyframes kenburns { to { scale: 1.06; } }
.cover-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 19%, rgba(255,244,214,.18), transparent 15rem),
    repeating-radial-gradient(circle at 10% 0, rgba(139,74,43,.08) 0 .12rem, transparent .12rem .55rem);
}
.cover-copy { position: relative; z-index: 3; min-height: min(78vh, 48rem); padding: clamp(1rem, 4vw, 2rem); display: grid; align-content: center; gap: .5rem; max-width: 45rem; }
.cover-kicker { margin: 0; width: fit-content; padding: .18rem .72rem; text-transform: uppercase; letter-spacing: .22em; color: #fff6d7; background: var(--wood); border: 2px solid var(--star); font-size: clamp(2rem, 8vw, 5.6rem); line-height: .9; font-weight: 950; transform: rotate(-1.5deg); }
.masthead { font-family: var(--slab); font-size: clamp(3.2rem, 13vw, 9rem); line-height: .78; margin: 0; letter-spacing: .05em; text-transform: uppercase; color: var(--wood); text-shadow: 0 .08em 0 rgba(255,255,255,.32); }
.gold-55 {
  position: relative;
  z-index: 4;
  width: 8.2rem;
  height: 8.2rem;
  margin: .35rem 0 .65rem;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 60% 31%, 92% 12%, 73% 45%, 100% 50%, 73% 55%, 92% 88%, 60% 69%, 50% 100%, 40% 69%, 8% 88%, 27% 55%, 0 50%, 27% 45%, 8% 12%, 40% 31%);
  background: radial-gradient(circle, #fff5bf 0 24%, var(--star) 25% 56%, #9c6a1d 57% 100%);
  border: 0;
  color: #3b2416;
  font-family: var(--slab);
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
  filter: drop-shadow(0 10px 18px rgba(59,36,22,.32));
}
.cover-lines { position: relative; z-index: 3; display: grid; gap: .28rem; max-width: 30rem; }
.cover-lines p {
  margin: 0;
  width: fit-content;
  padding: .28rem .55rem;
  background: rgba(255,246,224,.72);
  border-left: .28rem solid var(--rust);
  color: var(--wood);
  font-family: var(--mono);
  font-size: clamp(1rem, 2.7vw, 1.35rem);
  font-weight: 950;
}
.countdown-badge { width: fit-content; margin: .35rem 0 0; padding: .58rem .82rem; border-radius: 999px; background: var(--wood); border: 2px solid var(--star); color: #fff3c9; font-weight: 950; }
.lead { font-size: 1.14rem; font-weight: 900; margin: .25rem 0; }
.place-line, .cover-note { margin: .15rem 0; max-width: 39rem; font-weight: 800; }
.cover-note { color: #5c3b25; }
.announcement p { white-space: pre-wrap; line-height: 1.62; }
.editor-letter {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(59,36,22,.1), transparent 1.3rem),
    linear-gradient(135deg, #fff3cf, #e7c992);
}
.editor-letter p:nth-of-type(1)::first-letter { font-family: var(--slab); font-size: 4.1rem; float: left; line-height: .8; padding: .2rem .35rem 0 0; color: var(--rust); }
.signature { font-family: var(--mono); font-size: 1.35rem; color: var(--leather); text-align: right; font-weight: 950; }
.dress-card {
  overflow: hidden;
  background:
    radial-gradient(circle at .75rem .75rem, rgba(255,255,255,.22) 0 .18rem, transparent .2rem) 0 0/1.5rem 1.5rem,
    radial-gradient(circle at 1.5rem 1.5rem, rgba(59,36,22,.12) 0 .2rem, transparent .22rem) 0 0/1.5rem 1.5rem,
    linear-gradient(135deg, #fff6dc, #e7c992);
}
.dress-card h2, .dress-card p { margin: .2rem 0; }
.dress-card p { font-family: var(--slab); font-size: clamp(1.25rem, 4vw, 2rem); color: var(--wood); font-weight: 950; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.rsvp, .composer, .post, .activity-form, .oidc, .admin, .feed, .todo, .gallery-tab, .who-section { display: grid; gap: 1rem; }
.wa-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(47,164,169,.24), transparent 13rem),
    linear-gradient(135deg, #fff8e2, #e8cf9b);
}
.wa-card h2 { font-family: var(--slab); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--wood); }
.wa-summary, .wa-previous p { white-space: pre-wrap; line-height: 1.58; }
.stat-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.wa-previous summary { cursor: pointer; font-weight: 950; color: var(--leather); }
.wa-previous article { margin-top: .7rem; padding: .7rem; border-radius: 1rem; background: rgba(255,255,255,.55); }
.wa-previous time { color: var(--muted); font-size: .85rem; font-weight: 900; }
.deposit { font-weight: 900; color: #7a2e1d; }
.button-row, .tabs, .chips, .post-actions, .rsvp-dinner { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.rsvp-details { display: grid; gap: .75rem; padding: .75rem; border-radius: 1rem; background: rgba(139,74,43,.08); border: 1px dashed rgba(139,74,43,.35); }
.night-confirm { margin: 0; width: fit-content; padding: .35rem .65rem; border-radius: 999px; color: #fff8e8; background: var(--denim); font-weight: 950; }
.rsvp-dinner-title { font-weight: 950; color: var(--wood); }
.cost-hint { margin-bottom: 0; color: var(--muted); font-weight: 900; }
.who-list { display: grid; gap: .65rem; padding-left: 1.05rem; }
.who-list li { display: grid; gap: .18rem; }
.who-meta { color: var(--denim); font-weight: 900; }
.who-note { color: var(--muted); }
.composer-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.memory-check { justify-content: start; width: fit-content; padding: .45rem .75rem; border-radius: 999px; background: #fff0c9; color: #70400f; }
.post-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.post-head time { color: var(--muted); font-size: .86rem; }
.linklike { box-shadow: none; padding: .2rem .45rem; background: transparent; text-decoration: underline; border: 0; }
.danger-text { color: #9f2b1c; }
.post-body { white-space: pre-wrap; font-size: 1.05rem; }
.memory-tag { background: #fff0c9; color: #70400f; }
.whatsapp-tag { background: #e1fbef; color: #11653d; }
.photo-grid { display: grid; gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid.count-1 { grid-template-columns: 1fr; }
.photo-button, .gallery-photo, .memory-photo { position: relative; padding: 0; overflow: hidden; border-radius: .4rem; box-shadow: none; background: #ead09e; border: 2px solid rgba(59,36,22,.38); }
.photo-button img, .gallery-photo img, .memory-photo img { display: block; width: 100%; object-fit: cover; transition: transform .28s ease; }
.photo-button img { height: 14rem; }
.photo-button:hover img, .gallery-photo:hover img, .memory-photo:hover img { transform: scale(1.035); }
.pin-cover { position: absolute; left: .45rem; bottom: .45rem; padding: .3rem .5rem; border-radius: 999px; background: rgba(59,36,22,.78); color: #fff; font-size: .78rem; font-weight: 900; }
.comments { display: grid; gap: .35rem; }
.comment { background: #fff3d5; border-radius: 1rem; padding: .55rem .75rem; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 0, rgba(47,164,169,.18), transparent 24rem), rgba(25,14,8,.93); display: grid; place-items: center; padding: 1rem; }
.lightbox.slideshow { background: #120b07; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: .75rem; border: 2px solid var(--star); box-shadow: 0 0 90px rgba(232,182,76,.18); }
.lightbox.slideshow img { animation: slideshow-kenburns 5s ease-in-out infinite alternate; }
.lightbox.paused::after { content: "Pause"; position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(59,36,22,.72); border: 1px solid var(--star); border-radius: 999px; padding: .45rem .8rem; font-weight: 950; }
.lightbox-close, .lightbox-nav {
  position: fixed;
  z-index: 102;
  background: rgba(59,36,22,.7);
  color: #fff;
  border-color: rgba(232,182,76,.55);
}
.lightbox-close { right: 1rem; top: 1rem; font-size: 1.5rem; width: 3rem; height: 3rem; padding: 0; }
.lightbox-nav { top: 50%; width: 3.2rem; height: 3.2rem; padding: 0; font-size: 2rem; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(44rem, calc(100vw - 2rem));
  display: flex;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: #fff8e8;
  background: rgba(59,36,22,.72);
  border: 1px solid rgba(232,182,76,.5);
  border-radius: 999px;
  padding: .55rem .9rem;
  backdrop-filter: blur(12px);
}
@keyframes slideshow-kenburns { to { transform: scale(1.055) translate3d(1%, -.7%, 0); } }
.activity-grid, .who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.activity { display: grid; gap: .55rem; align-content: start; }
.activity h3 { margin: 0; font-family: var(--slab); font-size: 1.5rem; color: var(--wood); }
.gallery-card { overflow: hidden; background: linear-gradient(135deg, rgba(255,246,224,.96), rgba(220,172,105,.86)); }
.spotlight-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(59,36,22,.95), rgba(139,74,43,.9)),
    radial-gradient(circle at 80% 0, rgba(47,164,169,.35), transparent 13rem);
  color: #fff8e8;
}
.spotlight-card h2 { font-family: var(--slab); font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--star); }
.spotlight-card p { margin-bottom: 0; color: #f9e4bd; }
.spotlight-photo { width: 100%; border-radius: 1rem; padding: .45rem; border: 2px solid var(--star); background: linear-gradient(135deg, #70400f, #fff5bf, #9c6a1d); }
.spotlight-photo img { width: 100%; max-height: 32rem; object-fit: cover; display: block; border-radius: .65rem; }
.masonry { columns: 2 12rem; column-gap: 1rem; }
.gallery-photo {
  width: 100%;
  margin: 0 0 1rem;
  display: inline-block;
  background:
    linear-gradient(180deg, #f7e7c4, #e0bd80);
  border: .28rem solid #f7e7c4;
  border-bottom-width: 2rem;
  border-radius: .25rem;
  box-shadow: 0 16px 30px rgba(59,36,22,.24);
  animation: photo-fly-in .62s ease both, float-photo 6.5s ease-in-out infinite .62s;
}
.gallery-photo::before, .memory-photo::before {
  content: "";
  position: absolute;
  top: .35rem;
  left: 50%;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--star) 21% 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
  z-index: 2;
}
.gallery-photo.tilt-0 { transform: rotate(-2.2deg); }
.gallery-photo.tilt-1 { transform: rotate(1.8deg); }
.gallery-photo.tilt-2 { transform: rotate(-.8deg); }
.gallery-photo.tilt-3 { transform: rotate(2.6deg); }
.gallery-photo.tilt-4 { transform: rotate(-1.5deg); }
.gallery-photo:hover { transform: translateY(-.2rem) rotate(0deg) scale(1.025); }
.gallery-photo img { height: auto; min-height: 9rem; max-height: 22rem; border-radius: .12rem; }
.polaroid-caption {
  display: block;
  position: absolute;
  left: .3rem;
  right: .3rem;
  bottom: .25rem;
  color: #57331e;
  font-family: var(--mono);
  font-weight: 950;
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes float-photo { 50% { translate: 0 -.25rem; } }
@keyframes photo-fly-in { from { opacity: 0; transform: translateY(1rem) rotate(-5deg) scale(.94); } to { opacity: 1; } }
.memory-rail { display: flex; gap: .8rem; overflow-x: auto; padding: .3rem .1rem .7rem; }
.memory-photo { min-width: 13rem; border: .25rem solid #f7e7c4; border-bottom-width: 1.55rem; }
.memory-photo img { height: 11rem; }
.member-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .6fr auto auto; gap: .45rem; align-items: center; padding: .55rem; border-radius: 1rem; background: rgba(255,255,255,.42); }
.member-row.removed { opacity: .55; }
.check { display: flex; align-items: center; gap: .45rem; }
.check input { width: auto; }
.toast { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; padding: .8rem 1rem; border-radius: 999px; background: var(--wood); color: #fff8e8; box-shadow: 0 18px 36px rgba(0,0,0,.25); font-weight: 950; }
.toast.bad { background: #8f2115; }
.heart-pop { animation: heart-pop .42s ease; }
@keyframes heart-pop { 45% { transform: scale(1.18); } }
.yeehaw-burst, .confetti-burst { position: fixed; inset: 42% auto auto 50%; transform: translateX(-50%); z-index: 220; font-size: clamp(2.6rem, 11vw, 6rem); animation: western-pop 1.15s ease forwards; pointer-events: none; filter: drop-shadow(0 0 20px rgba(232,182,76,.55)); color: #fff7d0; text-shadow: 0 .08em 0 var(--wood), 0 .16em 0 var(--rust); font-weight: 950; white-space: nowrap; }
@keyframes western-pop { 45% { transform: translate(-50%, -3rem) scale(1.18) rotate(4deg); } to { opacity: 0; transform: translate(-50%, -7rem) scale(.85) rotate(-8deg); } }
.narrow { width: min(42rem, calc(100% - 2rem)); margin: 3rem auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 900px) {
  :root { --sidebar-width: 18rem; }
  .topbar { display: none; }
  .space-layout {
    display: block;
    min-height: 100vh;
    padding-left: var(--sidebar-width);
  }
  .cowboy-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    padding: 1.1rem;
    color: #fff8e8;
    background:
      radial-gradient(circle at 50% 0, rgba(232,182,76,.18), transparent 12rem),
      repeating-linear-gradient(90deg, #321d11 0 1.1rem, #3b2416 1.1rem 2.2rem);
    border-right: 3px solid rgba(232,182,76,.28);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cowboy-sidebar::before {
    content: "";
    position: absolute;
    inset: .7rem;
    border: 2px dashed rgba(232,182,76,.32);
    border-radius: 1.1rem;
    pointer-events: none;
  }
  .sidebar-monogram {
    position: relative;
    width: 10.8rem;
    min-height: 12.25rem;
    margin: .4rem auto;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .35rem;
    place-items: center;
    text-align: center;
    text-decoration: none;
    color: #fff8e8;
  }
  .sidebar-star {
    width: 9rem;
    height: 9rem;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 60% 31%, 92% 12%, 73% 45%, 100% 50%, 73% 55%, 92% 88%, 60% 69%, 50% 100%, 40% 69%, 8% 88%, 27% 55%, 0 50%, 27% 45%, 8% 12%, 40% 31%);
    background: radial-gradient(circle, #fff5bf 0 24%, var(--star) 25% 57%, #9c6a1d 58% 100%);
    color: var(--wood);
    font-family: var(--slab);
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 14px 20px rgba(0,0,0,.3));
  }
  .sidebar-ribbon {
    display: block;
    max-width: 10rem;
    padding: .28rem .65rem;
    border: 2px solid var(--star);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--leather), var(--rust));
    color: #fff8e8;
    font-size: .82rem;
    letter-spacing: .12em;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
  }
  .hero-cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 42%);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
  }
  .cover-copy {
    grid-column: 1;
    grid-row: 1;
    min-height: auto;
    max-width: 100%;
    align-content: center;
  }
  .cover, .cover-slideshow {
    grid-column: 2;
    grid-row: 1;
  }
  .cover {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(34rem, 62vh);
    transform: rotate(1.1deg);
  }
  .cover-slideshow {
    position: relative;
    inset: auto;
    min-height: min(34rem, 62vh);
    overflow: visible;
  }
  .cover-slideshow .cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .masthead { font-size: clamp(3.5rem, 6.3vw, 5.8rem); letter-spacing: .035em; }
  .cover-lines { max-width: 100%; }
  .sidebar-menu { display: grid; gap: .55rem; align-content: start; }
  .sidebar-tab {
    justify-content: flex-start;
    width: 100%;
    color: #fff8e8;
    background: rgba(255,255,255,.08);
    border-color: rgba(232,182,76,.28);
    box-shadow: none;
  }
  .sidebar-tab:hover { transform: translateX(.22rem) rotate(-.6deg); background: rgba(255,255,255,.12); }
  .sidebar-tab.active { background: linear-gradient(135deg, var(--leather), var(--rust)); color: #fff8e8; border-color: var(--star); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
  .sidebar-tab .nav-emoji { font-size: 1.55rem; width: 2rem; text-align: center; }
  .sidebar-tab .nav-label { font-size: 1.02rem; font-weight: 950; }
  .sidebar-bottom { position: relative; display: grid; gap: .75rem; align-self: end; }
  .sidebar-countdown {
    padding: .85rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.1);
    border: 1px dashed rgba(232,182,76,.34);
    display: grid;
    gap: .25rem;
  }
  .sidebar-countdown span:first-child { color: var(--star); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 950; }
  .sidebar-slideshow { width: 100%; }
  .sidebar-lang { width: fit-content; color: #fff8e8; }
  .sidebar-profile summary { color: #fff8e8; }
  .sidebar-profile .profile-menu { left: 0; right: auto; bottom: 2.8rem; top: auto; }
  .tab-content { scroll-margin-top: 1rem; }
}

@media (max-width: 899px) {
  body { font-size: 16px; }
  input, textarea, select { font-size: 16px; }
  button, .provider { min-height: 44px; }
  .topbar {
    gap: .35rem;
    padding: calc(.38rem + env(safe-area-inset-top, 0px)) .75rem .42rem;
  }
  .section-topbar .topbar-row { min-height: 2.25rem; }
  .home-topbar .topbar-row { min-height: 2.25rem; }
  .topbar-row { gap: .45rem; }
  .top-actions { gap: .35rem; flex: 0 0 auto; }
  .brand { letter-spacing: .02em; }
  .mobile-brand-badge { flex: 0 0 auto; font-size: .95rem; }
  .mobile-brand-badge span:last-child { white-space: nowrap; }
  .mobile-section-title { flex: 0 1 auto; max-width: 4.8rem; font-size: .96rem; }
  .lang-picker button { min-height: 32px; padding: .25rem .45rem; }
  .profile summary { max-width: 4.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-tabbar { gap: .38rem; padding-right: 2.5rem; }
  .mobile-tab { padding: .48rem .72rem; }
  .section-topbar + .space, .space { padding: .75rem; width: 100%; }
  .section-head { align-items: flex-start; }
  .card { padding: 1rem; border-radius: 1.15rem; max-width: 100%; }
  .gallery-tab, .spotlight-card, .gallery-card, .memory-strip { width: 100%; max-width: 100%; overflow: hidden; }
  .spotlight-card .section-head { display: grid; grid-template-columns: 1fr; justify-items: start; }
  .spotlight-card h2 {
    max-width: 100%;
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .spotlight-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: .42rem;
  }
  .spotlight-photo img { display: block; }
  .activity-grid, .who-grid { grid-template-columns: 1fr; }
  .activity, .who-card { width: 100%; }
  .masonry {
    columns: initial;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .gallery-photo {
    display: block;
    width: 100%;
    margin: 0;
    border-width: .22rem;
    border-bottom-width: 1.65rem;
    animation: none;
    transform: none !important;
  }
  .gallery-photo img { min-height: 8rem; max-height: 13rem; width: 100%; object-fit: cover; }
  .polaroid-caption { font-size: .9rem; bottom: .18rem; }
  .spotlight-card h2 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .spotlight-photo img { max-height: 18rem; width: 100%; object-fit: cover; }
  .memory-rail { max-width: 100%; }
  .memory-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    gap: .75rem;
    padding-bottom: .2rem;
  }
  .memory-photo { min-width: 0; width: 100%; }
  .memory-photo img { width: 100%; object-fit: cover; }
  .photo-grid, .stat-chips, .button-row, .chips, .post-actions, .rsvp-dinner { max-width: 100%; }
  .comment-form { grid-template-columns: 1fr; }
  .member-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; padding: 1rem; }
  .topbar-row { overflow: hidden; }
  .top-actions { min-width: 0; max-width: 58%; justify-content: flex-end; gap: .25rem; }
  .space-switcher summary { max-width: 4.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile summary { max-width: 4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-menu { max-width: calc(100vw - 2rem); }
  .hero-login { min-height: 18rem; }
  .hero-cover, .cover-copy { min-height: 42rem; }
  .cover { inset: auto 1rem 1.1rem 1rem; width: auto; height: 15rem; transform: rotate(-1.2deg); }
  .cover-slideshow .cover { inset: auto 1rem 1.1rem 1rem; }
  .cover-copy { align-content: start; padding-top: 1.8rem; }
  .hero-cover .lead, .hero-cover .place-line, .hero-cover .cover-note { display: none; }
  .gold-55 { width: 6.4rem; height: 6.4rem; font-size: 2.35rem; margin-bottom: .65rem; }
  .photo-button img { height: 10rem; }
  .memory-photo { min-width: 10.5rem; }
  .memory-photo img { height: 9rem; }
}

html.theme-grece-amour {
  --sand: #fbf8f2;
  --sand-light: #fffaf2;
  --leather: #1f5fa8;
  --wood: #123e73;
  --rust: #eaa4ae;
  --turquoise: #1f5fa8;
  --denim: #123e73;
  --star: #f2b632;
  --ink: #123e73;
  --muted: #647392;
  --card: rgba(251,248,242,.94);
  --line: rgba(31,95,168,.22);
  --slab: Didot, "Bodoni 72", "Playfair Display", Georgia, serif;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #fbf8f2;
}
body.theme-grece-amour {
  background:
    radial-gradient(circle at 18% 0, rgba(242,182,50,.22), transparent 19rem),
    radial-gradient(circle at 90% 8%, rgba(234,164,174,.2), transparent 21rem),
    linear-gradient(180deg, #fbf8f2 0, #f3e2bd 62%, #fbf8f2 100%);
}
body.theme-grece-amour::before {
  opacity: .18;
  background:
    repeating-linear-gradient(90deg, transparent 0 .6rem, rgba(31,95,168,.2) .6rem .75rem, transparent .75rem 1.35rem),
    radial-gradient(circle at 50% 0, rgba(255,255,255,.7), transparent 32rem);
  mix-blend-mode: multiply;
}
.theme-grece-amour .card {
  border-color: rgba(31,95,168,.22);
  background:
    radial-gradient(circle at 100% 0, rgba(242,182,50,.12), transparent 11rem),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(251,248,242,.9));
  box-shadow: 0 24px 58px rgba(18,62,115,.14), inset 0 0 0 1px rgba(255,255,255,.62);
}
.theme-grece-amour .card::after { border-style: solid; border-color: rgba(31,95,168,.12); }
.theme-grece-amour button, .theme-grece-amour .provider {
  border-color: rgba(31,95,168,.18);
  background: linear-gradient(135deg, #fff, #f3e2bd);
  color: #123e73;
}
.theme-grece-amour button.primary {
  color: #fff;
  border-color: rgba(242,182,50,.65);
  background: linear-gradient(135deg, #1f5fa8, #123e73);
}
.theme-grece-amour .topbar {
  background:
    linear-gradient(90deg, rgba(31,95,168,.96), rgba(18,62,115,.94)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 .5rem, transparent .5rem 1rem);
}
.theme-grece-amour .topbar::after { background: linear-gradient(90deg, rgba(18,62,115,0), rgba(18,62,115,.9) 54%, #123e73); }
.theme-grece-amour .cowboy-sidebar {
  background:
    radial-gradient(circle at 50% 0, rgba(242,182,50,.18), transparent 12rem),
    linear-gradient(180deg, #123e73, #1f5fa8);
}
.theme-grece-amour .sidebar-star, .theme-grece-amour .mini-star {
  clip-path: ellipse(48% 48% at 50% 50%);
  background: radial-gradient(circle, #f8d978, #f2b632);
}
.theme-grece-amour .sidebar-ribbon { color: #fbf8f2; border-color: rgba(255,255,255,.45); }
.theme-grece-amour .sidebar-tab.active { background: linear-gradient(135deg, #f2b632, #f3e2bd); color: #123e73; }
.space-switcher { position: relative; color: inherit; }
.space-switcher summary { cursor: pointer; font-weight: 950; }
.space-switcher .profile-menu a { display: block; padding: .45rem 0; color: var(--wood); text-decoration: none; }
.chooser-page { grid-template-columns: 1fr; min-height: 100vh; place-items: center; }
.chooser-card { width: min(42rem, 100%); display: grid; gap: 1rem; }
.space-chooser-list { display: grid; gap: .75rem; }
.nath-home, .nath-story, .guestbook-section, .nath-gallery { display: grid; gap: 1rem; }
.nath-hero { overflow: hidden; display: grid; gap: 1rem; align-items: center; }
.nath-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31,95,168,.12) 0 .45rem, transparent .45rem .9rem) top/1.8rem .35rem repeat-x,
    linear-gradient(90deg, rgba(31,95,168,.12) 0 .45rem, transparent .45rem .9rem) bottom/1.8rem .35rem repeat-x;
}
.nath-hero h1, .nath-story h1, .nath-gallery h1, .guestbook-form h1 {
  font-family: var(--slab);
  color: #123e73;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: .95;
  margin: .2rem 0;
}
.nath-49 {
  width: min(13rem, 55vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: .3rem 0;
  border-radius: 50%;
  font-family: var(--slab);
  font-size: clamp(5rem, 18vw, 8.5rem);
  color: #123e73;
  background:
    radial-gradient(circle, #f3e2bd 0 45%, transparent 46%),
    repeating-conic-gradient(from 8deg, rgba(242,182,50,.9) 0 8deg, rgba(242,182,50,.2) 8deg 16deg);
  text-shadow: 0 4px 0 rgba(255,255,255,.7);
}
.arch-slideshow, .arch-placeholder {
  min-height: 22rem;
  border: .55rem solid #fbf8f2;
  border-radius: 48% 48% 1.2rem 1.2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1f5fa8, #f3e2bd);
  box-shadow: 0 22px 48px rgba(18,62,115,.22);
}
.arch-slideshow img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  animation: cover-kenburns 13s ease-in-out infinite alternate;
}
.arch-slideshow img:not(:first-child) { display: none; }
.arch-placeholder { display: grid; place-items: center; color: white; font: 900 2rem var(--slab); }
.sam-note p, .timeline-item p, .pearls-card p { font-size: 1.04rem; line-height: 1.65; }
.timeline { display: grid; gap: 1rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 3px; background: linear-gradient(#f2b632, #1f5fa8); border-radius: 99px; }
.timeline-item { padding-left: 2rem; position: relative; }
.timeline-item::before { content: "🌿"; position: absolute; left: -.25rem; top: .1rem; }
.timeline-item time { color: #7a8c3a; font-weight: 950; }
.timeline-item h2 { margin: .1rem 0; font-family: var(--slab); color: #1f5fa8; }
.pearls-grid, .love-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pearls-grid blockquote, .love-note-grid .post {
  margin: 0;
  background: linear-gradient(135deg, #fff, #fbf8f2);
  border: 1px solid rgba(31,95,168,.18);
}
.pearls-grid blockquote { padding: 1rem; border-radius: 1.1rem; box-shadow: 0 16px 34px rgba(18,62,115,.12); }
.pearls-grid footer { color: #1f5fa8; font-weight: 950; }
.nath-polaroids .gallery-photo { background: #fff; border-color: rgba(31,95,168,.16); box-shadow: 0 18px 32px rgba(18,62,115,.16); }
.theme-grece-amour .pin-cover { display: none; }
.party-placeholder {
  min-height: 22rem;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(242,182,50,.24), transparent 12rem),
    linear-gradient(135deg, #fbf8f2, #f3e2bd);
}
@media (min-width: 900px) {
  .theme-grece-amour .nath-hero { grid-template-columns: 1fr .85fr; min-height: 36rem; }
  .theme-grece-amour .space { max-width: 1180px; }
}
@media (prefers-reduced-motion: reduce) {
  .arch-slideshow img { animation: none; }
}
