/* ============ Aria Turns Three — shared styles ============ */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f7f4ec;
  color: #2e2c26;
  font-family: 'Jost', 'Avenir Next', 'Helvetica Neue', sans-serif;
}

a { color: #2e2c26; }
a:hover { color: #8a6b2a; }

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.display { font-family: 'Italiana', 'Didot', 'Bodoni MT', serif; font-weight: 400; }

.micro-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #8b8574;
  text-transform: uppercase;
}

.pill-btn {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  padding: 17px 42px;
  border-radius: 999px;
  border: 1px solid #2e2c26;
  background: transparent;
  color: #2e2c26;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s ease, color 0.25s ease;
}
.pill-btn:hover { background: #2e2c26; color: #f7f4ec; }

.gold-btn {
  display: block;
  width: 100%;
  padding: 19px 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(105deg, #8a6b2a, #c9a84c 35%, #e3c785 50%, #a8842f 70%, #8a6b2a);
  color: #fdfbf5;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: filter 0.25s ease;
}
.gold-btn:hover { filter: brightness(1.08); }
.gold-btn:disabled { opacity: 0.5; cursor: default; filter: none; }

/* ============ hero ============ */

.hero {
  position: relative;
  height: 780px;
  background-color: #eed3d9;
  overflow: hidden;
}
.hero > .linen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tint {
  position: absolute;
  inset: 0;
  background: #f0d5da;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}
.hero-stage-wrap { position: absolute; inset: 0; }

.camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 56%;
  animation: cam-out 2s cubic-bezier(0.3, 0.6, 0.2, 1) 1.85s both;
}
.env-stack {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 470px;
  height: 338px;
  margin: -169px 0 0 -235px;
  animation: env-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both, env-out 1s ease 2.7s forwards;
}
.env-open-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 470px;
  animation: fade-in 0.25s ease 0.95s both, flap-reveal 0.6s cubic-bezier(0.3, 0.7, 0.3, 1) 1s both;
}
.env-sealed-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 470px;
  animation: fade-out 0.3s ease 1s forwards;
}
.env-pocket-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 470px;
  clip-path: polygon(0% 52%, 50% 80%, 100% 52%, 100% 100%, 0% 100%);
  animation: fade-in 0.25s ease 0.95s both;
}
.rise-window {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 786px;
  overflow: hidden;
  z-index: 4;
  animation: window-release 0.9s ease 2.7s both;
}
.card-riser {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 480px;
  height: 700px;
  margin-left: -240px;
  perspective: 1400px;
  transform-origin: 50% 90%;
  animation: card-rise 2s cubic-bezier(0.45, 0, 0.25, 1) 1.65s both, card-peek 0.35s ease 1.45s both;
}
.hero-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.35, 0, 0.2, 1);
}
.hero-card.flipped { transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face-back { transform: rotateY(180deg); }

.castle-img {
  position: absolute;
  left: 59px;
  top: 20px;
  width: 362px;
  height: 640px;
  filter: drop-shadow(0 14px 30px rgba(120, 80, 60, 0.22));
}
.overlay-svg { position: absolute; left: 0; top: -40px; }

.procl-card {
  position: absolute;
  left: 40px;
  top: 12px;
  width: 400px;
  height: 622px;
  clip-path: polygon(0% 100%, 28.5% 8%, 41% 33%, 57% 0%, 78% 33%, 86% 17%, 100% 100%);
  background-color: #fdfbf5;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%222%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22160%22%20height%3D%22160%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.10%22%2F%3E%3C%2Fsvg%3E');
  box-shadow: 0 20px 50px rgba(120, 80, 60, 0.25);
}
.procl-text { padding: 232px 36px 0; text-align: center; }
.procl-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; line-height: 1.22; color: #2e2c26; }
.procl-body { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 13px; font-style: italic; line-height: 1.5; color: #55524a; margin-top: 12px; padding: 0 44px; }
.procl-date { font-family: 'Jost', sans-serif; font-size: 12.5px; letter-spacing: 0.22em; margin-top: 16px; color: #2e2c26; }
.procl-time { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.22em; margin-top: 4px; color: #55524a; }
.procl-expect { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 12.5px; font-style: italic; line-height: 1.5; color: #55524a; margin-top: 12px; padding: 0 92px; }
.procl-chars { position: absolute; left: 50%; bottom: 2px; width: 320px; margin-left: -124px; }

.road-in { animation: fade-in 0.8s ease 2.9s both; }
.flag-unfurl { transform-box: fill-box; transform-origin: left bottom; animation: unfurl 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.flag-wave { transform-box: fill-box; transform-origin: left bottom; animation: flag-wave 2.8s ease-in-out infinite; }
.flag-wave-l { transform-box: fill-box; transform-origin: right bottom; animation: flag-wave 2.8s ease-in-out infinite; }
.fw2 { animation-delay: 0.5s; }
.fw3 { animation-delay: 1.1s; }
.fu1 { animation-delay: 3.7s; }
.fu2 { animation-delay: 3.85s; }
.fu3 { animation-delay: 4s; }
.gold-flags { animation: fade-in 0.6s ease 3.7s both; }
.butterfly { animation: fly-in 1.2s ease 3.8s both; }
.butterfly-inner { transform-box: fill-box; transform-origin: center; animation: flutter 3.4s ease-in-out 4.9s infinite; }
.hero-controls {
  position: absolute;
  left: 8%;
  top: 320px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fade-up 0.8s ease 5.9s both;
}
.ctrl-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #fdfbf5;
  box-shadow: 0 4px 14px rgba(90, 60, 60, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ctrl-btn:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(90, 60, 60, 0.25); }
.scroll-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  z-index: 8;
  animation: fade-up 0.8s ease 6.2s both;
}
.scroll-hint div { font-size: 10px; letter-spacing: 0.32em; color: #7a6a60; }

@keyframes cam-out { from { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes env-in { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes env-out { to { opacity: 0; transform: translateY(130px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes flap-reveal { from { clip-path: inset(52.5% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes window-release { from { clip-path: inset(0px 0px 196px 0px); } to { clip-path: inset(0px 0px 0px 0px); } }
@keyframes card-peek { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-rise {
  0% { transform: translateY(-110px) rotate(-14deg) scale(0.45); }
  55% { transform: translateY(-105px) rotate(-10deg) scale(0.52); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes unfurl { from { transform: scaleX(0.05) scaleY(0.4); opacity: 0; } to { transform: scaleX(1) scaleY(1); opacity: 1; } }
@keyframes flag-wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-7deg) scaleX(0.96); } }
@keyframes fly-in { from { opacity: 0; transform: translate(-46px, 34px); } to { opacity: 1; transform: translate(0, 0); } }
@keyframes flutter { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }

/* ============ page sections ============ */

.section { border-bottom: 1px solid #e4dfd2; }

.title-section { padding: 110px 40px 96px; text-align: center; }
.title-section h1 {
  margin: 0;
  font-family: 'Italiana', 'Didot', 'Bodoni MT', serif;
  font-weight: 400;
  font-size: clamp(64px, 12vw, 172px);
  line-height: 0.98;
  letter-spacing: 0.05em;
}
.rsvp-buttons { display: flex; justify-content: center; gap: 22px; margin-top: 64px; flex-wrap: wrap; }
.toast-note {
  margin-top: 34px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: #6f6a5e;
  animation: fade-up 0.5s ease both;
}

.info-grid { display: grid; grid-template-columns: 1fr 2fr; }
.info-cells { display: flex; flex-direction: column; border-right: 1px solid #e4dfd2; }
.info-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 54px 30px;
  border-bottom: 1px solid #e4dfd2;
  text-decoration: none;
}
.info-cell:last-child { border-bottom: none; }
.info-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.7;
  text-transform: uppercase;
}
.info-value span { border-bottom: 1px solid #b9b3a2; }
.info-quote { display: flex; align-items: center; justify-content: center; padding: 80px 8%; }
.info-quote p {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.5;
  text-align: center;
}

.center-section { padding: 96px 24px; text-align: center; }
.serif-caps {
  margin-top: 38px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(19px, 1.9vw, 27px);
  letter-spacing: 0.08em;
  line-height: 2;
  text-transform: uppercase;
}
.registry-icon { width: 58px; height: 58px; border: 1px solid #a8853c; display: inline-flex; align-items: center; justify-content: center; }
.registry-links { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 44px; }
.footnote { margin-top: 30px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 19px; color: #6f6a5e; }

.guest-headline { margin-top: 44px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(30px, 3vw, 44px); }
.guest-rows { display: flex; flex-direction: column; gap: 26px; margin-top: 36px; }
.guest-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; letter-spacing: 0.12em; text-transform: uppercase; }
.guest-detail { font-size: 10px; letter-spacing: 0.26em; color: #8b8574; margin-top: 8px; }
.not-replied-headline { margin-top: 72px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(24px, 2.4vw, 34px); }
.not-replied-rows { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.not-replied-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; letter-spacing: 0.12em; text-transform: uppercase; color: #55524a; }

.site-footer {
  padding: 60px 24px 70px;
  text-align: center;
  background-color: #eed3d9;
  position: relative;
  overflow: hidden;
}
.site-footer > .linen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-footer .hero-tint { position: absolute; }
.footer-line { position: relative; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 21px; color: #4a463d; }
.footer-micro { position: relative; margin-top: 14px; font-size: 10px; letter-spacing: 0.3em; color: #6d5d54; }

/* ============ RSVP modal ============ */

.modal-veil[hidden] { display: none; }
.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(46, 44, 38, 0.45);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: veil-in 0.35s ease both;
  padding: 16px;
}
.modal-card {
  position: relative;
  width: 620px;
  max-width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  background: #fbf9f3;
  border-radius: 20px;
  padding: 56px 60px 52px;
  box-shadow: 0 30px 80px rgba(40, 30, 30, 0.35);
  animation: modal-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}
.modal-close { position: absolute; left: 26px; top: 24px; width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; }
.modal-title { text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; }
.name-input {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid #c9c3b2;
  background: transparent;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: #2e2c26;
  outline: none;
}
.seg { display: flex; margin-top: 30px; border-radius: 999px; background: #eee9db; padding: 4px; }
.seg-opt {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #9a947f;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
}
.seg-opt.on { background: #fdfbf5; color: #2e2c26; box-shadow: 0 2px 8px rgba(60, 50, 40, 0.18); }
.steppers { display: flex; align-items: center; justify-content: space-between; margin-top: 34px; gap: 16px; flex-wrap: wrap; }
.stepper-group { display: flex; gap: 34px; }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stepper-row { display: flex; align-items: center; gap: 12px; }
.step-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #2e2c26;
  background: transparent;
  color: #2e2c26;
  font-size: 16px;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.step-btn.dim { border-color: #b9b3a2; color: #b9b3a2; }
.step-btn:hover { background: #2e2c26; color: #f7f4ec; }
.step-val { width: 20px; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; }
.step-label { font-size: 11px; letter-spacing: 0.18em; color: #8b8574; }
.msg-box { margin-top: 12px; border: 1px solid #d5cfbe; border-radius: 10px; padding: 14px 16px 12px; background: #fdfcf8; }
.msg-box textarea {
  display: block;
  width: 100%;
  height: 74px;
  border: none;
  resize: none;
  background: transparent;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: #2e2c26;
  outline: none;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chip-btn {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid #d5cfbe;
  border-radius: 8px;
  background: #fbf9f3;
  color: #55524a;
  cursor: pointer;
  transition: background 0.2s ease;
}
.chip-btn:hover { background: #efe9db; }
.field-label { font-size: 13px; letter-spacing: 0.08em; color: #2e2c26; }
.field-sub { font-size: 11px; color: #8b8574; margin-top: 4px; }
.error-note { margin-top: 14px; text-align: center; font-size: 13px; color: #a4442f; }

/* ============ responsive ============ */

@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-cells { border-right: none; }
  .info-cell:last-child { border-bottom: 1px solid #e4dfd2; }
  .hero-controls { left: 16px; top: auto; bottom: 70px; flex-direction: row; }
}
@media (max-width: 640px) {
  .modal-card { padding: 44px 24px 36px; }
  .title-section { padding: 64px 20px 56px; }
  .rsvp-buttons { flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
}

/* ============ host dashboard ============ */

.host-wrap { max-width: 1060px; margin: 0 auto; padding: 48px 24px 96px; }
.host-header { text-align: center; padding: 24px 0 40px; border-bottom: 1px solid #e4dfd2; }
.host-header h1 { margin: 0; font-family: 'Italiana', 'Didot', serif; font-weight: 400; font-size: 44px; letter-spacing: 0.06em; }
.host-sub { margin-top: 10px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 19px; color: #6f6a5e; }
.auth-card { max-width: 420px; margin: 64px auto; text-align: center; }
.host-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 20px; flex-wrap: wrap; }
.host-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.small-btn {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid #2e2c26;
  background: transparent;
  color: #2e2c26;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  text-transform: uppercase;
}
.small-btn:hover { background: #2e2c26; color: #f7f4ec; }
.small-btn.gold { border-color: #a8853c; color: #8a6b2a; }
.small-btn.gold:hover { background: #a8853c; color: #fdfbf5; }
.small-btn:disabled { opacity: 0.45; cursor: default; }
.small-btn:disabled:hover { background: transparent; color: #2e2c26; }

.invitee-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invitee-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #8b8574;
  text-transform: uppercase;
  font-weight: 400;
  padding: 14px 12px;
  border-bottom: 1px solid #d5cfbe;
}
.invitee-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #eee9db;
  font-size: 14.5px;
  vertical-align: top;
}
.invitee-table td.name-cell { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; }
.status-chip {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-attending { background: #e4eedd; color: #3f5f33; }
.chip-declined { background: #f3e2dd; color: #8a4a33; }
.chip-waiting { background: #efe9db; color: #8b8574; }
.chip-sent { background: #e8e2f0; color: #52447a; }
.chip-unsent { background: #f3efe4; color: #a09878; }
.msg-quote { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 15px; color: #55524a; }
.add-row { display: flex; gap: 12px; margin: 26px 0 8px; flex-wrap: wrap; }
.add-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid #d5cfbe;
  border-radius: 10px;
  background: #fdfcf8;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  color: #2e2c26;
  outline: none;
}
.host-note { margin-top: 22px; font-size: 12.5px; color: #8b8574; line-height: 1.6; }
.walkin-title { margin-top: 48px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 24px; }
