/* Base */
body {
  margin: 0;
  background-color: #e6dfd5;
  font-family: -apple-system, BlinkMacSystemFont, system-ui,
               "Helvetica Neue", Arial, sans-serif;
  color: #111;
}

/* Header image */
.header-image-wrap {
  width: 100%;
  text-align: center;
  padding-top: 40px;
}

.header-image {
  width: clamp(220px, 50vw, 600px);
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

/* Headline */
.headline {
  margin: 0 auto 16px;
  width: clamp(240px, 60vw, 720px);
  max-width: 100%;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

/* Meta */
.event-meta {
  margin: 0 auto 16px;
  width: clamp(240px, 30vw, 480px);
  max-width: 100%;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}

.meta-playfair {
  font-family: "Playfair Display", serif;
  text-transform: none;
  font-size:1.5rem;
  font-weight: 400;
}

.frostivus-hr {
  border: none;
  margin: 24px auto;
  width: 40%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.25),
    transparent
  );
}

/* Copy */
.event-copy {
  margin: 40px auto 40px;
  width: clamp(260px, 30vw, 480px);
  max-width: 100%;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

.event-copy p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* RSVP */
.rsvp-section {
  margin: 0 auto 56px;
  width: clamp(260px, 40vw, 520px);
}

.rsvp-heading {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rsvp-label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rsvp-input,
.rsvp-textarea,
.rsvp-select {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.18);
  font-size: 0.9rem;
  font-family: inherit;
  background: #f6f2ec;
}

.rsvp-textarea {
  resize: vertical;
}

/* Will attend / Won't attend buttons */
.rsvp-status {
  display: flex;
  gap: 8px;
  margin: 4px 0 8px;
}

.status-button {
  flex: 1;
  padding: 10px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #f6f2ec;
  font-size: 0.9rem;
  cursor: pointer;
}

.status-button.active {
  background: #111;
  color: #f6f2ec;
  border-color: #111;
}

.guests-wrapper {
  margin-top: 4px;
}

/* Display options */
.rsvp-display-options {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rsvp-radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rsvp-hint {
  opacity: 0.7;
  font-size: 0.75rem;
}

/* Submit button */
.rsvp-button {
  margin-top: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background-color: #111;
  color: #f6f2ec;
}

.rsvp-button:hover {
  opacity: 0.9;
}

.rsvp-message {
  display: none;
  margin: 12px auto 0;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 14px;
  background-color: #e6f7ec;              /* pale green */
  border: 1px solid #7cbf91;              /* darker green border */
  border-radius: 6px;
  color: #23472b;
}

/* Attendee & Regrets sections */

.attendee-section,
.regrets-section {
  width: clamp(260px, 40vw, 520px);
  margin: 40px auto;
}

/* Extra breathing room before Regrets */
.regrets-section {
  margin-top: 56px;
}

/* Section headings */
.attendee-heading {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin: 0 0 10px; /* top:0, bottom:10px */
}
.attendee-list {
  font-size: 0.9rem;
}

.attendee-item {
  padding: 4px 0;
}

.attendee-name {
  display: inline-block;
}

.attendee-you {
  font-weight: 600;
}

.attendee-you .you-arrow {
  margin-left: 6px;
  font-size: 0.75rem;
}

/* Footnote line */
.random-line {
  margin-top: 40px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .header-image-wrap {
    padding-top: 24px;
  }

  .header-image {
    width: 70vw;
    margin-bottom: 16px;
  }

  .headline {
    width: 100vw;
    font-size: 3.1rem;
    margin-bottom: 12px;
  }

  .event-meta,
  .event-copy,
  .rsvp-section,
  .attendee-section,
  .regrets-section {
    width: 88vw;
  }
  
  .event-meta,
  .even-copy {
  	font-size: 1.0rem;
  }

  .random-line {
    margin-top: 32px;
    margin-bottom: 20px;
    font-size: 0.65rem;
  }
}