/* Roberta & Eric · telas de confirmação (convite /c/ e entrada da ADM).
   Mesmos tokens de estilo.css: verde-mata, linho, argila; Cormorant Garamond + Figtree; modo escuro. */

:root {
  --fundo: #EEE8DA;
  --superficie: #F7F3EA;
  --areia: #DCCFB6;
  --linha: rgba(28, 36, 32, 0.14);
  --linha-forte: rgba(28, 36, 32, 0.32);
  --tinta: #1C2420;
  --tinta-suave: #5B6660;
  --mata: #1E3B2F;
  --mata-funda: #142A21;
  --sobre-mata: #EEE8DA;
  --sobre-mata-suave: #B9C2B5;
  --argila: #8A5A2F;
  --argila-clara: #D6A672;
  --botao-texto: #F7F3EA;
  --vai: #2F6B4F;
  --vai-fundo: rgba(47, 107, 79, 0.12);
  --nao: #9A3D2E;
  --nao-fundo: rgba(154, 61, 46, 0.10);
  --pend: #8A6A2F;
  --pend-fundo: rgba(138, 106, 47, 0.12);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 6px;
  --pilula: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #111C17;
    --superficie: #172620;
    --areia: #2A3B33;
    --linha: rgba(233, 227, 213, 0.13);
    --linha-forte: rgba(233, 227, 213, 0.34);
    --tinta: #E9E3D5;
    --tinta-suave: #A3AEA6;
    --mata: #1A3328;
    --mata-funda: #0D1712;
    --argila: #D6A672;
    --botao-texto: #111C17;
    --vai: #8CCBA8;
    --vai-fundo: rgba(140, 203, 168, 0.14);
    --nao: #E49A8B;
    --nao-fundo: rgba(228, 154, 139, 0.13);
    --pend: #D9B97E;
    --pend-fundo: rgba(217, 185, 126, 0.13);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--argila); outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botões (iguais aos do site) ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--pilula);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.botao:active { transform: translateY(1px) scale(0.985); }
.botao:disabled { opacity: 0.55; cursor: default; }
.botao-primario { background: var(--argila); color: var(--botao-texto); }
.botao-primario:hover { background: color-mix(in srgb, var(--argila) 86%, var(--tinta)); }
.botao-contorno { border-color: var(--linha-forte); color: var(--tinta); background: transparent; }
.botao-contorno:hover { background: var(--tinta); color: var(--fundo); border-color: var(--tinta); }
.botao-pequeno { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.botao-largo { width: 100%; }

/* ---------- Cartão central (convite e entrada) ---------- */
.cartao-central {
  width: min(560px, 100% - 32px);
  margin: clamp(24px, 8vh, 72px) auto 48px;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 5vw, 44px);
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
}
.selo {
  margin: 0 0 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--argila);
}
.titulo {
  margin: 0 0 14px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 9vw, 3.2rem); line-height: 1.02;
  text-wrap: balance;
}
.subtitulo { margin: 0 0 18px; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.15; text-wrap: balance; }
.texto { margin: 0 0 22px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; }
/* Mensagem dos noivos no topo do convite (convites.mensagem_noivos) */
.mensagem-noivos {
  margin: 0 0 22px; padding: 2px 0 2px 16px; border-left: 2px solid var(--argila);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; white-space: pre-line;
}
.nota { margin: 16px 0 0; font-size: 0.875rem; color: var(--tinta-suave); }
.rodape-convite { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--linha); text-align: center; }
.aviso {
  margin: 0 0 18px; padding: 12px 14px;
  border-radius: var(--raio); background: var(--pend-fundo);
  font-size: 0.925rem;
}
.aviso-erro { background: var(--nao-fundo); color: var(--nao); font-weight: 500; }

/* ---------- Formulários ---------- */
.formulario { display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; }
.rotulo { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--tinta-suave); }
.opcional { font-weight: 400; }
input[type="text"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--fundo); border: 1px solid var(--linha-forte); border-radius: var(--raio);
  font-size: 1rem; /* 16px: o iPhone não dá zoom */
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--argila); outline-offset: 1px; border-color: transparent; }

/* ---------- Escolha Vou / Não vou ---------- */
.pessoa { margin: 0; padding: 14px 0 16px; border: 0; border-bottom: 1px solid var(--linha); }
.pessoa-nome { padding: 0; margin-bottom: 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.2; }
.escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.escolha label { position: relative; display: block; cursor: pointer; }
.escolha input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.escolha span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border: 1px solid var(--linha-forte); border-radius: var(--pilula);
  font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.escolha span::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0.55;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.escolha input:focus-visible + span { outline: 2px solid var(--argila); outline-offset: 2px; }
.opcao-vou input:checked + span { background: var(--vai-fundo); border-color: var(--vai); color: var(--vai); }
.opcao-nao input:checked + span { background: var(--nao-fundo); border-color: var(--nao); color: var(--nao); }
.escolha input:checked + span::before { opacity: 1; background: currentColor; box-shadow: inset 0 0 0 3px var(--superficie); }

/* ---------- Resumo das respostas ---------- */
.resumo-respostas { list-style: none; margin: 0 0 18px; padding: 0; }
.resumo-respostas li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--linha);
}
.resumo-respostas .nome { font-family: var(--serif); font-size: 1.3rem; }
.estado { flex: none; padding: 3px 12px; border-radius: var(--pilula); font-size: 0.8125rem; font-weight: 600; }
.estado-vai { background: var(--vai-fundo); color: var(--vai); }
.estado-nao_vai { background: var(--nao-fundo); color: var(--nao); }
.estado-pendente { background: var(--pend-fundo); color: var(--pend); }
.obrigado .botao { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tela depois de responder: "Presença confirmada" / "Resposta registrada" + link para a lista de presentes */
.titulo-obrigado { margin-bottom: 18px; }
.ir-presentes { margin: 22px 0 8px; }
.ir-presentes .texto { margin-bottom: 14px; }
.obrigado .botao-contorno { margin-top: 12px; }

/* ---------- Fontes do site (pedido do Eric, 01/11/2026) ----------
   Igual a estilo.css: England (a do monograma) só no nome do casal, engrossada com contorno; Poppins em todo o resto.
   Títulos e nomes Bold, rótulos Bold, botões Medium, texto corrido Regular. Sem itálico (a Poppins vem só reta).
   Tamanhos menores que os da Cormorant: a Poppins é bem mais larga. */
@font-face {
  font-family: "England";
  src: url("/fontes/england.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --serif: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nome-casal: "England", "Snell Roundhand", cursive;
}
body { font-size: 1rem; }

.nome-casal {
  font-family: var(--nome-casal); font-weight: 400; font-style: normal; font-synthesis: none; letter-spacing: 0; text-transform: none;
  -webkit-text-stroke: 0.03em currentColor; paint-order: stroke fill;
}
.selo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 18px; }
.selo .nome-casal { font-size: 2.1rem; line-height: 1.3; color: var(--tinta); }
.selo-data { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; }

.titulo { font-weight: 700; font-size: clamp(1.75rem, 6.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.01em; }
.subtitulo { font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.texto { font-size: 1.0625rem; line-height: 1.55; }
.mensagem-noivos { font-style: normal; font-size: 1.0625rem; line-height: 1.55; }
.pessoa-nome { font-weight: 700; font-size: 1.125rem; }
.resumo-respostas .nome { font-weight: 700; font-size: 1.0625rem; }
.rotulo { font-weight: 700; }
.botao, .escolha span { font-weight: 500; }
.estado { font-weight: 600; }

/* Aviso de que a confirmação é essencial (no lugar da data-limite) */
.aviso-essencial {
  display: grid; gap: 2px; margin-bottom: 22px; padding: 14px 16px;
  border-left: 3px solid var(--argila); background: color-mix(in srgb, var(--argila) 12%, transparent);
  font-size: 0.95rem; line-height: 1.5;
}
.aviso-essencial strong { font-weight: 700; }

/* Botão "Salvar na agenda" logo abaixo da data e do local */
.texto-data { margin-bottom: 14px; }
.botao-agenda { margin: 0 0 22px; }
.botao-agenda svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
