/* ============================================================
   Emmanuel & Natalia — editorial theme
   Direction: warm ivory paper, espresso ink, classic serif +
   calligraphy script. See DESIGN.md.
   ============================================================ */
:root {
  --paper:      #FFFFFF;   /* clean white background           */
  --paper-deep: #F1F4EC;   /* pale sage panel                  */
  --ink:        #2E362A;   /* deep muted forest ink            */
  --muted:      #74806B;   /* sage-grey supporting text        */
  --accent:     #7C8B67;   /* muted sage green                 */
  --accent-ink: #566146;   /* darker olive for emphasis text   */
  --line:       #DEE5D3;   /* soft sage hairline               */
  --card:       #FFFFFF;   /* card surface                     */

  --serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Playfair Display", cursive;
  --sans:   "Spectral", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 620px; margin: 0 auto; padding: 0 28px; }

/* ---- shared label (small caps) ---- */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  margin: 0;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 108px 24px 72px;
  opacity: 0;
  animation: rise 1.4s ease forwards;
}
.hero .eyebrow { margin-bottom: 30px; }
.hero .names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 78px;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero .amp {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: 62px;
  line-height: 1;
  color: var(--accent);
  margin: 6px 0;
}
.hero .date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 25px;
  color: var(--muted);
  margin: 34px 0 0;
}
.hero .place {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.divider {
  width: 52px; height: 1px; background: var(--accent);
  margin: 48px auto; opacity: 0.55;
}

/* ---- RSVP ---- */
.rsvp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 52px 44px 56px;
  margin: 0 0 104px;
  opacity: 0;
  animation: rise 1.4s ease 0.25s forwards;
}
.rsvp h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  text-align: center;
  margin: 0 0 8px;
}
.rsvp .lead {
  text-align: center; color: var(--muted);
  margin: 0 auto 34px; max-width: 400px; font-size: 15px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--accent-ink);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 3px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder, .field textarea::placeholder { color: #b7ab9c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 139, 103, 0.16);
}
.field textarea { resize: vertical; min-height: 82px; }

.btn {
  width: 100%; padding: 16px 20px; border: 1px solid var(--accent);
  cursor: pointer; background: var(--accent); color: #FBFBF7; border-radius: 3px;
  font-family: var(--serif); font-style: italic; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  transition: background .18s, color .18s, transform .05s; margin-top: 8px;
}
.btn:hover { background: transparent; color: var(--accent-ink); }
.btn:active { transform: scale(0.99); }

.error { color: #a8503f; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: #a8503f; }
.field.invalid .error { display: block; }

/* ---- Success ---- */
.success { display: none; text-align: center; padding: 24px 8px; }
.success.show { display: block; animation: rise 0.9s ease forwards; }
.success .tick {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px;
}
.success h2 { font-family: var(--serif); font-style: italic; font-size: 38px; margin: 0 0 12px; font-weight: 500; }
.success p { color: var(--muted); max-width: 400px; margin: 0 auto; }
.form-hidden { display: none; }

footer {
  text-align: center; color: var(--muted);
  font-family: var(--serif); font-style: italic; font-size: 15px;
  letter-spacing: 0.04em; padding: 0 0 56px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .hero { padding: 72px 20px 52px; }
  .hero .names { font-size: 52px; }
  .hero .amp { font-size: 44px; }
  .rsvp { padding: 40px 26px 44px; }
  .rsvp h2 { font-size: 32px; }
}
