/* ═══════════════════════════════════════════════════════════
   INVÉ · styles.css · shared stylesheet for all event pages

   The :root palette below is fully tokenised. Replace each
   {{COLOR_*}} value per event before deploying. Defaults shown
   in the Daylight reference theme (themes/daylight.json):
   - bg     #F1ECEC  bg2 #FAF7F6  bg3 #E6DEDE
   - ink    #1C1320  ink-d #0F0814
   - accent #E51D88  accent-l #f73a9d
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ═══ THEME PALETTE — tokenised ═══ */
  --bg: #f3f2f2;
  --bg2: #f3f2f2;
  --bg3: #e9e8e8;
  --ink: #0047AB;
  --ink-d: #0043a1;
  --accent: #0047AB;
  /* RGB components for alpha-tinted overlays. Builder should set these to match --ink and --bg as comma-separated R, G, B. */
  --ink-rgb: 0, 71, 171;
  --bg-rgb: 243, 242, 242;
  --accent-l: #0047AB;

  --white: #ffffff;
  --body: rgba(0, 71, 171, 0.82);
  --muted: rgba(0, 71, 171, 0.6);
  --faint: rgba(0, 71, 171, 0.32);
  --line: rgba(0, 71, 171, 0.15);
  --line-accent: rgba(0, 71, 171, 0.4);
  --glow: rgba(0, 71, 171, 0.18);

  /* Status */
  --grn: #0047AB;
  --grn-f: rgba(0, 71, 171, 0.06);
  --red: #0047AB;
  --red-f: rgba(0, 71, 171, 0.08);

  /* Type scale */
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Outfit', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-weight: 400;
  color: var(--body);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--bg2) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Subtle paper noise — kept very low so it reads as warm paper */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ═══ A11y & utilities ═══ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ═══ INVÉ bar ═══ */
.inve-bar {
  background: #0E0810;
  padding: 0.55rem 1.5rem;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  border-bottom: 1px solid #0E0810;
}
.inve-bar a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.inve-bar a:hover { color: #fff; }

/* ═══ Nav ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--f-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.nav-brand em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.nav-a {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.65rem 1rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  margin-left: 0.6rem;
}
.nav-cta:hover {
  background: var(--ink-d);
  box-shadow: 0 6px 20px var(--glow);
}
.bell-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  margin-left: 0.4rem;
}
.bell-btn:hover {
  border-color: var(--ink);
  background: rgba(var(--ink-rgb), 0.04);
}
.bell-btn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(var(--ink-rgb), 0.25);
}
.bell-btn.on:hover {
  background: var(--ink-d);
  border-color: var(--ink-d);
}
.bell-btn .icon-off { display: block; }
.bell-btn .icon-on { display: none; }
.bell-btn.on .icon-off { display: none; }
.bell-btn.on .icon-on { display: block; }
.bell-dot {
  display: none;
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(var(--ink-rgb), 0.25);
}
.bell-btn.has-new .bell-dot { display: block; animation: pulse 1.8s ease-in-out infinite; }

/* Toast shown briefly when bell is toggled */
.bell-toast {
  position: fixed;
  top: 5.2rem;
  right: 1.2rem;
  z-index: 200;
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.75rem 1.1rem;
  font-size: 0.78rem;
  color: var(--bg);
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.bell-toast.show { opacity: 1; transform: translateY(0); }
.bell-toast-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.bell-toast.on .bell-toast-icon { background: var(--bg); }
.bell-toast.off .bell-toast-icon { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); }

@media (max-width: 420px) {
  .bell-toast { top: 4.2rem; right: 0.6rem; font-size: 0.72rem; padding: 0.6rem 0.9rem; }
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.4rem;
}

/* ═══ Push banner ═══ */
.push-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  max-width: 420px;
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 1.1rem 1.2rem;
  z-index: 90;
  display: none;
  box-shadow: 0 16px 40px rgba(var(--ink-rgb), 0.25);
}
.push-banner.show { display: block; animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.push-banner-title {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 0.3rem;
}
.push-banner-body {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.push-banner-actions {
  display: flex;
  gap: 0.6rem;
}
.push-banner-actions button {
  flex: 1;
  padding: 0.55rem 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--f-sans);
  border: none;
  transition: all 0.3s;
}
.push-banner-actions .yes { background: var(--bg); color: var(--ink); }
.push-banner-actions .yes:hover { background: var(--white); }
.push-banner-actions .no {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.push-banner-actions .no:hover { color: var(--bg); border-color: rgba(255, 255, 255, 0.5); }

/* ═══ Hero ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 5rem;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  animation: portraitSlide 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
  background: var(--bg3);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.96) contrast(1.02);
  animation: imgZoom 12s ease-out 0.15s both;
}
.hero-content { position: relative; padding: 1rem 0; }
.hero-presents {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.8rem;
  opacity: 0.85;
}
.hero-h1 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.92;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.hero-h1 .brand-connector {
  display: inline-block;
  font-family: var(--f-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 0.48em;
  color: var(--accent);
  vertical-align: 0.9em;
  margin: 0 0.12em;
  letter-spacing: 0.04em;
}
.hero-h1 .brand-accent {
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}
.hero-tagline {
  font-size: 0.74rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2.2rem;
  opacity: 0.82;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--body);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 2.8rem;
}

/* Hero facts */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.fact { padding: 1rem 1.5rem 1rem 0; border-right: 1px solid var(--line); }
.fact:nth-child(2) { padding-left: 1.5rem; border-right: none; }
.fact:nth-child(3) {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  border-right: none;
  padding-right: 0;
}
.fact-lbl {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}
.fact-val {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--ink);
  line-height: 1;
}
.fact-val b { color: var(--accent); font-weight: 400; font-style: italic; }

.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.15rem 2.4rem;
  font-family: var(--f-sans);
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-d);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--glow); }
.btn:hover::before { transform: translateX(0); }
.btn .arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.4s;
}
.btn:hover .arrow { transform: translateX(6px); }

.btn-o {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-o::before { background: var(--ink); }
.btn-o:hover { color: var(--bg); box-shadow: 0 8px 24px var(--glow); }

/* Small inline WhatsApp link */
.wa-line {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.7;
}
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
  padding: 0.1rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s ease;
}
.wa-link:hover,
.wa-link:focus-visible {
  opacity: 0.65;
}
.wa-link svg {
  opacity: 0.9;
  flex-shrink: 0;
}

.hero-slots {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ═══ Section base ═══ */
section { padding: 6rem 2rem; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

.slabel {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.slabel::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--ink);
  opacity: 0.8;
}

.stitle {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.stitle em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.sub {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 620px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.sec-dark {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-darker {
  background: var(--bg3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ═══ Countdown (minimal) ═══ */
.countdown {
  padding: 3rem 2rem;
  background: transparent;
}
.countdown-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.countdown-lbl {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.countdown-strip {
  display: inline-flex;
  align-items: baseline;
  gap: 1.3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cd-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}
.cd-num {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.cd-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.4;
  align-self: center;
}

/* ═══ Coordinator ═══ */
.coord-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 2.5rem 2.2rem;
  text-align: center;
}
.coord-role {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.coord-name {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.coord-phone {
  font-size: 1rem;
  color: var(--body);
  letter-spacing: 0.04em;
  margin-bottom: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.coord-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.coord-actions .btn { padding: 0.95rem 1.8rem; }

/* ═══ Wishes ═══ */
.wishes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.wishes-head-text { max-width: 560px; }
.wishes-head-text .sub { margin-bottom: 0; }

.wishes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.wish-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  position: relative;
}
.wish-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}
.wish-name {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.wish-msg {
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.8;
  font-style: italic;
}
.wish-msg::before {
  content: '“';
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--ink);
  vertical-align: -0.4em;
  margin-right: 0.1rem;
  line-height: 0;
}
.wish-msg::after {
  content: '”';
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--ink);
  vertical-align: -0.4em;
  margin-left: 0.1rem;
  line-height: 0;
}
.wish-date {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9rem;
  font-weight: 600;
}
.wishes-empty {
  padding: 2.5rem;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
  grid-column: 1 / -1;
}

.wish-form {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}
.wish-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fld { display: flex; flex-direction: column; gap: 0.5rem; }
.fld label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.fld input, .fld select, .fld textarea {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border 0.25s, background 0.25s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  border-color: var(--ink);
  background: var(--white);
}
.fld input::placeholder, .fld textarea::placeholder {
  color: rgba(var(--ink-rgb), 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}
.form-msg {
  display: none;
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--ink);
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--ink);
  line-height: 1.6;
}
.form-msg.show { display: block; }
.form-msg.error {
  border-left-color: var(--red);
  background: var(--red-f);
  color: var(--red);
}
.form-msg.success {
  border-left-color: var(--grn);
  background: var(--grn-f);
  color: var(--grn);
}

.wishes-foot { text-align: center; margin-top: 1.5rem; }

/* ═══ Updates ═══ */
.updates-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.updates-pulse {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  background: var(--bg2);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(var(--ink-rgb), 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
.update-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.update-card {
  background: var(--bg2);
  padding: 1.8rem 2rem;
  position: relative;
  transition: background 0.4s;
}
.update-card:hover { background: var(--white); }
.update-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
}
.update-card-title {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.update-card-body {
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 0.8rem;
  white-space: pre-wrap;
}
.update-card-time {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.updates-empty {
  padding: 3rem 2rem;
  background: var(--bg2);
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
}
.updates-foot { text-align: center; margin-top: 1.5rem; }

.new-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  margin-left: 0.55rem;
  font-weight: 700;
  animation: pulse 1.5s ease infinite;
}

/* ═══ Memory book teaser ═══ */
.memory-teaser {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 3.5rem 2.5rem;
  text-align: center;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
.memory-teaser-icon {
  width: 64px; height: 64px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 1.8rem;
}
.memory-teaser-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1.15;
}
.memory-teaser-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.memory-teaser-body {
  font-size: 1rem;
  color: var(--body);
  max-width: 520px;
  line-height: 1.8;
}

/* ═══ RSVP embedded ═══ */
.rsvp-sec {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rsvp-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
}
.rsvp-wrap .slabel { justify-content: center; }
.rsvp-wrap .stitle { text-align: center; }
.rsvp-wrap .sub { text-align: center; margin: 0 auto 2.5rem; }
.rsvp-form {
  display: grid;
  gap: 1.2rem;
}
.rsvp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.diet-toggle {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.diet-toggle button {
  padding: 0.8rem 1.4rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--f-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.diet-toggle button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.diet-toggle button:hover { border-color: var(--ink); color: var(--ink); }
.diet-toggle button.on:hover { color: var(--bg); }
.diet-text { display: none; }
.diet-text.show { display: flex; }

.attending-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.attending-row button {
  padding: 1rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--body);
  font-family: var(--f-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.attending-row button:hover { border-color: var(--ink); color: var(--ink); }
.attending-row button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.rsvp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.rsvp-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.2rem;
  line-height: 1.7;
}
.rsvp-note b { color: var(--ink); font-weight: 600; }

/* ═══ Reveal ═══ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ Footer ═══ */
footer {
  background: var(--ink);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--ink);
  text-align: center;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-brand {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 2.6rem;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 1.8rem;
}
.footer-brand em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85em;
}
.footer-div {
  width: 40px;
  height: 1px;
  background: var(--bg);
  margin: 0 auto 2rem;
  opacity: 0.6;
}
.footer-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}
.footer-inve {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.footer-inve a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

/* ═══ What Awaits ═══ */
.awaits {
  padding: 5rem 2rem;
}
.awaits .container { max-width: 1000px; }
.awaits-panel {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 2.8rem 2.8rem 2.5rem;
  margin-bottom: 3rem;
}
.awaits-lede {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}
.awaits-intro {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.awaits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.awaits-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}
.awaits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.awaits-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

@media (max-width: 768px) {
  .awaits { padding: 3rem 1.3rem; }
  .awaits-panel { padding: 1.8rem 1.5rem; margin-bottom: 2rem; }
  .awaits-lede { font-size: 0.95rem; }
  .awaits-list li { font-size: 0.98rem; padding-left: 1.5rem; }
  .awaits-tag { font-size: 0.78rem; letter-spacing: 0.16em; }
}

/* ═══ Animations ═══ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes highlight {
  0% { background: rgba(var(--ink-rgb), 0.08); }
  100% { background: var(--bg2); }
}
@keyframes portraitSlide {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes imgZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 4 / 5;
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.7rem 0.9rem;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }
  .nav-brand { font-size: 1.1rem; }
  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    flex-direction: row;
    gap: 0;
    padding: 0;
    border-bottom: none;
    align-items: center;
  }
  .nav-a {
    padding: 0.55rem 0.55rem;
    border-bottom: none;
    width: auto;
    font-size: 0.56rem;
    letter-spacing: 0.2em;
  }
  .nav-cta {
    margin-left: 0.2rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.54rem;
    letter-spacing: 0.18em;
  }
  .bell-btn {
    margin-left: 0.3rem;
    width: 32px;
    height: 32px;
  }
  .bell-btn svg { width: 15px; height: 15px; }
  .nav-toggle { display: none; }
  body { background-attachment: scroll; }
  .hero { padding: 7rem 1.3rem 4rem; min-height: auto; }
  .facts { grid-template-columns: 1fr; max-width: 100%; }
  .fact {
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 1rem 0 !important;
  }
  .fact:first-child { border-top: none; }
  .countdown { padding: 2.5rem 1.3rem; }
  .countdown-strip { gap: 0.9rem; }
  .cd-pair { gap: 0.3rem; }
  section { padding: 4rem 1.3rem; }
  .wishes-grid { grid-template-columns: 1fr; }
  .wish-form-row, .rsvp-row { grid-template-columns: 1fr; }
  .rsvp-wrap { padding: 2rem 1.4rem; }
  .coord-card { padding: 2rem 1.5rem; }
  .memory-teaser { padding: 2.5rem 1.5rem; }
}

@media (max-width: 420px) {
  .nav { padding: 0.6rem 0.6rem; }
  .nav-brand { font-size: 0.95rem; }
  .nav-a { padding: 0.45rem 0.35rem; font-size: 0.5rem; letter-spacing: 0.14em; }
  .nav-cta { padding: 0.5rem 0.6rem; font-size: 0.5rem; letter-spacing: 0.14em; }
  .bell-btn { width: 28px; height: 28px; margin-left: 0.2rem; }
  .bell-btn svg { width: 13px; height: 13px; }
  .hero-h1 { font-size: 3.6rem; }
  .hero-cta-wrap { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero-cta-wrap .btn { width: 100%; }
  .coord-actions { flex-direction: column; }
  .coord-actions .btn { width: 100%; }
  .attending-row { grid-template-columns: 1fr; }
  .rsvp-submit { flex-direction: column; align-items: stretch; }
  .rsvp-submit .btn { width: 100%; }
}
