/* The Phoenix Mikvah — spa-calm, photo-backed */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --ivory: #f8f6f0;
  --ivory-80: rgba(250, 248, 242, .84);
  --green: #1f4d3a;
  --green-deep: #153828;
  --green-veil: rgba(21, 56, 40, .78);
  --plum: #5a2d82;
  --plum-soft: #7a5a9c;
  --ink: #2b332d;
  --muted: #5f6a62;
  --rule: rgba(31, 77, 58, .18);
  --max: 980px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  background: #6f7f5f url("img/hero.jpg") left center / cover no-repeat fixed;
  display: flex; flex-direction: column;
}
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }
main { flex: 1; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .45em; color: var(--green); }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: 1.7rem; margin-top: 1.5em; color: var(--plum); }
h3 { font-size: 1.3rem; margin-top: 1.3em; }
p { margin: 0 0 1em; }
a { color: var(--plum); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.big { font-size: 1.3rem; font-family: var(--serif); }
.muted { color: var(--muted); font-size: .95rem; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem;
  background: var(--plum); color: #fff; border: 2px solid var(--plum); letter-spacing: .01em;
}
.btn:hover { background: #482366; border-color: #482366; }
.btn.secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn.secondary:hover { background: rgba(31,77,58,.08); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* Header: big logo on an ivory band that fades into the photo */
.site-header { background: transparent; padding-bottom: 22px; }
.brand-row { display: flex; justify-content: center; padding: 28px 20px 14px; }
.brand { text-decoration: none; }
.brand img { height: 210px; width: auto; display: block; mix-blend-mode: multiply; }
.brand-text { font-family: var(--serif); font-size: 3rem; color: var(--green); }
.site-nav .wrap { padding: 0 12px; }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 6px; display: flex; flex-wrap: wrap; justify-content: center;
  background: var(--green-veil); border-radius: 999px; max-width: max-content; backdrop-filter: blur(4px);
}
.site-nav a { display: block; padding: 9px 15px; border-radius: 999px; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav a:hover { background: rgba(255,255,255,.14); }
.site-nav a[aria-current="page"] { background: var(--ivory); color: var(--green); }

/* Content panels float over the photo */
section { padding: 28px 0 56px; }
.panel, section > .wrap.narrow, .embed-wrap {
  background: var(--ivory-80); border-radius: 18px; padding: 40px 44px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); backdrop-filter: blur(6px);
}
section > .wrap.narrow { max-width: 820px; }
.hero { padding-top: 28px; }
.hero .panel { max-width: 820px; margin: 0 auto; font-size: 1.1rem; }
.hero .panel p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--green-deep); }

.policy ul, .policy ol { padding-left: 1.3em; }
.policy li { margin-bottom: .45em; }
.terms h2 { margin-top: 2em; }
.terms h3 { color: var(--green); }

.embed { background: #fff; border-radius: 12px; overflow: hidden; margin: 18px 0 8px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.embed iframe { display: block; }

table.dedications { width: 100%; border-collapse: collapse; margin-top: 10px; background: rgba(255,255,255,.75); border-radius: 12px; overflow: hidden; }
.dedications td { padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.dedications tr:last-child td { border-bottom: 0; }
.dedications .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dedications tr.donated td { color: var(--muted); }
.dedications .tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--green); background: rgba(31,77,58,.12); padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* Footer: dark green veil over the photo */
.site-footer { background: var(--green-veil); color: #fff; padding: 28px 0; font-size: .95rem; backdrop-filter: blur(4px); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .right { text-align: right; }
.site-footer a { color: #fff; }

@media (max-width: 640px) {
  body { font-size: 16px; background-attachment: scroll; }
  .brand img { height: 130px; }
  .brand-row { padding: 20px 16px 12px; }
  .site-nav ul { border-radius: 16px; }
  .site-nav a { padding: 8px 11px; font-size: .85rem; }
  .panel, section > .wrap.narrow, .embed-wrap { padding: 26px 22px; border-radius: 14px; }
  .hero .panel { font-size: 1rem; }
  .site-footer .right { text-align: left; }
}
