:root {
  --bg:#fff6f8;
  --accent:#c76b93;
  --accent-soft:rgba(199,107,147,0.22);
  --muted:#6b6b6b;
  --glass:rgba(255, 224, 234, 0.664);
  --card-shadow:0 8px 24px rgba(12,12,20,0.08);
  --radius:14px;
  --maxw:1100px;
}

/* Reset */
* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body {
  height:100%;
  font-family:Inter,system-ui, -apple-system, 'Segoe UI', Roboto;
  color:#222;
}

/* Background mais bonito */
body {
  background-color: rgb(255, 222, 227);
  padding:24px 12px 80px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.wrap {
  max-width:var(--maxw);
  margin:0 auto;
}

/* HERO */
.hero {
  min-height:62vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:64px 16px;
  position:relative;
}

.logo {
  font-family:Playfair Display,serif;
  font-size:20px;
  letter-spacing:0.5px;
  color:var(--muted);
  opacity:0.85;
}
h3{
  margin-bottom: 10.5px;
}
h1 {
  font-family:Playfair Display,serif;
  font-size:46px;
  margin:10px 0;
  line-height:1.2;
}

h1 span, h2 span {
  color:var(--accent);
  font-weight:600;
}

.lead {
  max-width:680px;
  margin:0 auto;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

/* BOTÕES */
.btn {
  background:var(--accent);
  color:white;
  padding:14px 26px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-weight:600;
  transition:0.25s;
  box-shadow:0 4px 14px rgba(199,107,147,0.25);
}

.btn:hover {
  transform:translateY(-3px);
}

.btn.ghost {
  background:transparent;
  border:2px solid var(--accent-soft);
  color:var(--accent);
  box-shadow:none;
}

.btn.ghost:hover {
  background:var(--accent-soft);
}

/* CORAÇÕES DE FUNDO */
.hearts { position:absolute; inset:0; pointer-events:none; opacity:0.5; }
.heart { opacity:0.1; }

/* Blocks/cards */
.block { margin-bottom: 20px;
}

.card {
  background:var(--glass);
  backdrop-filter:blur(10px);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--card-shadow);
  border:1px solid rgba(255,255,255,0.55);
}

/* Timeline */
.timeline {
  display:grid;
  gap:18px;
  margin-top:14px;
  
}
.time-item { 
     display:flex;
     gap:16px; 
     align-items:flex-start; 
}
.time-item img {
  width:140px;
  height:90px;
  object-fit:cover;
  border-radius:12px;
  overflow: hidden
}
.time-item h3 {
  margin:0;
  font-family:Playfair Display,serif;
  font-size:20px;
}
.time-item .meta { font-size:13px; color:var(--muted); }

/* Gallery */
.gallery {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
}
.polaroid {
  width:160px;
  background:white;
  padding:10px;
  border-radius:12px;
  transform:rotate(-1.5deg);
  box-shadow:0 8px 22px rgba(0,0,0,0.06);
  transition:0.25s;
}
.polaroid:hover { transform:rotate(0deg) translateY(-4px); }

.polaroid img {
  width:100%; height:120px; object-fit:cover; border-radius:8px;
}
.polaroid p { margin-top:8px; font-size:14px; }

/* Modal */
.modal {
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background:rgba(0,0,0,0.4);
  padding:24px;
}
.modal.open { display:flex; }
.modal .pane {
  background:white;
  border-radius:14px;
  max-width:900px; width:100%;
  max-height:88vh; overflow:auto;
  padding:22px;
  box-shadow:0 24px 64px rgba(0,0,0,0.25);
}

/* Letters */
.letters {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:16px;
}
.letter {
  background:linear-gradient(180deg,#ffffff,#fffdf9);
  padding:18px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.04);
  cursor:pointer;
  transition:0.25s;
}
.letter:hover { 
  transform:translateY(-3px); 
}
.letter .front { 
  font-family:Playfair Display,serif; 
  font-size:18px;
}
.letter .back { 
  display:none; 
  margin-top:12px; 
  color:var(--muted); 
}
.letter.open .back { 
  display:block; 
}

/* Quiz */
.quiz {
   max-width:780px; 
  margin:0 auto; 
}
.q {
   background:white; 
   padding:18px; 
   border-radius:12px; 
   margin-bottom:14px; 
  }
.options { 
  display:flex; 
  flex-wrap:wrap; 
  gap:10px; 
  margin-top:10px; 
}
.opt { 
  flex:1 1 calc(50% - 10px);
   padding:10px; 
   border-radius:8px; 
   border:1px solid rgb(255, 198, 233); 
   cursor:pointer; 
  }
.opt.correct { 
  border-color:rgba(0,160,120,0.25); 
}
.opt.wrong { 
  opacity:0.6; 
}

/* Final */
.final {
  display:grid;
  place-items:center;
  padding:48px 16px;
  text-align:center;
}
.polaroid-large {
  background:white;
  padding:16px;
  border-radius:16px;
  text-align:center;
  max-width:520px;
  margin:0 auto;
  box-shadow:0 18px 45px rgba(0, 0, 0, 0.404);
}

.polaroid-large img {
  width:100%;
  border-radius:14px;
  margin-bottom:12px;
}

.polaroid-large p {
  font-family:Playfair Display,serif;
  font-size:18px;
  color:#5b4a55;
  line-height:1.45;
  padding:0 12px;
}
/* carta */
.modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  background:rgba(0,0,0,0.45);
  backdrop-filter:blur(6px);
  z-index:9999;
}
.modal.open{ display:flex; }

.letter-pane{
  width:100%;
  max-width:700px;
  animation:fadeIn .4s ease;
  position:relative;
}

.letter-paper{
  background:#fffdf9;
  border-radius:14px;
  padding:34px 26px;
  box-shadow:0 18px 50px rgba(0,0,0,0.25);
  max-height:85vh;
  overflow-y:auto;
}

.closeLetter{
  position:absolute; top:14px; right:14px;
  background:#fff;
  border:none;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
}

.ass{
  margin-top:28px;
  font-family:'Dancing Script', cursive;
  font-size:28px;
  text-align:right;
}
.letter-content p {
  margin-bottom: 14px;  /* espaço entre parágrafos */
  line-height: 1.6;     /* deixa o texto mais respirado */
}
@keyframes fadeIn{
  from{opacity:0; transform:scale(.97);}
  to{opacity:1; transform:scale(1);}
}


/* Responsivo */
@media (max-width:700px) {
  h1 { font-size:30px; }
  .time-item { flex-direction:column; align-items:center; }
  .time-item img { width:100%; height:180px; }
}
