/* Public-facing theme — the couple's botanical/garden design, ported from the
 * reference mockup (margot_niels_trouwwebsite.html). Loaded by layout.js IN
 * ADDITION to app.css. All landing/public selectors are scoped under
 * `body.public` so the admin pages (which share layout.js but DON'T carry the
 * `public` class) keep their plain app.css look untouched.
 *
 * Zero dependencies, no build step. The real RSVP form at /i/:code reuses
 * rsvpForm.js's existing class/element names (.rsvp-form, fieldset.field,
 * legend, label, input/select/textarea, button, .banner, .field-error); this
 * stylesheet only styles what already exists there — it never renames hooks. */

body.public {
  --cream: #f7f3eb;
  --paper: #fbfaf6;
  --sage: #71806c;
  --olive: #4f604d;
  --terracotta: #b87962;
  --sand: #d9cbb8;
  --ink: #30382f;
  --white: #fffdf9;

  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* The public pages render full-bleed, so neutralise app.css's narrow
 * .container wrapper when inside a public page. */
body.public .container {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.public nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ddd5c8;
}
body.public .nav-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 22px;
}
body.public .logo {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--olive);
}
body.public nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.public .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 70px;
  position: relative;
  overflow: hidden;
}
body.public .hero:before,
body.public .hero:after {
  content: "";
  position: absolute;
  border: 1px solid #bfc8b7;
  border-radius: 50%;
  opacity: 0.7;
}
body.public .hero:before {
  width: 520px;
  height: 300px;
  transform: rotate(-15deg);
  left: -180px;
  bottom: 30px;
}
body.public .hero:after {
  width: 420px;
  height: 250px;
  transform: rotate(25deg);
  right: -150px;
  top: 130px;
}
body.public .botanical {
  font-size: 30px;
  color: var(--sage);
  letter-spacing: 14px;
}
body.public .kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 25px;
}
body.public .hero h1 {
  font: normal clamp(58px, 11vw, 112px) / 0.95 Georgia, serif;
  margin: 15px 0;
  color: var(--olive);
}
body.public .date {
  font: normal 25px Georgia, serif;
  letter-spacing: 0.16em;
}
body.public .intro {
  max-width: 590px;
  margin: 28px auto;
  color: #5b6258;
  font-size: 17px;
}
body.public .btn {
  display: inline-block;
  background: var(--olive);
  color: white;
  text-decoration: none;
  padding: 13px 25px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

body.public section {
  padding: 85px 22px;
}
body.public .wrap {
  max-width: 1000px;
  margin: auto;
}
body.public .section-title {
  text-align: center;
  font: normal 42px Georgia, serif;
  color: var(--olive);
  margin: 0 0 12px;
}
body.public .leaf {
  text-align: center;
  color: var(--terracotta);
  font-size: 22px;
  margin-bottom: 35px;
}
body.public .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.public .card {
  background: var(--paper);
  padding: 30px 24px;
  border: 1px solid #e4ddd1;
  border-radius: 4px;
  text-align: center;
}
body.public .card h3 {
  font: normal 24px Georgia, serif;
  color: var(--olive);
  margin: 10px 0;
}
body.public .card p {
  font-size: 14px;
  color: #666c63;
}

body.public .story {
  background: var(--olive);
  color: #f8f5ed;
}
body.public .story .section-title {
  color: #f8f5ed;
}
body.public .story .leaf {
  color: #d5b09f;
}
body.public .story-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 19px;
}

body.public .details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
body.public .detail {
  padding: 30px;
  background: #e8e4d9;
  border-radius: 3px;
}
body.public .detail strong {
  display: block;
  font: normal 25px Georgia, serif;
  color: var(--olive);
  margin-bottom: 7px;
}

body.public .rsvp {
  background: var(--paper);
}
/* Center the inline-block RSVP CTA (design.md §10): .rsvp .wrap is a plain
 * block, so the inline-block .btn under it sits left without this rule. */
body.public .rsvp .wrap {
  text-align: center;
}
body.public .rsvp-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
  color: #5b6258;
}

body.public footer {
  text-align: center;
  padding: 45px 20px;
  background: #e2e0d4;
  color: #596153;
  font-family: Georgia, serif;
}

/* --- Real RSVP form (/i/:code) styled onto rsvpForm.js's existing markup --- */
body.public .rsvp-page {
  padding: 110px 22px 70px;
  max-width: 720px;
  margin: auto;
}
body.public .rsvp-page h1 {
  font: normal 42px Georgia, serif;
  color: var(--olive);
  text-align: center;
  margin: 0 0 10px;
}
body.public .rsvp-page .lead {
  text-align: center;
  color: #5b6258;
  margin: 0 0 25px;
}
body.public .rsvp-form {
  background: white;
  border: 1px solid #e2dbcf;
  padding: 35px;
  border-radius: 5px;
  box-shadow: 0 8px 30px rgba(61, 65, 55, 0.05);
}
body.public .rsvp-form .field {
  margin: 16px 0;
}
body.public .rsvp-form fieldset.field {
  border: 1px solid #e4ddd1;
  border-radius: 3px;
  padding: 16px 18px;
}
body.public .rsvp-form legend {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--olive);
  padding: 0 6px;
}
body.public .rsvp-form label {
  display: block;
  margin: 10px 0 7px;
  font-weight: bold;
  font-size: 14px;
}
body.public .rsvp-form fieldset.field label {
  font-weight: normal;
}
body.public .rsvp-form input[type="text"],
body.public .rsvp-form select,
body.public .rsvp-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfc8bc;
  border-radius: 3px;
  background: #fff;
  font: inherit;
}
body.public .rsvp-form input[type="radio"],
body.public .rsvp-form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
body.public .rsvp-form button[type="submit"] {
  display: inline-block;
  background: var(--olive);
  color: white;
  border: none;
  cursor: pointer;
  padding: 13px 25px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 20px;
}
body.public .rsvp-form .banner {
  padding: 12px 16px;
  margin: 0 0 18px;
  border-radius: 3px;
}
body.public .rsvp-form .banner.success,
body.public .rsvp-page .banner.success {
  border: 1px solid var(--olive);
  color: var(--olive);
  background: #eef1ea;
}
body.public .banner.error {
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  background: #f8efe9;
}
body.public .rsvp-page .banner {
  padding: 12px 16px;
  margin: 0 0 18px;
  border-radius: 3px;
}
body.public .field-error {
  color: var(--terracotta);
  margin: 6px 0 0;
  font-size: 14px;
}

/* 404 / not-found on the public surface. */
body.public .notice {
  padding: 120px 22px 80px;
  text-align: center;
  max-width: 600px;
  margin: auto;
}
body.public .notice h1 {
  font: normal 42px Georgia, serif;
  color: var(--olive);
}

@media (max-width: 700px) {
  body.public nav .links {
    display: none;
  }
  body.public .card-grid,
  body.public .details {
    grid-template-columns: 1fr;
  }
  body.public section {
    padding: 65px 18px;
  }
  body.public .hero {
    min-height: 90vh;
  }
  body.public .hero h1 {
    font-size: 65px;
  }
  body.public .nav-inner {
    justify-content: center;
  }
  body.public .rsvp-form {
    padding: 24px;
  }
}
