:root {
  --navy: #1b375c;
  --navy-soft: #3d5677;
  --ink: #1f3a5f;
  --gold: #c79338;
  --gold-soft: rgba(199, 147, 56, .45);
  --paper: #e9e4d8;
  --bg-top: #22426b;
  --bg-bottom: #0f2540;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, .09), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, #19355a 45%, var(--bg-bottom) 100%) var(--bg-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
}

/* ---------- Cartão ---------- */
.card {
  width: 100%;
  max-width: 460px;
  padding: 12px;
  border-radius: 28px;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 255, 255, .55), transparent 70%),
    repeating-linear-gradient(45deg, rgba(27, 55, 92, .025) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(27, 55, 92, .025) 0 1px, transparent 1px 22px);
  box-shadow: 0 40px 80px -24px rgba(3, 12, 26, .7), 0 14px 32px rgba(3, 12, 26, .25);
}

.card-inner {
  position: relative;
  border: 1px solid rgba(27, 55, 92, .2);
  border-radius: 20px;
  padding: 42px 30px 34px;
}

/* cantos dourados discretos */
.card-inner::before,
.card-inner::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}

.card-inner::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.card-inner::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }

/* ---------- Marca ---------- */
.brand { text-align: center; }

.logo {
  display: block;
  width: 250px;
  max-width: 78%;
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.tagline::before,
.tagline::after {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* ---------- Saudação e título ---------- */
.greeting {
  margin: 34px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  color: var(--navy);
}

.greeting span { color: var(--navy-soft); font-weight: 400; }

.headline {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
}

.greeting + .headline { margin-top: 10px; }
.brand + .headline { margin-top: 30px; }

.headline .h1 { display: block; font-size: 42px; }

.headline .h2 {
  display: block;
  margin-top: 2px;
  font-size: 54px;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- Ornamento ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 28px;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament::after { transform: scaleX(-1); }

.ornament span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Detalhes ---------- */
.details {
  margin: 0;
  text-align: center;
}

.detail + .detail { margin-top: 22px; }

.details dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.details dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.details dd.big {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  font-variant-numeric: lining-nums;
}

.details .venue {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.details .address { display: block; max-width: 300px; margin: 0 auto; }

.details .map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a77a28;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}

.details .map svg { width: 14px; height: 14px; fill: currentColor; }
.details .map:hover { background: rgba(199, 147, 56, .1); border-color: var(--gold); }

.rule {
  width: 42px;
  height: 1px;
  margin: 32px auto 24px;
  border: 0;
  background: var(--gold);
}

/* ---------- RSVP ---------- */
.rsvp { text-align: center; scroll-margin-top: 24px; }

.question {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
}

.note {
  margin: -6px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-soft);
}

.note.small, .small { font-size: 12.5px; }

.alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(176, 58, 46, .1);
  color: #8e2f25;
  font-size: 14px;
}

.rsvp-form { display: flex; flex-direction: column; gap: 10px; }

.field {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(27, 55, 92, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  font: 500 16px/1.2 var(--sans);
  color: var(--ink);
  text-align: center;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

.field::placeholder { color: #8a929d; font-weight: 400; }

.field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 147, 56, .18);
}

select.field {
  text-align-last: center;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-soft) 50%), linear-gradient(135deg, var(--navy-soft) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 17px) 24px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.textarea {
  height: auto;
  min-height: 54px;
  padding: 15px 18px;
  resize: vertical;
  line-height: 1.4;
  font-weight: 400;
}

.companions { display: flex; flex-direction: column; gap: 10px; }

.label {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
}

.companion-name[hidden] { display: none; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s;
}

.btn-solid {
  margin-top: 6px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(27, 55, 92, .9);
}

.btn-solid:hover { background: #142b49; }

.btn-outline {
  border: 1px solid rgba(27, 55, 92, .55);
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover { background: rgba(27, 55, 92, .06); border-color: var(--navy); }

.result { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.result .note { margin: -4px 0 10px; }

.seal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--gold-soft);
}

.seal svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.change {
  margin-top: 8px;
  font-size: 13px;
  color: #a77a28;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (max-width: 420px) {
  .stage { padding: 14px 10px; align-items: flex-start; }
  .card { border-radius: 24px; padding: 10px; }
  .card-inner { padding: 36px 18px 28px; border-radius: 17px; }
  .greeting { font-size: 28px; }
  .headline .h1 { font-size: 37px; }
  .headline .h2 { font-size: 48px; }
  .details dd.big { font-size: 21px; }
  .tagline { letter-spacing: .24em; font-size: 10.5px; gap: 10px; }
  .tagline::before, .tagline::after { width: 18px; }
  .btn { letter-spacing: .2em; }
}
