:root {
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --green: #53624b;
  --green-dark: #34402f;
  --sage: #dce2d6;
  --gold: #b79a63;
  --ink: #2d302b;
  --muted: #6c7168;
  --line: rgba(45, 48, 43, 0.16);
  --shadow: 0 18px 50px rgba(35, 45, 31, 0.10);
  --radius: 24px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(45, 48, 43, 0.13) 0.45px, transparent 0.45px);
  background-size: 7px 7px;
  z-index: 20;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(3.7rem, 9vw, 7.8rem); margin-bottom: 0.4rem; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.35rem, 5vw, 4.1rem); margin-bottom: 1.2rem; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); margin-bottom: 0.8rem; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: white;
  color: black;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.hero {
  min-height: 94vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(135deg, rgba(39, 49, 35, 0.98), rgba(86, 104, 77, 0.92)),
    radial-gradient(circle at 74% 20%, rgba(255,255,255,0.12), transparent 30%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 48vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
}
.hero::before { left: -22vw; top: 9vh; }
.hero::after { right: -24vw; bottom: -17vw; }

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1180px, calc(100% - 2.5rem));
  margin: auto;
  padding: 1.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.nav__brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; letter-spacing: 0.08em; }
.nav__brand span { color: #dfc995; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em; }
.nav__links a:hover { color: #ead7a7; }
.nav__toggle { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  padding: 8rem 0 6rem;
  text-align: center;
}
.eyebrow {
  margin-bottom: 1.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero .eyebrow { color: #ead7a7; }
.monogram {
  display: inline-grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}
.monogram span { color: #ead7a7; }
.hero__date { margin-bottom: 1.4rem; font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: 0.08em; }
.hero__intro { max-width: 650px; margin: 0 auto 2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.82); }
.hero__ornament {
  position: absolute;
  bottom: -46px;
  width: 92px;
  aspect-ratio: 1;
  rotate: 45deg;
  background: var(--paper);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--green-dark); }
.button--light { border-color: rgba(255,255,255,0.72); background: transparent; }
.button--light:hover { background: white; color: var(--green-dark); }
.button--secondary { background: transparent; color: var(--green-dark); }
.button--secondary:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.section { padding: clamp(5rem, 9vw, 8.5rem) 0; position: relative; }
.section__inner { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.section__inner--narrow { max-width: 780px; text-align: center; }
.section--tinted { background: var(--cream); }
.section--green { background: var(--green-dark); color: white; }
.intro-section { padding-bottom: clamp(4rem, 6vw, 6rem); }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1.45; color: #4d524a; }
.section-heading { max-width: 760px; margin-bottom: 3.4rem; }
.section-heading--light p:not(.eyebrow) { color: rgba(255,255,255,0.76); }
.section-heading--light .eyebrow { color: #dfc995; }

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  bottom: 1rem;
  left: 205px;
  width: 1px;
  background: rgba(83, 98, 75, 0.25);
}
.timeline__item {
  display: grid;
  grid-template-columns: 180px 50px 1fr;
  align-items: start;
  margin-bottom: 2rem;
}
.timeline__time { padding-top: 1.8rem; font-weight: 700; color: var(--green); text-align: right; }
.timeline__marker {
  position: relative;
  z-index: 2;
  width: 15px;
  aspect-ratio: 1;
  margin: 2rem auto 0;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.card {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid rgba(83, 98, 75, 0.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card__kicker { margin-bottom: 0.55rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; }
.notice { padding: clamp(1.8rem, 4vw, 3rem); border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.notice p { margin: 0; font-size: 1.08rem; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.program-card {
  position: relative;
  min-height: 360px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.055);
  overflow: hidden;
}
.program-card::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 165px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 50%;
}
.program-card__number { margin-bottom: 4.5rem; font-family: var(--serif); font-size: 2.8rem; color: #dfc995; }
.program-card .card__kicker { color: #dfc995; }
.program-card p:last-child { color: rgba(255,255,255,0.72); }

.signup { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.signup__intro { position: sticky; top: 2rem; }
.signup-form { padding: clamp(1.5rem, 4vw, 2.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow); }
.signup-form > label, legend { display: block; margin-bottom: 0.5rem; font-weight: 750; }
.signup-form > label:not(:first-child) { margin-top: 1.25rem; }
.signup-form label span { font-weight: 400; color: var(--muted); }
input[type="text"], select, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(45,48,43,0.2);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(183,154,99,0.38); outline-offset: 2px; }
fieldset { margin: 1.4rem 0 0; padding: 0; border: 0; }
.choice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(45,48,43,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
}
.choice:hover { border-color: var(--gold); }
.choice input { margin-top: 0.35rem; accent-color: var(--green); }
.choice strong, .choice small { display: block; }
.choice strong { color: var(--ink); }
.choice small { margin-top: 0.15rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.generated-message { margin-top: 1.5rem; padding: 1.2rem; border: 1px dashed rgba(83,98,75,0.35); border-radius: 14px; background: white; }
.generated-message pre { margin: 0.5rem 0 0.8rem; white-space: pre-wrap; font-family: var(--sans); color: var(--ink); }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.copy-status { margin-left: 0.8rem; color: var(--green); }

.closing { background: linear-gradient(to bottom, var(--paper), var(--cream)); }
.signature { margin-top: 2rem; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.7rem); font-style: italic; color: var(--green); }
.footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.6rem max(1.25rem, calc((100% - 1120px)/2)); background: #283125; color: rgba(255,255,255,0.72); font-size: 0.85rem; }
.footer p { margin: 0; }
.footer a { color: white; }

@media (max-width: 850px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: auto; }
  .program-card__number { margin-bottom: 2rem; }
  .split, .signup { grid-template-columns: 1fr; gap: 2rem; }
  .signup__intro { position: static; }
  .timeline::before { left: 7px; }
  .timeline__item { grid-template-columns: 28px 1fr; }
  .timeline__time { grid-column: 2; padding: 0 0 0.5rem; text-align: left; }
  .timeline__marker { grid-column: 1; grid-row: 1 / span 2; margin: 0.25rem 0 0; }
  .timeline__content { grid-column: 2; }
}

@media (max-width: 680px) {
  .nav { align-items: flex-start; }
  .nav__toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    background: transparent;
  }
  .nav__toggle span:not(.sr-only) { display: block; width: 17px; height: 1px; background: white; }
  .nav__links {
    position: absolute;
    top: 4.8rem;
    right: 0;
    display: none;
    flex-direction: column;
    min-width: 190px;
    gap: 0;
    padding: 0.6rem;
    border-radius: 14px;
    background: rgba(40,49,37,0.97);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.65rem 0.8rem; }
  .hero { min-height: 88vh; }
  .hero__content { padding-top: 7.5rem; }
  .section { padding: 4.5rem 0; }
  .form-actions .button { width: 100%; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
