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

body {
  background: #e8e4dc;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #3a3226;
}

.page-wrap {
  background: #faf8f4;
  border: 1px solid #d4c9b0;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
}

/* Header */
.header {
  background: #1a1a18;
  color: #f5f0e8;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  position: relative;
}

.header::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: #c9aa6e;
  margin: 1.2rem auto 0;
}

.name-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f5f0e8;
  line-height: 1.15;
}

.event-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #c9aa6e;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Hero */
.hero {
  text-align: center;
  padding: 0;
  line-height: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Details */
.details {
  padding: 1.8rem 2.6rem;
  text-align: center;
}

.date-block {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #1a1a18;
  margin: 0;
}

.divider {
  width: 40px;
  height: 1px;
  background: #c9aa6e;
  margin: 0.9rem auto;
}

.vessel-name {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #3a3226;
  margin: 0 0 0.1rem;
  font-style: italic;
}

.address-block {
  font-size: 0.88rem;
  color: #6b5e47;
  line-height: 1.7;
  margin: 0.6rem 0 0.2rem;
  font-style: italic;
}

.address-note {
  font-size: 0.8rem;
  color: #8a7a5e;
}

.times-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: 0.6rem 0;
  align-items: center;
}

.time-item {
  text-align: center;
}

.time-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a7a5e;
  display: block;
  margin-bottom: 0.2rem;
}

.time-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: #1a1a18;
  font-weight: 400;
}

.time-divider {
  width: 1px;
  background: #d4c9b0;
  align-self: stretch;
}

.dinner-line {
  font-size: 0.98rem;
  color: #3a3226;
  letter-spacing: 0.02em;
  padding-top: 0.2rem;
}

.dinner-line strong {
  font-weight: 500;
  color: #1a1a18;
}

/* Note */
.note-block {
  font-size: 0.9rem;
  color: #5c5040;
  line-height: 1.65;
  margin: 0 2.6rem 1.2rem;
  padding: 0.9rem 1.2rem;
  border-left: 2px solid #c9aa6e;
  text-align: left;
  background: #f5f0e5;
  border-radius: 0 4px 4px 0;
}

/* RSVP */
.rsvp {
  padding: 0 2.6rem 2rem;
  text-align: center;
}

.rsvp-deadline {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a7a5e;
  display: block;
  margin-bottom: 1.2rem;
}

#rsvp-form label:not(.radio-label) {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a7a5e;
  margin-bottom: 0.4rem;
  text-align: left;
}

#rsvp-form input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  border: 1px solid #d4c9b0;
  border-radius: 3px;
  background: #fff;
  margin-bottom: 1.2rem;
  color: #3a3226;
}

#rsvp-form input[type="text"]:focus {
  outline: none;
  border-color: #c9aa6e;
}

fieldset {
  border: none;
  margin-bottom: 1.4rem;
}

fieldset legend {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a7a5e;
  margin-bottom: 0.6rem;
}

.radio-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  cursor: pointer;
  color: #3a3226;
}

.radio-label input[type="radio"] {
  accent-color: #c9aa6e;
}

button[type="submit"] {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  color: #f5f0e8;
  background-color: #1a1a18;
  border: 1px solid #c9aa6e;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s;
}

button[type="submit"]:hover {
  background-color: #2a2a25;
}

button[type="submit"]:disabled {
  background-color: #8a7a5e;
  border-color: #8a7a5e;
  cursor: not-allowed;
}

/* Success / Error */
#rsvp-success p {
  font-size: 1.1rem;
  color: #4a6e4a;
  padding: 1rem 0;
  line-height: 1.6;
}

#rsvp-error p {
  font-size: 0.95rem;
  color: #8b3a3a;
  padding: 0.5rem 0;
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  background: #1a1a18;
  text-align: center;
  padding: 0.9rem 1rem;
}

.footer-text {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9aa6e;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 0;
  }

  .page-wrap {
    border: none;
    max-width: 100%;
  }

  .details {
    padding: 1.5rem 1.5rem;
  }

  .note-block {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .rsvp {
    padding: 0 1.5rem 2rem;
  }

  .radio-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .name-line {
    font-size: 1.6rem;
  }
}

@media print {
  body { background: white; padding: 0; }
  .page-wrap { max-width: 100%; border: none; }
  .rsvp { display: none; }
}
