:root {
  color-scheme: light;
  --ink: #263d38;
  --muted: #52635d;
  --paper: #f7f3ed;
  --surface: #fffdf9;
  --line: #ded8ce;
  --accent: #9c574c;
  --accent-dark: #713e37;
  --success: #245c42;
  --error: #8a3027;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--accent-dark); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #bd795e;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

.site-header, main, .site-footer {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.site-header { padding-top: 1.25rem; }
.wordmark {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.header-tools { float: right; }
.language-switch { font-family: Arial, sans-serif; font-size: 0.9rem; }

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  margin: 1rem 0 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}
.navigation a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
}
.navigation a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }

main { min-height: 65vh; }
.hero {
  max-width: 800px;
  margin: 4rem auto 3rem;
  padding: clamp(2rem, 8vw, 5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.4rem, 8vw, 4.8rem); line-height: 1.08; }
h2 { font-size: 1.25rem; line-height: 1.25; }
.hero-intro { max-width: 590px; margin: 0 auto 1.8rem; color: var(--muted); font-size: 1.15rem; }

/* Full-width home hero with the illustration behind the text. */
main.main-full { width: 100%; }
main.main-full > .event-facts {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}
.hero-image {
  display: flex;
  max-width: none;
  min-height: clamp(520px, 82vh, 860px);
  margin: 0;
  padding: clamp(3rem, 9vh, 6rem) 1rem 2rem;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  color: #fffaf2;
  /* Scrim darkens the sky behind the text and the path at the bottom;
     the navy fallback keeps text legible if the image fails to load. */
  background:
    linear-gradient(
      to bottom,
      rgba(14, 20, 46, 0.72) 0%,
      rgba(14, 20, 46, 0.55) 45%,
      rgba(14, 20, 46, 0.15) 75%,
      rgba(14, 20, 46, 0.35) 100%
    ),
    var(--hero-image) center 70% / cover no-repeat,
    #1d2747;
}
.hero-content { max-width: 720px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
.hero-image .eyebrow { color: #f3d2b8; }
.hero-image h1 { color: #fffaf2; }
.hero-image .hero-intro { color: #f4ece2; }
.hero-image .button { text-shadow: none; }
.hero-image .button-on-image {
  color: #fffaf2;
  border-color: #fffaf2;
  background: rgba(14, 20, 46, 0.35);
}
.hero-image .button-on-image:hover { background: rgba(14, 20, 46, 0.6); }
.hero-image a:focus-visible { outline-color: #f3d2b8; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
  font: 700 0.95rem Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { color: white; background: var(--accent-dark); }
.button-primary:hover { background: #59312c; }
.button-secondary { color: var(--accent-dark); background: transparent; }

.event-facts, .details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin: 2rem 0 4rem;
}
.fact-card, .detail-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fact-card h2, .detail-card h2 { margin-bottom: 0.4rem; color: var(--accent-dark); }
.fact-card p, .detail-card p { margin-bottom: 0; color: var(--muted); }

.page-intro {
  max-width: 700px;
  margin: 3.5rem auto 2rem;
  text-align: center;
}
.page-intro h1 { font-size: clamp(2.2rem, 7vw, 3.7rem); }
.page-intro > p:last-child { color: var(--muted); font-size: 1.1rem; }
.details-list { max-width: 900px; margin-inline: auto; margin-bottom: 4rem; }

.rsvp-form {
  max-width: 680px;
  margin: 0 auto 4rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}
.form-field { margin: 0 0 1.35rem; padding: 0; border: 0; }
.form-field > label, .form-field > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.form-field input[type="text"], .form-field input[type="password"], .form-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.65rem;
  border: 1px solid #817a70;
  border-radius: 2px;
  color: var(--ink);
  background: white;
  font: 1rem Arial, sans-serif;
}
.form-field textarea { min-height: 90px; resize: vertical; }
.choice { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.65rem 0; }
.choice input { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; accent-color: var(--accent-dark); }
.field-help { margin: 0.35rem 0 0; color: var(--muted); font: 0.88rem/1.5 Arial, sans-serif; }
.notice { margin: 0 0 1.25rem; padding: 0.8rem 1rem; border-left: 4px solid; }
.notice-error { color: var(--error); border-color: var(--error); background: #fff4f1; }
.notice-success { color: var(--success); border-color: var(--success); background: #eff8f1; }

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer p { margin: 0; }

@media (max-width: 540px) {
  .site-header, main, .site-footer { width: min(100% - 1.25rem, 1100px); }
  .hero { margin-top: 2rem; }
  .hero-image { margin-top: 0; min-height: 560px; background-position: center, 50% 70%, center; }
  main.main-full > .event-facts { width: min(100% - 1.25rem, 1100px); }
  .navigation { gap: 0.2rem 0.8rem; font-size: 0.88rem; }
}
