/* An Empathic Society, empathic.love
   Palette sampled from the high-res logo files (assets/brand/), 2026-09-28:
     teal (EMPATHIC)   #45969b  -> 3.45:1 on white: large display type and decoration only
     teal-ink          #357579  -> derived, 5.29:1 on white: buttons, links, small teal text
     sage loop         #b9d1cc  -> decoration only (1.6:1)
     charcoal          #484646  -> body + headings, 9.37:1 on white
     warm light gray   #ccccc4  -> dark-band accents, ~5.9:1 on the dark band
     dark band         #484647  -> footer background (the dark logo's own background, sampled exactly)
*/
:root {
  --teal: #45969b;
  --teal-ink: #357579;
  --teal-ink-deep: #2b6164;
  --sage: #b9d1cc;
  --sage-wash: #f4f8f7;
  --charcoal: #484646;
  --warm-gray: #ccccc4;
  --dark: #484647;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 38rem;
  --radius: 999px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-ink-deep); }

:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--charcoal); color: var(--white);
  padding: 0.6rem 1rem; border-radius: 6px; z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 34rem); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: 0.005em;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }
.small { font-size: 0.95rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 0.6rem;
}

/* Top nav (both pages). Small, calm, one row at 390px; wraps to two rows
   rather than hiding behind a hamburger if it ever runs out of room. */
.site-header { background: var(--white); padding: 0.6rem 0 0; }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 0 1rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 clamp(0.9rem, 0.4rem + 2vw, 2rem);
}
.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.15rem 0.5rem;   /* ~44px tap target */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal-ink);           /* 5.29:1 on white */
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-ink-deep); border-bottom-color: var(--sage); }
.site-nav a[aria-current="page"] { color: var(--charcoal); border-bottom-color: var(--teal); }

/* Hero */
.hero { padding: 2.5rem 0 4rem; text-align: center; background: var(--white); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 0 0 1.5rem; width: min(100%, 34rem); }
/* About page: same logo, smaller, links home */
.hero-compact { padding: 1.5rem 0 2.5rem; }
.hero-compact .hero-logo { display: block; width: min(70%, 20rem); margin: 0; }
.section h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); margin: 0 0 1.25rem; }
.hero-title {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--teal-ink);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  text-wrap: balance;
}
.hero-title-note {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #5f5d5d; /* 6.5:1 on white */
}

/* Sections */
.section { padding: 4.5rem 0; position: relative; }
.section-tint { background: var(--sage-wash); }
.section + .section::before,
.hero + .section::before {
  /* thin sage hairline, echoing the logo loop */
  content: "";
  position: absolute; top: 0; left: 50%;
  width: min(60%, 16rem); height: 1px;
  transform: translateX(-50%);
  background: var(--sage);
}

/* People (About) */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}
.person {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.25rem;
}
.person-media {
  position: relative;
  width: 108px; height: 108px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 1.1rem;
  background: #dcebea; /* teal tint */
  display: grid;
  place-items: center;
}
.person-initials {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--teal-ink-deep); /* #2b6164 on #dcebea: 5.7:1 */
}
.person.has-photo .person-initials { display: none; }
.person-photo { width: 100%; height: 100%; object-fit: cover; }
.person-name { margin: 0 0 0.3rem; font-size: 1.6rem; }
.person-role {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #5f5d5d; /* 6.5:1 on white */
  margin: 0 0 1rem;
}
.person p:last-child { margin-bottom: 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.75rem 0 1.5rem; }
.actions-center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--teal-ink); color: var(--white); }
.btn-primary:hover { background: var(--teal-ink-deep); border-color: var(--teal-ink-deep); color: var(--white); }
.btn-secondary { background: transparent; color: var(--teal-ink); }
.btn-secondary:hover { background: var(--white); color: var(--teal-ink-deep); border-color: var(--teal-ink-deep); }
@media (max-width: 30rem) {
  .actions .btn { width: 100%; }
}

/* Donation line: tucked under its button so it reads as part of the same
   group, not a second call to action. MINIMAL on purpose (2026-09-29): the
   wording beside RSVP/Book may change pending Doug's every.org-terms call. */
/* Order (2026-09-29): button -> .donation-free -> .donation-line. The group's
   bottom gap sits on the LAST line (.donation-line), not between the two. */
.actions:has(+ .donation-free) { margin-bottom: 0.6rem; }
.donation-free { color: #5f5d5d; margin-bottom: 0.15rem; } /* 6.1:1 on sage-wash, 6.5:1 on white */
.donation-line { font-size: 0.95rem; margin: 0 0 1.5rem; }

/* Ceremonies */
.ceremony-block {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  margin: 2rem 0 0;
}
.ceremony-heading { margin: 0 0 1rem; font-size: 1.5rem; }
.ceremony-heading .times { display: block; font-family: var(--sans); font-size: 0.95rem; font-weight: 400; font-style: italic; color: var(--charcoal); margin-top: 0.25rem; }
.ceremony-list { list-style: none; margin: 0; padding: 0; }
.ceremony-list li { padding: 0.9rem 0; border-top: 1px solid var(--sage-wash); }
.ceremony-list li:first-child { border-top: 0; padding-top: 0; }
.ceremony-when { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.ceremony-desc { display: block; }
.ceremony-tag {
  display: inline-block;
  margin: 0.2rem 0 0.35rem;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius);
  background: var(--sage-wash);
  border: 1px solid var(--sage);
  color: var(--teal-ink-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ceremony-fallback { margin: 1rem 0 0; }
.ceremony-list:empty + .ceremony-fallback { margin-top: 0; }

/* RSVP form: MailerLite embedded form 46501509 (wired 2026-09-29).
   MailerLite's generic webform CSS is NOT loaded; everything below restyles its
   markup to match the site (same look the old .field / .btn-primary /
   .form-status rules had). Scoped to the embed ID so nothing leaks. */
.rsvp-helper { margin: 1.5rem 0 0; }
#mlb2-46501509 {
  max-width: 34rem;
  margin: 1.75rem 0 1.25rem;       /* left-aligned inside the section */
  font-family: var(--sans);
  color: var(--charcoal);
}
#mlb2-46501509 .ml-form-align-center,
#mlb2-46501509 .ml-form-embedWrapper,
#mlb2-46501509 .ml-form-embedBody,
#mlb2-46501509 .ml-form-successBody {
  background: transparent;         /* no MailerLite grey box */
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: none;
}
#mlb2-46501509 form { margin: 0; }
#mlb2-46501509 h4:empty,
#mlb2-46501509 .ml-form-embedContent:empty { display: none; }

/* Fields */
#mlb2-46501509 .ml-form-fieldRow { margin: 0 0 1.1rem; }
#mlb2-46501509 .ml-label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
#mlb2-46501509 input.form-control {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.7rem 0.95rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid #8a9794;       /* 3.1:1 against white: meets non-text contrast */
  border-radius: 0.6rem;
  box-shadow: none;
}
#mlb2-46501509 input.form-control::placeholder { color: #6b7472; opacity: 1; }
#mlb2-46501509 input.form-control:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 1px;
  border-color: var(--teal-ink);
}
/* MailerLite's JS adds .ml-error to the .ml-field-group on failed validation */
#mlb2-46501509 .ml-error input.form-control {
  border: 2px solid #b3261e !important;   /* 6.5:1 on white */
  background: #fff8f7;
}
#mlb2-46501509 .ml-error .ml-label { color: #b3261e; }
#mlb2-46501509 .ml-server-error { color: #b3261e; font-weight: 600; margin: 0 0 1rem; }
#mlb2-46501509 .d-none { display: none !important; }

/* Submit: the .btn .btn-primary look */
#mlb2-46501509 .ml-form-embedSubmit { margin: 0.5rem 0 0; }
#mlb2-46501509 .ml-form-embedSubmit button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal-ink);
  background: var(--teal-ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
#mlb2-46501509 .ml-form-embedSubmit button.primary:hover,
#mlb2-46501509 .ml-form-embedSubmit button.primary:focus-visible {
  background: var(--teal-ink-deep);
  border-color: var(--teal-ink-deep);
}
#mlb2-46501509 .ml-form-embedSubmit button.loading { cursor: default; min-width: 12rem; }
@media (max-width: 30rem) {
  #mlb2-46501509 .ml-form-embedSubmit button { width: 100%; }
}
#mlb2-46501509 .form-note { margin: 1rem 0 0; }

/* Loader spinner + sr-only (kept from MailerLite's CSS) */
#mlb2-46501509 .ml-form-embedSubmitLoad { display: inline-block; width: 20px; height: 20px; }
#mlb2-46501509 .ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 11px; height: 11px;
  margin: 1px;
  border-radius: 50%;
  border: 4px solid #fff;
  border-color: #fff #fff #fff transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}
@keyframes ml-form-embedSubmitLoad { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#mlb2-46501509 .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;
}

/* Success: the old .form-status box */
#mlb2-46501509 .ml-form-successContent {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--white);
  border: 1px solid var(--sage);
}
#mlb2-46501509 .ml-form-successContent p { margin: 0; }

/* Footer: dark band, dark logo */
.site-footer { background: var(--dark); color: var(--white); padding: 3.5rem 0 3rem; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: min(100%, 16rem); margin: 0 auto 1.5rem; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.site-footer p { margin-inline: auto; }
.site-footer .small { color: var(--warm-gray); }
.site-footer a { color: var(--sage); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--sage); }

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  .hero { padding: 3.5rem 0 5.5rem; }
  .hero-compact { padding: 2rem 0 3.5rem; }
  .section { padding: 6rem 0; }
  .ceremony-block { padding: 2rem 2.25rem; }
  .people { grid-template-columns: 1fr 1fr; }
}
