:root {
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --sage: #7f8b58;
  --sage-2: #98a274;
  --sage-dark: #4c5938;
  --ink: #344038;
  --muted: #6e756e;
  --gold: #b99b61;
  --rose: #e5b4b0;
  --lavender: #c5bfdf;
  --sky: #b8d4de;
  --peach: #e9c796;
  --line: rgba(52, 64, 56, .16);
  --shadow: 0 22px 70px rgba(56, 69, 50, .14);
  --radius: 28px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: rgba(127, 139, 88, .25); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(3.1rem, 7vw, 6rem); margin-bottom: 1.1rem; letter-spacing: -.045em; }
h3 { font-size: clamp(1.55rem, 3vw, 2.25rem); }

.section { position: relative; padding: clamp(5.5rem, 10vw, 9.5rem) 1.25rem; overflow: hidden; }
.section-shell { width: min(1180px, 100%); margin: 0 auto; position: relative; z-index: 2; }
.section-heading { max-width: 780px; margin: 0 auto 3.5rem; text-align: center; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-heading.align-left { margin-left: 0; text-align: left; }
.section-kicker, .eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1rem;
}
.lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.8vw, 2.1rem); line-height: 1.35; }
.small-note { font-size: .86rem; color: var(--muted); }
.optional { color: var(--muted); font-size: .72rem; font-weight: 400; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 50px;
  border-radius: 999px;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(183, 206, 217, .95);
  outline-offset: 3px;
}
.button-primary { background: var(--sage); color: white; box-shadow: 0 12px 28px rgba(83, 98, 56, .22); }
.button-primary:hover { background: var(--sage-dark); }
.button-ghost { background: rgba(255,255,255,.48); border-color: rgba(52,64,56,.22); color: var(--ink); }
.button-ghost:hover { background: white; }
.button-outline { background: transparent; border-color: var(--sage); color: var(--sage-dark); }
.button-outline:hover { background: var(--sage); color: white; }
.button-light { background: white; color: var(--sage-dark); }
.button-wide { width: 100%; }
.text-link { border: 0; background: transparent; padding: .25rem 0; color: var(--sage-dark); font-weight: 600; cursor: pointer; border-bottom: 1px solid currentColor; }

.scroll-progress { position: fixed; z-index: 1001; top: 0; left: 0; width: 100%; height: 3px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--sage), var(--gold), var(--rose)); }

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 12% 16%, rgba(229,180,176,.46), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(197,191,223,.42), transparent 24%),
    radial-gradient(circle at 73% 85%, rgba(184,212,222,.43), transparent 24%),
    var(--ivory);
  transition: opacity .75s ease, visibility .75s ease;
}
.welcome-screen::before, .welcome-screen::after {
  content: "";
  position: absolute;
  width: min(420px, 54vw);
  aspect-ratio: 1;
  background: url('../img/floral-corner-left.svg') center/contain no-repeat;
  opacity: .8;
  pointer-events: none;
}
.welcome-screen::before { left: -7%; bottom: -12%; }
.welcome-screen::after { right: -7%; top: -12%; transform: rotate(180deg); }
.welcome-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-card {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: clamp(2.3rem, 7vw, 5rem);
  text-align: center;
  background: rgba(255,253,248,.76);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.welcome-card h1 { font-size: clamp(3.7rem, 10vw, 7rem); margin-bottom: .3rem; }
.welcome-card > p { font-family: var(--serif); font-size: 1.2rem; color: var(--muted); }
.welcome-card small { display: block; margin-top: 1rem; color: var(--muted); font-size: .74rem; }
.welcome-card .button svg { width: 16px; fill: currentColor; }
.monogram { width: 98px; height: 98px; margin: 0 auto 1.2rem; display: inline-flex; align-items: center; justify-content: center; gap: .08rem; border: 1px solid rgba(127,139,88,.35); border-radius: 50%; color: var(--sage-dark); line-height: 1; overflow: hidden; }
.monogram-letter { font-family: var(--serif); font-size: 1.85rem; line-height: 1; }
.monogram-amp { font-family: var(--script); font-size: 2.25rem; line-height: .78; color: var(--gold); transform: translateY(.06rem); }
.invitation-blocked .site-header,
.invitation-blocked .music-button,
.invitation-blocked main,
.invitation-blocked .site-footer {
  display: none;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem .8rem .7rem 1.1rem;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,253,248,.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(51,63,50,.07);
  transition: background .25s ease, box-shadow .25s ease, top .25s ease;
}
.site-header.is-scrolled { top: 8px; background: rgba(255,253,248,.92); box-shadow: 0 13px 35px rgba(51,63,50,.12); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: white; font-family: var(--serif); }
.brand-text { font-family: var(--serif); font-size: 1.2rem; }
.main-nav { display: flex; align-items: center; gap: .1rem; }
.main-nav a { padding: .65rem .78rem; text-decoration: none; font-size: .72rem; font-weight: 500; letter-spacing: .04em; border-radius: 999px; }
.main-nav a:hover { background: rgba(127,139,88,.10); }
.main-nav .nav-cta { background: var(--sage); color: white; padding-inline: 1.1rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(127,139,88,.12); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 4px auto; background: var(--ink); }

.music-button {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  padding: .65rem .95rem;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(76,89,56,.92);
  color: white;
  box-shadow: 0 10px 28px rgba(45,55,39,.22);
  cursor: pointer;
}
.music-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.music-bars { height: 16px; display: flex; align-items: flex-end; gap: 2px; }
.music-bars i { display: block; width: 2px; height: 6px; background: white; border-radius: 2px; }
.music-button[aria-pressed="true"] .music-bars i { animation: equalizer .7s ease-in-out infinite alternate; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: -.45s; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: -.2s; }
.music-button[aria-pressed="true"] .music-bars i:nth-child(4) { animation-delay: -.62s; }
@keyframes equalizer { from { height: 4px; } to { height: 16px; } }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 9rem 1.25rem 8rem;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(251,247,239,.86), rgba(251,247,239,.78)),
    radial-gradient(circle at center, white, var(--ivory));
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(255,255,255,.55)); }
.hero-content { position: relative; z-index: 3; max-width: 880px; }
.hero h1 { margin: 0 0 .8rem; font-size: clamp(4.6rem, 13vw, 10rem); letter-spacing: -.06em; }
.hero h1 span { display: inline-block; }
.hero h1 em { display: inline-block; margin: 0 .16em; font-family: var(--script); font-size: .64em; color: var(--sage); font-weight: 400; }
.hero-date { margin-bottom: .15rem; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: .06em; }
.hero-place { color: var(--muted); font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-line { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 1.8rem auto; max-width: 280px; color: var(--gold); }
.hero-line span { height: 1px; flex: 1; background: rgba(185,155,97,.45); }
.hero-intro { max-width: 600px; margin: 0 auto 2rem; font-family: var(--serif); font-size: 1.25rem; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.floral-corner { position: absolute; z-index: 1; width: min(520px, 54vw); pointer-events: none; opacity: .9; }
.floral-left { left: -4%; bottom: -2%; }
.floral-right { right: -4%; top: -2%; transform: scaleX(-1); }
.watercolor-cloud { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .38; }
.cloud-one { width: 38vw; height: 29vw; left: 9%; top: 18%; background: radial-gradient(circle at 45% 45%, rgba(184,212,222,.7), rgba(197,191,223,.22) 58%, transparent 70%); transform: rotate(-12deg); }
.cloud-two { width: 33vw; height: 24vw; right: 9%; bottom: 17%; background: radial-gradient(circle at 45% 45%, rgba(229,180,176,.58), rgba(233,199,150,.22) 58%, transparent 72%); transform: rotate(15deg); }
.countdown-wrap { position: absolute; z-index: 4; right: clamp(1.5rem, 4vw, 3rem); bottom: 2.25rem; width: min(560px, calc(100% - 2rem)); }
.countdown-wrap > p { margin-bottom: .35rem; font-family: var(--script); font-size: 1.7rem; color: var(--sage-dark); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(70px, 1fr)); gap: .6rem; }
.countdown > div { padding: .6rem .85rem; border: 1px solid rgba(127,139,88,.16); border-radius: 16px; background: rgba(255,253,248,.55); backdrop-filter: blur(7px); }
.countdown strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; font-weight: 500; }
.countdown span { display: block; margin-top: .18rem; color: var(--muted); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.sticky-countdown { position: fixed; z-index: 30; right: 1rem; bottom: 5.75rem; display: flex; align-items: baseline; gap: .32rem; padding: .7rem .85rem; border: 1px solid rgba(127,139,88,.22); border-radius: 999px; background: rgba(255,253,248,.9); color: var(--ink); box-shadow: 0 14px 34px rgba(52,64,56,.16); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .24s ease, transform .24s ease; }
.sticky-countdown.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.sticky-countdown span { margin-right: .22rem; font-family: var(--script); font-size: 1.25rem; color: var(--sage-dark); }
.sticky-countdown strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1; font-weight: 600; }
.sticky-countdown small { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
body.invitation-blocked .sticky-countdown { display: none; }
body.paint-panel-visible .sticky-countdown { display: none; }
body.paint-panel-visible .music-button { display: none; }
.scroll-cue { position: absolute; z-index: 5; left: 2rem; bottom: 2rem; width: 30px; height: 50px; border: 1px solid rgba(52,64,56,.32); border-radius: 999px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--sage-dark); transform: translateX(-50%); animation: scrollCue 1.7s infinite; }
@keyframes scrollCue { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,20px); } }

.story-section { background: var(--sage); color: white; }
.story-section::before { content: ""; position: absolute; inset: 0; background: url('../img/paper-texture.svg') center/cover; opacity: .12; mix-blend-mode: screen; }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.story-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.story-frame { position: relative; width: min(390px, 90%); padding: 1.2rem; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.26); border-radius: 45% 45% 42% 58% / 52% 36% 64% 48%; transform: rotate(-3deg); }
.story-frame img { filter: drop-shadow(0 18px 30px rgba(44,55,36,.20)); transform: rotate(3deg); }
.paint-splash { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .5; }
.splash-a { width: 160px; height: 120px; left: 1%; top: 8%; background: rgba(184,212,222,.45); transform: rotate(-14deg); }
.splash-b { width: 120px; height: 145px; right: 6%; bottom: 4%; background: rgba(229,180,176,.45); transform: rotate(19deg); }
.story-copy .section-kicker { color: rgba(255,255,255,.7); }
.story-copy p { color: rgba(255,255,255,.83); }
.story-copy blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 2px solid rgba(255,255,255,.45); font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: white; }
.story-copy .text-link { color: white; }
.story-design-shell { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.story-design-board {
  position: relative;
  min-height: 540px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(184,212,222,.26), transparent 34%),
    radial-gradient(circle at 80% 76%, rgba(229,180,176,.22), transparent 34%),
    rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.story-design-photo {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 10%);
  width: var(--w, 56%);
  height: var(--h, 60%);
  z-index: var(--z, 1);
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255,253,248,.88);
  border-radius: 22px;
  background: rgba(255,253,248,.75);
  box-shadow: 0 18px 42px rgba(20,25,21,.24);
  transform: rotate(var(--rotate, 0deg));
  transform-origin: center;
}
.story-design-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
}
.story-design-copy { max-width: 620px; }

.event-section { background: var(--paper); }
.event-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.event-card { position: relative; padding: 2rem 2rem 2.35rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.75); box-shadow: 0 20px 55px rgba(63,74,58,.08); overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: auto -20% -42% 20%; height: 62%; background: radial-gradient(circle, rgba(184,212,222,.27), transparent 65%); }
.event-illustration { height: 230px; display: grid; place-items: center; margin-bottom: 1rem; }
.event-illustration img { max-height: 100%; }
.event-label { margin-bottom: .65rem; color: var(--sage-dark); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.event-card h3 { margin-bottom: .8rem; }
.event-card p { color: var(--muted); margin-bottom: .45rem; }
.event-card .button { position: relative; z-index: 1; margin-top: 1.2rem; }
.event-note { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; text-align: center; color: var(--sage-dark); }
.event-note p { margin: 0; font-family: var(--script); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.event-note span { color: var(--gold); }

.schedule-section { min-height: 760px; background: linear-gradient(120deg, #eaf2f3 0%, #f8f3e8 46%, #f4e5dd 100%); }
.schedule-section::before { content: ""; position: absolute; inset: 0; background: url('../img/paper-texture.svg') center/cover; opacity: .22; }
.schedule-shell { display: grid; grid-template-columns: .7fr 1.1fr; gap: 4rem; align-items: start; }
.palette-art { position: absolute; right: -3%; top: 50%; width: min(610px, 52vw); transform: translateY(-50%) rotate(1deg); opacity: .92; }
.timeline { position: relative; z-index: 3; padding: 1rem 0 0; }
.timeline::before { content: ""; position: absolute; left: 144px; top: 2rem; bottom: 2rem; width: 1px; background: rgba(76,89,56,.24); }
.timeline-item { display: grid; grid-template-columns: 120px 48px 1fr; gap: .75rem; align-items: start; min-height: 105px; }
.timeline-item time { padding-top: .25rem; font-family: var(--serif); font-size: 1.2rem; color: var(--sage-dark); text-align: right; }
.timeline-item > span { position: relative; width: 12px; height: 12px; margin: .55rem auto 0; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 6px rgba(127,139,88,.14); }
.timeline-item h3 { margin-bottom: .25rem; font-size: 1.65rem; }
.timeline-item p { color: var(--muted); font-size: .9rem; }

.attire-section { background: var(--paper); }
.attire-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.attire-figure { position: relative; }
.attire-figure::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; left: 7%; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(229,180,176,.24), transparent 70%); }
.attire-figure img { position: relative; z-index: 1; max-height: 610px; margin: auto; }
.attire-copy { max-width: 570px; }
.attire-copy h2 { font-size: clamp(3.3rem, 7vw, 6.8rem); }
.color-palette { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.color-palette span { width: 48px; height: 48px; border-radius: 50%; background: var(--swatch); border: 4px solid white; box-shadow: 0 8px 20px rgba(45,55,39,.12); }

.playlist-section { background: var(--sage); color: white; }
.playlist-section::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.04), transparent 42%, rgba(255,255,255,.08)); }
.playlist-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.playlist-copy { position: relative; z-index: 2; }
.playlist-copy .section-kicker { color: rgba(255,255,255,.72); }
.playlist-copy > p { color: rgba(255,255,255,.82); }
.playlist-art { position: relative; z-index: 2; }
.playlist-art > img { max-height: 430px; margin: 0 auto 1rem; filter: drop-shadow(0 22px 30px rgba(36,45,29,.20)); }
.song-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-height: 190px; overflow: auto; padding: .4rem; }
.song-pill { max-width: 100%; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.10); font-size: .76rem; color: white; }
.song-pill strong { font-weight: 600; }
.empty-state { color: rgba(255,255,255,.66); font-size: .86rem; }

.styled-form { display: grid; gap: 1rem; }
.styled-form label { display: grid; gap: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.styled-form input, .styled-form textarea, .styled-form select {
  width: 100%;
  border: 1px solid rgba(52,64,56,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.74);
  color: var(--ink);
  padding: .9rem 1rem;
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: 0;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.styled-form input:focus, .styled-form textarea:focus, .styled-form select:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(127,139,88,.11); background: white; }
.styled-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.compact-form { margin-top: 2rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.07); }
.playlist-section .styled-form label { color: rgba(255,255,255,.9); }
.playlist-section .styled-form input { background: rgba(255,255,255,.92); }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; width: 1px !important; height: 1px !important; }
.form-status { min-height: 1.2em; margin: 0; font-size: .82rem; }
.form-status.success { color: #dff4d1; }
.form-status.error { color: #ffd8d8; }
.rsvp-form .form-status.success, .photo-form .form-status.success, .guestbook-section .form-status.success { color: #41672f; }
.rsvp-form .form-status.error, .photo-form .form-status.error, .guestbook-section .form-status.error { color: #a23f3f; }
.guest-invitation-note {
  margin-top: 1rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(127,139,88,.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.68);
  color: var(--sage-dark);
  font-weight: 600;
}
.styled-form input[readonly] {
  background: rgba(245,243,237,.72);
  color: var(--muted);
}

.photo-section { background: var(--ivory); }
.photo-upload-wrap { width: min(860px, 100%); margin: 0 auto 3.5rem; }
.photo-form { display: grid; gap: 1rem; padding: clamp(1.2rem, 4vw, 2rem); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(63,74,58,.08); }
.drop-zone { position: relative; min-height: 250px; display: grid; place-items: center; align-content: center; gap: .35rem; padding: 1.5rem; text-align: center; border: 1.5px dashed rgba(127,139,88,.42); border-radius: 22px; background: linear-gradient(135deg, rgba(184,212,222,.14), rgba(229,180,176,.10)); cursor: pointer; overflow: hidden; }
.drop-zone.is-dragging { border-color: var(--sage); background: rgba(127,139,88,.10); }
.drop-zone input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.drop-zone strong { font-family: var(--serif); font-size: 1.5rem; }
.drop-zone small { color: var(--muted); }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: white; font-size: 1.7rem; box-shadow: 0 10px 22px rgba(76,89,56,.18); }
.drop-zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-zone.has-preview::after { content: "Cambiar foto"; position: absolute; right: 14px; bottom: 14px; padding: .55rem .8rem; border-radius: 999px; background: rgba(52,64,56,.82); color: white; font-size: .7rem; }
.photo-count { position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: .55rem .8rem; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: .72rem; font-weight: 700; box-shadow: 0 8px 18px rgba(52,64,56,.14); }
.photo-selection-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .75rem; }
.photo-selection-item { position: relative; aspect-ratio: 1; min-height: 86px; padding: .45rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.photo-selection-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: white; }
.photo-remove { position: absolute; top: .45rem; right: .45rem; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f3dddd; color: #843535; cursor: pointer; font-size: 1rem; line-height: 1; }
.upload-fields label, .photo-form > .checkbox-label { font-size: .72rem; font-weight: 600; }
.photo-form input:not([type="checkbox"]) { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: var(--paper); }
.checkbox-label { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: .7rem !important; cursor: pointer; font-weight: 400 !important; letter-spacing: 0 !important; }
.checkbox-label input { width: 18px !important; height: 18px; margin-top: .18rem; flex: 0 0 auto; accent-color: var(--sage); }
.photo-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: .82; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: white; box-shadow: 0 12px 32px rgba(63,74,58,.10); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.7rem 1rem .9rem; background: linear-gradient(transparent, rgba(31,38,32,.82)); color: white; font-size: .72rem; }
.gallery-empty { grid-column: 1/-1; min-height: 220px; display: grid; place-items: center; align-content: center; border: 1px dashed rgba(127,139,88,.28); border-radius: var(--radius); color: var(--muted); }
.gallery-empty span { font-size: 2.6rem; color: var(--sage-2); }

.gift-section { background: var(--paper); }
.gift-card { padding: clamp(2.5rem, 7vw, 6rem); text-align: center; border: 1px solid var(--line); border-radius: 38px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(251,247,239,.74)); box-shadow: var(--shadow); }
.gift-card > p:not(.section-kicker) { max-width: 760px; margin-left: auto; margin-right: auto; color: var(--muted); }
.gift-card h2 { font-size: clamp(3rem, 7vw, 5.8rem); }
.gift-flower { width: 170px; margin: -5rem auto 1rem; }
.gift-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.gift-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem; margin-top: 1.5rem; text-align: left; }
.gift-option { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.gift-option h3 { margin: 0; font-size: 1.35rem; }
.gift-option p { flex: 1; margin: 0; color: var(--muted); font-size: .88rem; }
.gift-option .button { width: 100%; min-height: 44px; padding: .7rem .9rem; font-size: .68rem; }
.gift-empty { grid-column: 1/-1; margin: 0; text-align: center; color: var(--muted); }

.rsvp-section { background: linear-gradient(155deg, #f8efe9 0%, #f6f4ea 42%, #e8f0ef 100%); }
.rsvp-section::before { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(197,191,223,.35), transparent 66%); }
.rsvp-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.rsvp-intro { position: sticky; top: 130px; }
.rsvp-intro h2 { font-size: clamp(3.5rem, 7vw, 6rem); }
.rsvp-intro > p { color: var(--muted); }
.rsvp-note { display: flex; gap: .8rem; align-items: flex-start; margin-top: 2rem; padding: 1rem; border-radius: 16px; background: rgba(255,255,255,.55); color: var(--muted); font-size: .82rem; }
.rsvp-note p { margin: 0; }
.rsvp-note span { color: var(--sage-dark); font-size: 1.3rem; }
.rsvp-form { padding: clamp(1.4rem, 4vw, 2.5rem); background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.84); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.rsvp-form fieldset { border: 0; padding: 0; margin: 0; }
.rsvp-form legend { margin-bottom: .7rem; font-size: .76rem; font-weight: 600; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 15px; background: rgba(127,139,88,.09); }
.segmented-control label { display: block; cursor: pointer; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: block; padding: .8rem .75rem; border-radius: 12px; text-align: center; font-size: .78rem; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.segmented-control input:checked + span { background: var(--sage); color: white; box-shadow: 0 8px 18px rgba(76,89,56,.16); }
.attendance-details { display: grid; gap: 1rem; transition: opacity .2s ease; }
.attendance-details.is-hidden { display: none; }
.guest-names { display: grid; gap: .8rem; }

.guestbook-section { background: var(--sage-dark); color: white; }
.guestbook-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.guestbook-form-wrap .section-kicker { color: rgba(255,255,255,.67); }
.guestbook-form-wrap .compact-form { background: rgba(255,255,255,.07); }
.guestbook-form-wrap label { color: rgba(255,255,255,.86); }
.paint-panel { display: grid; gap: .85rem; }
.paint-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; align-items: end; }
.paint-toolbar label { margin: 0; color: rgba(255,255,255,.86); }
.paint-color-row { display: grid; gap: .5rem; grid-column: 1 / -1; color: rgba(255,255,255,.86); font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.paint-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); gap: .45rem; }
.paint-swatch { width: 34px; height: 34px; justify-self: center; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; background: var(--swatch); color: transparent; cursor: pointer; box-shadow: 0 4px 12px rgba(20,25,21,.18); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.paint-swatch-light { border-color: rgba(52,64,56,.32); }
.paint-swatch.is-active { border-color: #fffdf8; box-shadow: 0 0 0 3px rgba(255,253,248,.34), 0 7px 16px rgba(20,25,21,.22); transform: translateY(-1px) scale(1.04); }
.paint-custom-color { display: grid; }
.paint-toolbar input[type="color"] { height: 42px; padding: .2rem; }
.paint-toolbar input[type="range"] { accent-color: var(--pink); }
.paint-toolbar select { width: 100%; padding: .75rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; background: #fffdf8; color: var(--ink); font: inherit; }
.paint-toolbar select option { color: var(--ink); background: #fffdf8; }
.paint-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; grid-column: 1 / -1; }
.paint-actions button { min-height: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: #fffdf8; color: var(--sage-dark); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.paint-actions button:disabled { opacity: .62; cursor: not-allowed; }
.guestbook-form-wrap .button-outline { background: #fffdf8; border-color: #fffdf8; color: var(--sage-dark); }
.guestbook-form-wrap .button-outline:hover { background: var(--rose); border-color: var(--rose); color: var(--ink); }
.paint-canvas-wrap { overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: #fffdf8; box-shadow: inset 0 0 0 1px rgba(127,139,88,.12); }
#guestPaintCanvas { display: block; width: 100%; aspect-ratio: 12 / 7; background: radial-gradient(circle at 20% 20%, rgba(219,166,166,.12), transparent 30%), #fffdf8; cursor: crosshair; touch-action: none; }
.guestbook-messages { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; max-height: 570px; overflow: auto; padding: .35rem; }
.wish-card { min-height: 160px; padding: 1.4rem; border-radius: 18px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); transform: rotate(var(--tilt, -1deg)); }
.wish-card:nth-child(even) { --tilt: 1.2deg; }
.wish-card p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; color: white; }
.wish-card span { font-size: .7rem; color: rgba(255,255,255,.66); }
.wish-painting { display: block; width: 100%; margin-bottom: .9rem; border-radius: 14px; background: #fffdf8; box-shadow: 0 10px 30px rgba(20,25,21,.16); }

.faq-section { background: var(--paper); }
.faq-shell { max-width: 920px; }
.accordion { display: grid; gap: .75rem; }
.accordion details { border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
.accordion summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.35rem; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.accordion summary span::before, .accordion summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--sage-dark); transform: translate(-50%,-50%); transition: transform .2s ease; }
.accordion summary span::after { transform: translate(-50%,-50%) rotate(90deg); }
.accordion details[open] summary span::after { transform: translate(-50%,-50%) rotate(0); }
.accordion details p { margin: 0; padding: 0 1.35rem 1.35rem; color: var(--muted); }

.finale-section { position: relative; min-height: 720px; display: grid; place-items: center; padding: 7rem 1.25rem 11rem; text-align: center; overflow: hidden; background: linear-gradient(180deg, #fbf7ef, #fff); }
.finale-section::before { content: ""; position: absolute; width: 620px; height: 420px; left: 50%; top: 45%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(184,212,222,.32), rgba(229,180,176,.15) 45%, transparent 72%); }
.finale-florals { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; max-height: 390px; object-fit: cover; object-position: bottom; }
.finale-content { position: relative; z-index: 2; }
.finale-content h2 { margin-bottom: .5rem; font-size: clamp(5rem, 13vw, 10rem); font-family: var(--script); font-weight: 400; color: var(--sage-dark); }
.finale-content > p:not(.eyebrow) { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .18em; }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.site-footer { padding: 1.2rem 1.25rem 5rem; text-align: center; background: var(--sage-dark); color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .04em; }
.site-footer p { margin: .2rem 0; }

.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 2rem; background: rgba(20,25,21,.92); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 96vw); max-height: 88vh; }
.lightbox img { max-height: 78vh; border-radius: 18px; object-fit: contain; margin: auto; }
.lightbox figcaption { padding-top: .8rem; text-align: center; color: white; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); color: white; font-size: 1.8rem; cursor: pointer; }
.toast { position: fixed; z-index: 3500; left: 50%; bottom: 26px; transform: translate(-50%, 20px); max-width: min(520px, calc(100% - 30px)); padding: .8rem 1rem; border-radius: 14px; background: rgba(52,64,56,.95); color: white; box-shadow: 0 16px 45px rgba(25,32,26,.28); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; font-size: .82rem; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.noscript { position: fixed; z-index: 5000; inset: auto 0 0; padding: 1rem; background: #8f3434; color: white; text-align: center; }

.admin-edit-toolbar {
  position: fixed;
  z-index: 2600;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: min(640px, calc(100% - 2rem));
  padding: .7rem .85rem;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(52,64,56,.94);
  color: white;
  box-shadow: 0 16px 42px rgba(25,32,26,.25);
  backdrop-filter: blur(12px);
  font-size: .76rem;
}
.admin-edit-toolbar strong { font-weight: 700; }
.admin-edit-toolbar span { color: rgba(255,255,255,.76); }
.admin-edit-toolbar a { color: white; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.admin-editable-section { outline: 1px dashed rgba(185,155,97,.55); outline-offset: -8px; }
.admin-section-edit {
  position: absolute;
  z-index: 45;
  top: 1rem;
  right: 1rem;
  min-height: 38px;
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(52,64,56,.92);
  color: white;
  box-shadow: 0 10px 24px rgba(25,32,26,.18);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-section-edit:hover { background: var(--sage); }
.admin-modal-open { overflow: hidden; }
.admin-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.admin-editor-backdrop { position: absolute; inset: 0; background: rgba(20,25,21,.72); backdrop-filter: blur(6px); }
.admin-editor-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(880px, calc(100svh - 2rem));
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(20,25,21,.38);
}
.admin-editor-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.76);
}
.admin-editor-panel header p { margin: 0 0 .2rem; color: var(--sage-dark); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.admin-editor-panel header h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0; }
.admin-editor-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3dddd;
  color: #843535;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.admin-editor-panel form { min-height: 0; display: grid; grid-template-rows: 1fr auto; }
.admin-editor-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr);
  gap: 1rem;
  overflow: auto;
  padding: 1rem;
}
.admin-editor-grid.has-story-designer { grid-template-columns: minmax(320px, .8fr) minmax(380px, 1.2fr); }
.admin-story-designer {
  grid-column: 1 / -1;
  display: grid;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,244,236,.82));
}
.admin-story-designer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-story-designer-head h3 { margin: 0; font-size: 1.45rem; letter-spacing: 0; }
.admin-story-designer-head p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
.admin-story-add-photo {
  position: relative;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--sage);
  color: white;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow: hidden;
}
.admin-story-add-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-story-workbench { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(260px, .42fr); gap: 1rem; align-items: start; }
.admin-story-canvas-wrap { min-width: 0; padding: .8rem; border: 1px solid rgba(52,64,56,.12); border-radius: 18px; background: #f8f3e8; }
.admin-story-canvas {
  position: relative;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,253,248,.78), rgba(255,253,248,.78)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(52,64,56,.06) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(52,64,56,.06) 32px);
  border: 1px dashed rgba(127,139,88,.4);
}
.admin-story-photo {
  cursor: grab;
  border-width: 7px;
  transition: box-shadow .16s ease, outline-color .16s ease;
}
.admin-story-photo:active { cursor: grabbing; }
.admin-story-photo.is-selected {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 22px 50px rgba(20,25,21,.28), 0 0 0 7px rgba(185,155,97,.18);
}
.admin-story-controls {
  display: grid;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.admin-story-controls h4 { margin: 0; font: 1.25rem/1.1 var(--serif); }
.admin-story-empty { margin: 0; color: var(--muted); font-size: .85rem; }
.admin-story-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.admin-story-control-grid label {
  display: grid;
  gap: .32rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-story-control-grid input[type="range"] { width: 100%; accent-color: var(--sage); }
.admin-story-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.admin-story-actions button {
  min-height: 38px;
  border: 1px solid rgba(127,139,88,.28);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sage-dark);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 700;
}
.admin-story-actions [data-story-remove] { grid-column: 1 / -1; background: #f3dddd; color: #843535; border-color: #edd0d0; }
.admin-editor-fields,
.admin-editor-html {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.admin-editor-fields h3,
.admin-editor-html h3 { margin: 0; font-size: 1.25rem; letter-spacing: 0; }
.admin-editor-fields label,
.admin-editor-html label {
  display: grid;
  gap: .42rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-editor-fields input,
.admin-editor-fields textarea,
.admin-editor-html textarea {
  width: 100%;
  padding: .82rem .9rem;
  border: 1px solid rgba(52,64,56,.18);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.admin-editor-html textarea {
  min-height: 440px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
  resize: vertical;
}
.admin-editor-image img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory);
}
.admin-html-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: end;
}
.admin-html-tools button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: .72rem 1rem;
  background: var(--sage);
  color: white;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-editor-help { margin: 0; color: var(--muted); font-size: .78rem; }
.admin-editor-panel footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .7rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.82);
}
.admin-editor-panel .button {
  min-height: 44px;
  padding: .72rem 1rem;
  font-size: .68rem;
}
.admin-editor-panel form.is-saving { opacity: .68; pointer-events: none; }
.story-extra-photo { margin: 1.5rem 0; }
.story-extra-photo img { width: 100%; border-radius: 18px; box-shadow: 0 16px 35px rgba(20,25,21,.22); }
.story-extra-photo figcaption { margin-top: .45rem; color: rgba(255,255,255,.72); font-size: .78rem; text-align: center; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .main-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; padding: .75rem; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,253,248,.97); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: .85rem 1rem; }
  .nav-toggle { display: block; }
  .story-grid, .attire-grid, .playlist-grid, .rsvp-grid, .guestbook-grid { grid-template-columns: 1fr; }
  .story-design-shell { grid-template-columns: 1fr; }
  .story-design-board { min-height: 420px; }
  .story-art { min-height: 360px; }
  .schedule-shell { grid-template-columns: 1fr; gap: 1rem; }
  .palette-art { opacity: .30; width: 72vw; right: -12%; }
  .timeline { max-width: 680px; }
  .rsvp-intro { position: static; }
  .attire-figure { order: 2; }
  .attire-copy { order: 1; max-width: none; text-align: center; }
  .color-palette { justify-content: center; }
  .playlist-art { max-width: 640px; margin: 0 auto; }
  .photo-gallery { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .site-header { width: calc(100% - 18px); top: 8px; }
  .brand-text { display: none; }
  .hero { display: block; min-height: auto; padding: 5.8rem 1rem 2.8rem; }
  .hero-content { margin: 0 auto; }
  .hero h1 { font-size: clamp(3.8rem, 17vw, 4.7rem); margin-bottom: .45rem; }
  .hero h1 span { display: block; }
  .hero h1 em { margin: -.2em 0; }
  .hero-date { font-size: 1.16rem; }
  .hero-line { margin: 1rem auto; }
  .hero-intro { margin-bottom: 1.25rem; font-size: 1.08rem; line-height: 1.38; }
  .hero-actions { gap: .55rem; }
  .hero-actions .button { min-height: 46px; padding: .72rem 1rem; }
  .floral-corner { width: 72vw; opacity: .68; }
  .floral-left { left: -18%; }
  .floral-right { right: -18%; }
  .scroll-cue { display: none; }
  .countdown-wrap { position: relative; right: auto; bottom: auto; width: min(420px, 100%); margin: 1.3rem auto 0; }
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
  .countdown > div { min-width: 0; padding: .55rem .3rem; }
  .countdown strong { font-size: 1.35rem; }
  .event-cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .timeline::before { left: 100px; }
  .timeline-item { grid-template-columns: 80px 28px 1fr; gap: .45rem; }
  .timeline-item time { font-size: 1rem; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guestbook-messages { grid-template-columns: 1fr; max-height: none; }
  .guestbook-form-wrap .compact-form { padding: 1rem; border-radius: 18px; }
  .paint-panel { margin-inline: -.35rem; }
  .paint-toolbar { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }
  .paint-toolbar label { gap: .3rem; font-size: .66rem; }
  .paint-color-row { font-size: .66rem; }
  .paint-swatches { grid-template-columns: repeat(7, minmax(0,1fr)); gap: .42rem; }
  .paint-swatch { width: 32px; height: 32px; }
  .guestbook-form-wrap .paint-custom-color { display: none; }
  .paint-toolbar select, .paint-toolbar input[type="color"] { min-height: 42px; padding: .55rem .65rem; }
  .paint-canvas-wrap { border-radius: 16px; }
  #guestPaintCanvas { min-height: 230px; aspect-ratio: auto; }
  .gift-flower { margin-top: -4rem; }
  .segmented-control { grid-template-columns: 1fr; }
  .music-button { right: 10px; bottom: 10px; }
  .sticky-countdown { left: 10px; right: 10px; bottom: 72px; justify-content: center; }
  .music-label { display: none; }
  .finale-section { min-height: 620px; }
  .admin-edit-toolbar { left: .6rem; right: .6rem; bottom: .6rem; max-width: none; justify-content: center; border-radius: 18px; text-align: center; }
  .admin-edit-toolbar span { display: none; }
  .admin-section-edit { top: .7rem; right: .7rem; min-height: 34px; padding: .45rem .7rem; font-size: .64rem; }
  .admin-editor-modal { padding: .45rem; }
  .admin-editor-panel { max-height: calc(100svh - .9rem); border-radius: 18px; }
  .admin-editor-grid { grid-template-columns: 1fr; padding: .7rem; }
  .admin-editor-grid.has-story-designer { grid-template-columns: 1fr; }
  .admin-story-designer-head { display: grid; }
  .admin-story-workbench { grid-template-columns: 1fr; }
  .admin-story-canvas { min-height: 390px; }
  .admin-story-control-grid { grid-template-columns: 1fr; }
  .admin-editor-fields, .admin-editor-html { padding: .8rem; border-radius: 14px; }
  .admin-editor-html textarea { min-height: 320px; font-size: .82rem; }
  .admin-html-tools { grid-template-columns: 1fr; }
  .admin-editor-panel footer { justify-content: stretch; }
  .admin-editor-panel footer .button { width: 100%; }
}

@media (max-width: 420px) {
  .section { padding-inline: 1rem; }
  .hero-actions, .gift-actions, .final-actions { display: grid; }
  .hero-actions .button, .gift-actions .button, .final-actions .button { width: 100%; }
  .countdown span { letter-spacing: .04em; font-size: .52rem; }
  .paint-panel { margin-inline: -.55rem; }
  .paint-actions { grid-template-columns: 1fr 1fr; }
  #guestPaintCanvas { min-height: 245px; }
  .photo-gallery { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
