:root {
  --radius: 0.25rem;
  --cream: oklch(0.972 0.012 88);
  --sage: oklch(0.55 0.045 145);
  --gold: oklch(0.72 0.09 82);
  --background: oklch(0.975 0.011 88);
  --foreground: oklch(0.29 0.02 60);
  --card: oklch(0.99 0.006 88);
  --primary: oklch(0.42 0.045 145);
  --primary-foreground: oklch(0.98 0.01 88);
  --secondary: oklch(0.93 0.018 88);
  --muted: oklch(0.94 0.014 88);
  --muted-foreground: oklch(0.52 0.02 75);
  --accent: oklch(0.72 0.09 82);
  --border: oklch(0.88 0.018 85);
  --input: oklch(0.88 0.018 85);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", cursive;
  --font-sans: "Jost", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.font-display { font-family: var(--font-display); }
.font-script { font-family: var(--font-script); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

.snap-scroller {
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y proximity;
}

.slide-section {
  min-height: 100svh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-center { align-items: center; }
.pad { padding: 5rem 1.5rem; }
.slide-section.slide-center { padding-left: 1.5rem; padding-right: 1.5rem; }

.z-content { position: relative; z-index: 10; }

.slide-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-backdrop img,
.story-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 2s ease-out, transform 2s ease-out;
}

.story-frame img {
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

.slide-backdrop img.is-active {
  opacity: 1;
  transform: scale(1.02);
}

.story-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide-tint {
  position: absolute;
  inset: 0;
  backdrop-filter: saturate(1.25);
}

.blur-sm { backdrop-filter: blur(8px) saturate(1.25); }
.blur-xl { backdrop-filter: blur(24px) saturate(1.25); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible,
.reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

.rule-gold {
  display: block;
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-40 { width: 10rem; }

.kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--muted-foreground);
}

.verse { margin-top: 1rem; letter-spacing: 0.35em; }

.hero-copy {
  margin: 0 auto;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy .rule-gold { margin-top: 1.5rem; }
.hero-title {
  margin: 2rem 0 0;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.05;
  font-weight: 400;
  color: var(--primary);
}

.quote {
  margin: 2.5rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-cue .kicker { letter-spacing: 0.3em; font-size: 0.65rem; }

.scroll-hint {
  width: 1px;
  height: 2rem;
  background: var(--accent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0.2; }
}

.glass-panel {
  background: color-mix(in oklab, var(--background) 72%, transparent);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid color-mix(in oklab, var(--gold) 32%, white 18%);
  box-shadow: 0 28px 64px -32px rgba(0, 0, 0, 0.4);
}

.glass-panel.glass-dark {
  background: color-mix(in oklab, var(--primary) 62%, transparent);
  border-color: color-mix(in oklab, var(--gold) 45%, transparent);
}

.story-grid {
  margin: 0 auto;
  width: 100%;
  max-width: 64rem;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 2rem 1.5rem;
  border-radius: 0.35rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 2.25rem;
  }
  .story-copy { text-align: left; }
  .story-copy .lead {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .story-rule { margin-left: 0; }
  .story-actions { align-items: flex-start; }
}

.story-frame {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 24rem;
  overflow: hidden;
  border-radius: 9999px 9999px 0.25rem 0.25rem;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.5);
}

.story-copy { text-align: center; }

.section-title {
  margin: 1rem 0 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--primary);
}

.section-title.light,
.lead.light { color: var(--primary-foreground); }
.lead.light { color: color-mix(in oklab, var(--primary-foreground) 80%, transparent); }

.lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-align: center;
}

.story-copy .rule-gold { margin: 2rem auto; }
.story-copy .lead {
  margin-top: 0;
  color: color-mix(in oklab, var(--foreground) 82%, var(--muted-foreground));
}

.story-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.dots {
  display: flex;
  gap: 0.5rem;
}

.dots button {
  height: 0.375rem;
  width: 0.75rem;
  border: 0;
  border-radius: 9999px;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width 0.5s, background 0.5s;
}

.dots button.is-active {
  width: 2rem;
  background: var(--gold);
}

.btn-elegant,
.btn-outline-elegant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.95rem 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
}

.btn-elegant {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 12px 30px -14px color-mix(in oklab, var(--primary) 70%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-elegant:hover {
  transform: translateY(-2px);
  background: color-mix(in oklab, var(--primary) 88%, black);
}

.btn-outline-elegant {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--foreground);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline-elegant:hover {
  background: color-mix(in oklab, var(--gold) 18%, transparent);
}

.btn-outline-elegant.light { color: var(--primary-foreground); }
.btn-elegant.full { width: 100%; }

.attire-wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 48rem;
  padding: 2rem 1.5rem 2.25rem;
  border-radius: 0.35rem;
  text-align: center;
}

.attire-head {
  padding: 0;
}

.attire-head .rule-gold { margin: 1.5rem auto 0; }

.attire-toggle {
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 20rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  padding: 0.25rem;
}

.attire-toggle button {
  border: 0;
  background: transparent;
  border-radius: 9999px;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.5s, color 0.5s;
}

.attire-toggle button.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.attire-stage {
  position: relative;
  margin-top: 2.25rem;
  min-height: 24rem;
}

.attire-card {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.25rem 0;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.attire-card.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.attire-card h3 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--primary);
}

.mark-ele span,
.mark-ela span {
  position: relative;
  display: inline-block;
  padding: 0 0.28em 0.05em;
  z-index: 0;
}

.mark-ele span::before,
.mark-ele span::after,
.mark-ela span::before,
.mark-ela span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.12em;
  right: -0.08em;
  top: 0.22em;
  bottom: 0.18em;
  border-radius: 3px 14px 4px 12px;
}

.mark-ele span::before {
  background: oklch(0.86 0.055 230 / 0.72);
  transform: rotate(-1.6deg) skewX(-10deg);
}

.mark-ele span::after {
  left: 0.08em;
  right: -0.18em;
  top: 0.28em;
  bottom: 0.14em;
  background: oklch(0.9 0.045 220 / 0.45);
  transform: rotate(1.2deg) skewX(-6deg);
  border-radius: 10px 4px 12px 3px;
}

.mark-ela span::before {
  background: oklch(0.88 0.07 12 / 0.7);
  transform: rotate(-1.6deg) skewX(-10deg);
}

.mark-ela span::after {
  left: 0.08em;
  right: -0.18em;
  top: 0.28em;
  bottom: 0.14em;
  background: oklch(0.92 0.05 8 / 0.42);
  transform: rotate(1.2deg) skewX(-6deg);
  border-radius: 10px 4px 12px 3px;
}

.attire-card .kicker {
  margin-top: 0.5rem;
  letter-spacing: 0.3em;
}

.palette {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.palette span {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.attire-card ul {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.attire-card li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in oklab, var(--foreground) 80%, var(--muted-foreground));
}

.attire-card li span {
  margin-top: 0.55rem;
  width: 0.25rem;
  height: 0.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--accent);
}

.gifts-slide {
  margin: 0 auto;
  max-width: 42rem;
  padding: 2.75rem 2rem 2.25rem;
  border-radius: 0.35rem;
  text-align: center;
  color: var(--primary-foreground);
}

.gifts-slide .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
  text-align: center;
}

.thanks {
  display: block;
  font-size: 3rem;
  color: var(--accent);
}

.float-slow { animation: float-slow 6s ease-in-out infinite; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mt-10 { margin-top: 2.5rem; }

.sign-off {
  margin-top: 3.5rem;
  font-size: 1.25rem;
  font-style: italic;
  color: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
}

.sign-off.muted { color: var(--muted-foreground); text-align: center; }

.page {
  min-height: 100svh;
  background: var(--background);
  padding: 4rem 1.5rem;
}

.page-inner {
  margin: 0 auto;
  width: 100%;
  max-width: 36rem;
}

.page-inner.wide { max-width: 56rem; }

.back-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

.back-link:hover { color: var(--foreground); }

.page-head {
  margin-top: 2.5rem;
  text-align: center;
}

.script-lg { font-size: 2.25rem; }

.page-head .rule-gold { margin-top: 1.5rem; }

.card-form {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.125rem;
  padding: 2rem 1.75rem;
}

.card-form.accent-border {
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
}

.center { text-align: center; }
.max-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }

.card-form .kicker {
  display: block;
  margin-top: 1.5rem;
  letter-spacing: 0.25em;
  text-align: left;
}

.card-form input,
.card-form select {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid var(--input);
  background: var(--background);
  border-radius: 0.125rem;
  padding: 0.75rem 1rem;
  outline: none;
}

.card-form input:focus,
.card-form select:focus {
  border-color: var(--accent);
}

.card-form .btn-elegant { margin-top: 1.5rem; }

.form-error {
  margin-top: 1.5rem;
  text-align: center;
  color: oklch(0.5 0.16 25);
  font-size: 0.95rem;
}

.full-rule { width: 100%; margin: 1.75rem 0; }

.details { margin: 0; }
.details > div { margin-bottom: 1.25rem; }
.details .kicker { letter-spacing: 0.3em; font-size: 0.65rem; }
.detail-value {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.after-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pix-box {
  margin: 2.5rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  background: var(--card);
  border-radius: 0.125rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.pix-key {
  font-size: 1.25rem;
  color: var(--primary);
  word-break: break-all;
}

.gift-grid {
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .gift-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .gift-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.gift-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.125rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.gift-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.gift-card h2 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
}

.gift-card p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.gift-pix {
  margin-top: 1.25rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}

.gift-pix:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
