/* Mooves: sealed invites. Deep wine, cream and wax red; serif headings for the invitation feel. */
:root {
  --bg: #12060a;
  --card: #1d0b11;
  --card-2: #26101a;
  --ink: #f4ece1;
  --muted: #b8a79a;
  --gold: #c9a96e;
  --wax: #8e1b2c;
  --wax-hi: #b8293f;
  --line: rgba(244, 236, 225, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, #2a0c16 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
.wrap { max-width: 460px; margin: 0 auto; padding: 24px 16px 64px; }
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hidden { display: none !important; }

/* Buttons and inputs */
.btn {
  display: block; width: 100%; padding: 15px 18px; border: 0; border-radius: 999px;
  background: var(--ink); color: #1a0a10; font: 600 16px var(--sans); text-align: center; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.wax { background: var(--wax); color: var(--ink); }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: 16px var(--sans); color-scheme: dark;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font: 500 14px var(--sans); cursor: pointer;
}
.chip.on { border-color: var(--gold); background: rgba(201, 169, 110, 0.14); }
.field { display: flex; flex-direction: column; }
.section { padding-top: 6px; border-top: 1px solid var(--line); }

/* The envelope */
.envelope {
  position: relative; aspect-ratio: 1.45; width: 100%; margin: 24px 0 8px;
  background: linear-gradient(160deg, #efe3d0, #d9c6a8); border-radius: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); cursor: pointer; overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.envelope .flap {
  position: absolute; inset: 0 0 auto 0; height: 58%;
  background: linear-gradient(180deg, #e6d6bd, #cdb796);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform 0.6s ease;
}
.envelope .to {
  position: absolute; left: 0; right: 0; bottom: 7%; text-align: center;
  font-family: var(--serif); font-size: 22px; color: #3a1a22; font-style: italic;
}
.seal {
  position: absolute; left: 50%; top: 56%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--wax-hi), var(--wax) 55%, #5e0f1c);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
  color: #f3d9c9; font: 600 26px var(--serif); transition: opacity 0.35s ease, transform 0.35s ease;
}
.envelope.open .flap { transform: rotateX(180deg); }
.envelope.open .seal { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
.envelope.gone { opacity: 0; transform: translateY(-20px); pointer-events: none; height: 0; margin: 0; }

/* The invitation card */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: rise 0.6s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.detail { padding: 14px 0; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail .v { font-size: 18px; margin-top: 2px; }
.secret { border: 1px dashed rgba(201, 169, 110, 0.5); border-radius: 14px; padding: 16px; text-align: center; }
.secret .count { font-family: var(--serif); font-size: 30px; color: var(--gold); margin-top: 4px; font-variant-numeric: tabular-nums; }
.answer { padding: 14px; border-radius: 14px; background: rgba(201, 169, 110, 0.1); border: 1px solid rgba(201, 169, 110, 0.35); }
.banner { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.list a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.footer-cta { text-align: center; margin-top: 30px; font-size: 14px; }
