/* ============================================================
   euteamolina.com.br — carta de amor editorial
   papel creme · vinho profundo · rosa antigo · dourado velho
   ============================================================ */

:root {
  --papel: #faf3ea;
  --papel-2: #f3e7d8;
  --tinta: #3a2026;
  --tinta-suave: #6e4a50;
  --vinho: #8c2f39;
  --vinho-escuro: #5d1e26;
  --rosa: #d98e9a;
  --rosa-claro: #efc6cd;
  --dourado: #b98a4e;
  --sombra: 0 18px 40px -18px rgba(93, 30, 38, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.manuscrito {
  font-family: "La Belle Aurore", cursive;
  font-weight: 400;
}

/* ---------- atmosfera: grão + blushes ---------- */

.grao {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ceu {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42rem 30rem at 12% -4%, rgba(217, 142, 154, 0.28), transparent 65%),
    radial-gradient(36rem 28rem at 96% 18%, rgba(185, 138, 78, 0.16), transparent 65%),
    radial-gradient(50rem 38rem at 50% 110%, rgba(140, 47, 57, 0.12), transparent 70%);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
}

.hero-ante {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--vinho);
  margin: 0 0 0.25rem;
  transform: rotate(-2deg);
  animation: surgir 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-titulo {
  margin: 0;
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  line-height: 0.95;
}

.hero-titulo .linha-1 {
  display: block;
  font-style: italic;
  font-weight: 330;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: -0.02em;
  color: var(--tinta);
  animation: surgir 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-titulo .linha-2 {
  display: block;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5rem, 18vw, 12.5rem);
  letter-spacing: -0.03em;
  color: var(--vinho);
  text-shadow: 0.04em 0.05em 0 rgba(217, 142, 154, 0.35);
  animation: surgir 1s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-sub {
  margin: 1.4rem 0 0;
  font-style: italic;
  color: var(--tinta-suave);
  animation: surgir 0.9s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes surgir {
  from { opacity: 0; transform: translateY(1.4rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- contador de tempo ---------- */

.tempo-card {
  margin-top: 3rem;
  padding: 1.8rem 2.2rem 1.4rem;
  background: rgba(255, 252, 247, 0.75);
  border: 1px solid rgba(140, 47, 57, 0.18);
  border-radius: 4px;
  box-shadow: var(--sombra);
  position: relative;
  animation: surgir 0.9s 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  max-width: 44rem;
}

.tempo-card::before,
.tempo-card::after {
  content: "";
  position: absolute;
  top: -0.7rem;
  width: 5.5rem;
  height: 1.6rem;
  background: rgba(239, 198, 205, 0.6);
  border: 1px solid rgba(140, 47, 57, 0.1);
  backdrop-filter: blur(1px);
}
.tempo-card::before { left: 12%; transform: rotate(-5deg); }
.tempo-card::after  { right: 12%; transform: rotate(4deg); }

.tempo-rotulo {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--vinho);
}

.tempo-grade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.tempo-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.6rem;
}

.tempo-num {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.tempo-leg {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.tempo-desde {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--tinta-suave);
  font-style: italic;
}
.tempo-desde strong { color: var(--vinho); }

.seta-baixo {
  margin-top: 3rem;
  font-size: 2rem;
  color: var(--vinho);
  text-decoration: none;
  animation: flutuar 2.4s ease-in-out infinite;
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(0.5rem); }
}

/* ============================================================
   SEÇÕES
   ============================================================ */

.secao {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
}

.secao-titulo {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  text-align: center;
  margin: 0 0 0.4rem;
  color: var(--tinta);
  letter-spacing: -0.02em;
}

.secao-ante {
  display: block;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--rosa);
  transform: rotate(-2deg);
  margin-bottom: -0.4rem;
}

.secao-sub {
  text-align: center;
  font-style: italic;
  color: var(--tinta-suave);
  margin: 0 auto 3rem;
  max-width: 34rem;
}

/* ---- revelação ao rolar ---- */
.revelar {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.revelar.visivel { opacity: 1; transform: translateY(0); }

/* ============================================================
   CARTA
   ============================================================ */

.carta {
  max-width: 38rem;
  margin: 0 auto;
  background:
    linear-gradient(rgba(255, 253, 249, 0.96), rgba(255, 251, 244, 0.96)),
    repeating-linear-gradient(transparent 0 1.69rem, rgba(140, 47, 57, 0.07) 1.69rem calc(1.69rem + 1px));
  border: 1px solid rgba(140, 47, 57, 0.15);
  border-radius: 3px;
  box-shadow: var(--sombra);
  padding: 3.2rem 2.6rem 2.6rem;
  transform: rotate(-0.6deg);
  position: relative;
}

.carta p { margin: 0 0 1.2rem; }

.selo {
  position: absolute;
  top: -1.4rem;
  right: 2rem;
  font-size: 2.6rem;
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 8px rgba(93, 30, 38, 0.25));
}

.carta-abertura {
  font-size: 2rem;
  color: var(--vinho);
  margin-bottom: 1.4rem !important;
}

.carta-assinatura {
  font-size: 1.7rem;
  color: var(--vinho);
  text-align: right;
  margin: 2rem 0 0 !important;
  line-height: 1.3;
}

/* ============================================================
   GALERIA — polaroides
   ============================================================ */

.polaroides {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 1.6rem;
}

.polaroide {
  margin: 0;
  background: #fffdf9;
  border: 1px solid rgba(58, 32, 38, 0.08);
  padding: 0.7rem 0.7rem 0.5rem;
  width: clamp(13rem, 22vw, 16rem);
  box-shadow: var(--sombra);
  position: relative;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.polaroide:nth-child(odd)  { transform: rotate(-2.4deg); }
.polaroide:nth-child(even) { transform: rotate(2deg) translateY(0.9rem); }
.polaroide:nth-child(3n)   { transform: rotate(-1deg) translateY(-0.5rem); }

.polaroide:hover {
  transform: rotate(0deg) scale(1.06) translateY(-0.4rem);
  box-shadow: 0 26px 50px -16px rgba(93, 30, 38, 0.45);
  z-index: 2;
}

.polaroide .fita {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 5rem;
  height: 1.5rem;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(239, 198, 205, 0.65);
  border-left: 1px dashed rgba(140, 47, 57, 0.2);
  border-right: 1px dashed rgba(140, 47, 57, 0.2);
  backdrop-filter: blur(1px);
}

.polaroide .moldura {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--papel-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) sepia(0.08);
}

.polaroide figcaption {
  font-family: "La Belle Aurore", cursive;
  font-size: 1.15rem;
  color: var(--tinta-suave);
  text-align: center;
  padding: 0.55rem 0.2rem 0.2rem;
  line-height: 1.2;
}

/* placeholder quando a foto ainda não existe */
.lugar-foto {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(217, 142, 154, 0.35), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(185, 138, 78, 0.2), transparent 55%),
    var(--papel-2);
  color: var(--vinho);
}

.lugar-foto .lugar-coracao {
  font-size: 2rem;
  opacity: 0.55;
  animation: bater-suave 2.2s ease-in-out infinite;
}

.lugar-foto .lugar-rotulo {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

@keyframes bater-suave {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.12); }
  24%      { transform: scale(1); }
}

/* ============================================================
   TOQUE PARA SER AMADA
   ============================================================ */

.amor-secao {
  max-width: none;
  margin: 4rem 0;
  padding: 6rem 1.25rem 7rem;
  background:
    radial-gradient(50rem 30rem at 50% -10%, rgba(217, 142, 154, 0.18), transparent 60%),
    linear-gradient(170deg, var(--vinho-escuro), var(--vinho) 130%);
  color: var(--papel);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.amor-conteudo { position: relative; z-index: 2; }

.amor-ante {
  font-size: 1.7rem;
  color: var(--rosa-claro);
  margin: 0;
  transform: rotate(-2deg);
}

.amor-titulo {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin: 0.2rem 0 0.6rem;
  letter-spacing: -0.02em;
  color: #fff7ef;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.amor-sub {
  font-style: italic;
  color: rgba(255, 247, 239, 0.8);
  max-width: 30rem;
  margin: 0 auto 3rem;
}

/* ---- o coração ---- */

.coracao-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: clamp(13rem, 36vw, 17rem);
  height: clamp(13rem, 36vw, 17rem);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.coracao-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.coracao-svg path {
  fill: #e84b63;
  stroke: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
  transform-origin: 50% 55%;
  animation: batimento 1.3s ease-in-out infinite;
  transition: fill 0.2s ease;
}

.coracao-btn:hover .coracao-svg path { fill: #f2607a; }

.coracao-btn:active .coracao-svg path,
.coracao-btn.apertado .coracao-svg path {
  animation: none;
  transform: scale(0.88);
}

@keyframes batimento {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.07); }
  20%      { transform: scale(1); }
  30%      { transform: scale(1.05); }
  42%      { transform: scale(1); }
}

.coracao-rotulo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  color: #fff7ef;
  line-height: 1.1;
  pointer-events: none;
  padding-bottom: 8%;
}

.amor-frase {
  min-height: 2.2rem;
  font-family: "La Belle Aurore", cursive;
  font-size: 1.5rem;
  color: var(--rosa-claro);
  margin: 1.2rem 0 2rem;
  transition: opacity 0.3s ease;
}

/* ---- placares ---- */

.placares {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.placar { display: flex; flex-direction: column; align-items: center; }

.placar-num {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--dourado);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.placar-num.pulo { animation: pulo-num 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4); }

@keyframes pulo-num {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.placar-leg {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  font-style: italic;
  color: rgba(255, 247, 239, 0.75);
}
.placar-leg strong { color: var(--rosa-claro); }

.placar-divisor {
  font-size: 1.4rem;
  color: rgba(255, 247, 239, 0.5);
}

/* ---- corações que sobem ao clicar ---- */

.coracao-voador {
  position: absolute;
  bottom: 40%;
  left: 50%;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 3;
  animation: voar 1.6s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes voar {
  0%   { opacity: 0; transform: translate(var(--dx, 0), 0) scale(0.4) rotate(var(--rot, 0deg)); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--dx, 0) * 2.4), -56vh) scale(var(--esc, 1.3)) rotate(var(--rot, 0deg)); }
}

/* corações de fundo flutuando devagar */
.amor-chao { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.coracao-fundo {
  position: absolute;
  bottom: -3rem;
  opacity: 0;
  animation: subir-fundo linear infinite;
}

@keyframes subir-fundo {
  0%   { opacity: 0; transform: translateY(0) rotate(-6deg); }
  15%  { opacity: 0.18; }
  85%  { opacity: 0.18; }
  100% { opacity: 0; transform: translateY(-110vh) rotate(8deg); }
}

/* ============================================================
   VÍDEOS
   ============================================================ */

.videos-grade {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.6rem;
}

.video-quadro {
  background: #fffdf9;
  border: 1px solid rgba(58, 32, 38, 0.08);
  padding: 0.8rem;
  box-shadow: var(--sombra);
  transform: rotate(-0.8deg);
  width: clamp(14rem, 26vw, 17rem);
}
.video-quadro:nth-child(even) { transform: rotate(0.8deg) translateY(0.7rem); }

.video-quadro video,
.video-quadro .lugar-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: var(--papel-2);
}

.video-quadro .lugar-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(217, 142, 154, 0.3), transparent 55%),
    radial-gradient(circle at 25% 75%, rgba(140, 47, 57, 0.14), transparent 50%),
    var(--papel-2);
  color: var(--vinho);
}

.lugar-video .lugar-play {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0.6;
  padding-left: 0.25rem;
}

.lugar-video .lugar-rotulo {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

.video-quadro figcaption {
  font-family: "La Belle Aurore", cursive;
  font-size: 1.2rem;
  color: var(--tinta-suave);
  text-align: center;
  padding-top: 0.5rem;
}

/* ============================================================
   DICIONÁRIO — verbetes do casal
   ============================================================ */

.verbetes {
  columns: 2;
  column-gap: 1.6rem;
  max-width: 52rem;
  margin: 0 auto;
}

.verbete {
  break-inside: avoid;
  margin: 0 0 1.6rem;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(140, 47, 57, 0.16);
  border-left: 3px solid var(--vinho);
  padding: 1.3rem 1.5rem 1.1rem;
  box-shadow: 0 12px 28px -16px rgba(93, 30, 38, 0.3);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.verbete:hover {
  transform: translateY(-0.25rem) rotate(-0.4deg);
  box-shadow: 0 20px 40px -16px rgba(93, 30, 38, 0.4);
}

.verbete-palavra {
  margin: 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--vinho);
  letter-spacing: -0.01em;
}

.verbete-classe {
  margin: 0.15rem 0 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dourado);
}

.verbete-def {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--tinta-suave);
}

.verbete-def em { color: var(--vinho); }

@media (max-width: 640px) {
  .verbetes { columns: 1; }
}

/* ============================================================
   MOTIVOS
   ============================================================ */

.motivos-lista {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 46rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.motivo {
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid rgba(140, 47, 57, 0.16);
  border-radius: 100rem;
  padding: 0.55rem 1.3rem;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--tinta);
  box-shadow: 0 8px 20px -12px rgba(93, 30, 38, 0.3);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s ease;
}

.motivo:nth-child(odd)  { transform: rotate(-0.8deg); }
.motivo:nth-child(even) { transform: rotate(0.8deg); }

.motivo:hover {
  transform: rotate(0deg) scale(1.05);
  background: var(--rosa-claro);
}

.motivo::before { content: "♥ "; color: var(--vinho); font-style: normal; }

/* ============================================================
   RODAPÉ
   ============================================================ */

.rodape {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.25rem 3rem;
  border-top: 1px solid rgba(140, 47, 57, 0.15);
  margin-top: 3rem;
}

.rodape-manuscrito {
  font-size: 1.6rem;
  color: var(--vinho);
  margin: 0 0 0.5rem;
  transform: rotate(-1.5deg);
}

.rodape-info {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--tinta-suave);
}

.rodape-dominio { color: var(--vinho); }

/* ============================================================
   responsivo + acessibilidade
   ============================================================ */

@media (max-width: 640px) {
  .tempo-card { padding: 1.5rem 1.2rem 1.2rem; }
  .tempo-grade { gap: 0.3rem 1rem; }
  .carta { padding: 2.4rem 1.5rem 2rem; }
  .polaroide { width: clamp(10rem, 42vw, 13rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
