:root {
  --fundo: #F8F4EC;
  --fundo-alt: #F1EADB;
  --cartao: #FFFDF8;
  --texto: #3B332B;
  --apoio: #5E5444;
  --ouro: #7F5F33;
  --ouro-hover: #6A4F28;
  --ouro-escuro: #5E4524;
  --monograma: #8A6A3B;
  --borda: #D9CBAE;
  --borda-forte: #B39A6E;
  --borda-fina: #CDB88F;
  --campo: #8C7A57;
  --realce: #EFE6D3;
  --erro: #8A2B1F;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }

a { color: var(--ouro); }
a:hover { color: var(--ouro-escuro); }

.pular {
  position: absolute;
  left: -9999px;
  top: 0;
}
.pular:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--cartao);
  border: 1px solid var(--ouro);
}

/* Botões e links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border-radius: 2px;
}
.btn-solid { background: var(--ouro); color: #FFFDF8; border: 1px solid var(--ouro); }
.btn-solid:hover { background: var(--ouro-hover); color: #FFFDF8; }
.btn-line { background: transparent; color: var(--ouro); border: 1px solid var(--ouro); }
.btn-line:hover { background: var(--realce); color: var(--ouro-escuro); }
.btn:disabled { opacity: .65; cursor: progress; }

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ouro-escuro);
}

a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, .sucesso:focus-visible {
  outline: 2px solid var(--texto);
  outline-offset: 2px;
}

/* Topo */

.topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--borda);
}
.topo nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.marca { font-family: 'WindSong', cursive; font-size: 36px; line-height: 1.2; color: var(--ouro); }

/* Abertura */

.hero { padding: 32px 24px 0; }
.moldura { max-width: 1120px; margin: 0 auto; border: 1.5px solid var(--borda-forte); padding: 6px; }
.moldura-interna {
  border: 1px solid var(--borda-fina);
  padding: 72px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.monograma { position: relative; width: 96px; height: 72px; }
.monograma .l {
  position: absolute; left: 0; top: 4px;
  font-family: 'Pinyon Script', cursive; font-size: 64px; line-height: 1; color: var(--monograma);
}
.monograma .v {
  position: absolute; left: 26px; top: -2px;
  font-family: 'Bodoni Moda', 'Didot', serif; font-size: 66px; line-height: 1; color: var(--monograma);
}

.convite { font-size: 20px; font-style: italic; font-weight: 500; letter-spacing: .02em; max-width: 560px; text-wrap: balance; }

.hero h1 {
  font-family: 'WindSong', 'Pinyon Script', cursive;
  font-size: clamp(64px, 12vw, 104px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ouro);
  text-wrap: balance;
}

.ornamento { display: flex; align-items: center; gap: 10px; }
.ornamento span { display: block; width: 40px; height: 1px; background: var(--borda-forte); }
.ornamento span:nth-child(2) { width: 5px; height: 5px; transform: rotate(45deg); }

.data { font-size: 26px; font-weight: 600; letter-spacing: .06em; }
.lugar { font-size: 20px; font-style: italic; font-weight: 500; }
.acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

.versiculo { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 520px; }
.versiculo p { font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.45; }
.versiculo cite { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ouro); }

/* Seções */

.secao { padding: 96px 24px; }
.secao-alt { background: var(--fundo-alt); }
.container { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.cabeca { display: flex; flex-direction: column; gap: 8px; }
.rotulo { font-size: 14px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ouro); }
h2 { font-size: clamp(40px, 6vw, 52px); font-weight: 600; line-height: 1.1; }
.apoio { font-size: 20px; color: var(--apoio); }
.apoio-largo { font-size: 21px; max-width: 460px; }
.apoio-medio { max-width: 640px; }
.apoio-menor { font-size: 18px; }
.apoio-nota { font-size: 16px; }

.grade-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 32px;
  align-items: start;
}
.grade-confirmar { max-width: 1120px; margin: 0 auto; gap: 48px; }
.grade-confirmar .cabeca { gap: 16px; }

.cartao {
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 4px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.cartao h3 { font-size: 36px; font-weight: 600; line-height: 1.15; }

.cartao-local { gap: 14px; }
.quando { font-size: 22px; font-weight: 600; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.lista { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 20px; }

/* Formulários */

.formulario { display: flex; flex-direction: column; gap: 20px; }
.formulario h3 { font-size: 32px; line-height: 1.2; }

.campo { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label:not(.opcao), .campo > legend {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ouro-escuro);
}
.campo > legend { padding: 0; margin-bottom: 4px; }

input[type="text"], input[type="number"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--campo);
  border-radius: 2px;
  background: var(--cartao);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--texto);
}
textarea { font-weight: 500; line-height: 1.4; resize: vertical; }
input[type="number"] { max-width: 140px; }
.campo-valor { max-width: 220px; }

.opcao { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 20px; cursor: pointer; }
.opcao input { width: 20px; height: 20px; margin: 0; accent-color: var(--ouro); }

.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.envio { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 18px; font-weight: 600; color: var(--ouro-escuro); }
.status:empty { display: none; }
.status.erro { color: var(--erro); }

.sucesso { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sucesso h3 { font-size: 32px; line-height: 1.2; }
.sucesso p { font-size: 21px; }

/* Lista de presentes */

.grade-presentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.presente {
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 200px;
}
.presente.escolhido { border-color: var(--ouro); box-shadow: inset 0 0 0 1px var(--ouro); }
.presente-info { display: flex; flex-direction: column; gap: 6px; }
.presente h3 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.presente .preco { font-size: 20px; font-weight: 600; color: var(--ouro); }

/* Pix e cartão */

.escolha { font-size: 22px; font-weight: 600; }

.pix-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.pix-qr img { display: block; width: 200px; height: 200px; border: 1px solid var(--borda); image-rendering: pixelated; }
.pix-qr p { flex: 1 1 200px; font-size: 19px; color: var(--apoio); }

.destaque { font-size: 20px; font-weight: 600; }

.linha { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.nota-forte { font-size: 18px; font-weight: 600; color: var(--ouro-escuro); }

.aviso {
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 24px 40px;
  align-items: start;
}
.aviso-texto { display: flex; flex-direction: column; gap: 4px; }
.aviso h3 { font-size: 28px; }
.aviso-texto .apoio { font-size: 19px; }
.aviso-acao { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.aviso-acao .formulario { align-self: stretch; }

/* Rodapé */

.rodape { padding: 48px 24px; background: var(--texto); color: var(--fundo); text-align: center; }
.marca-grande { font-family: 'WindSong', cursive; font-size: 48px; line-height: 1.2; }
.rodape-data { margin-top: 8px; font-size: 18px; letter-spacing: .12em; }

/* Celular */

@media (max-width: 640px) {
  .topo { justify-content: center; padding: 8px 16px; }
  .topo nav { justify-content: center; gap: 0 18px; }
  .navlink { font-size: 14px; }
  .hero { padding: 16px 16px 0; }
  .moldura-interna { padding: 48px 16px 56px; gap: 24px; }
  .data span { display: block; }
  .data .sep { display: none; }
  .secao { padding: 64px 16px; }
  .cartao, .aviso { padding: 24px; }
  .cartao h3 { font-size: 30px; }
  .formulario h3, .sucesso h3 { font-size: 28px; }
  .btn { padding: 10px 20px; letter-spacing: .1em; }
}
