:root {
  --ink: #321421;
  --berry: #7b2644;
  --rose: #c85c82;
  --blush: #fff5f8;
  --gold: #b08a2e;
  --sage: #477160;
  --line: rgba(50, 20, 33, 0.16);
  --soft: rgba(255, 255, 255, 0.84);
  --shadow: 0 18px 50px rgba(50, 20, 33, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff9fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.hero {
  min-height: 78svh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, rgba(50, 20, 33, 0.84), rgba(50, 20, 33, 0.44), rgba(50, 20, 33, 0.08)),
    var(--hero-image, url("/assets/baby-zamira/Baby_Zamira_Facebook_Event_Cover.png")) center / cover no-repeat;
  color: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 56px);
}

.homeLink,
.navLinks a {
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.38);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.96rem;
}

.heroOverlay {
  width: min(760px, calc(100% - 36px));
  align-self: end;
  padding: 0 clamp(18px, 5vw, 56px) 64px;
}

.eyebrow,
.sectionKicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 8vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.heroActions,
.sectionHeader,
.qrGrid {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.heroActions {
  margin-top: 28px;
}

.primaryBtn,
.secondaryBtn,
button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.primaryBtn,
button {
  background: var(--berry);
  color: #fff;
}

.primaryBtn:hover,
button:hover {
  background: #621d35;
}

.secondaryBtn {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.secondaryBtn.dark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-color: var(--line);
  background: #fff;
  color: var(--berry);
}

.section {
  padding: 54px 18px;
}

.sectionInner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eventBand,
.donationBand,
.qrBand {
  background: #ffffff;
}

.pollBand {
  background: linear-gradient(180deg, #fff9fb 0%, #fff 100%);
}

.eventGrid,
.donationGrid,
.commentsGrid,
.qrGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.sectionHeader {
  justify-content: space-between;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

p {
  line-height: 1.65;
}

.sectionNote {
  max-width: 360px;
  margin: 0;
  color: #684254;
}

.detailsList {
  display: grid;
  gap: 12px;
  margin: 0;
}

.donationGrid {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(135deg, #fff, #fff5f8);
  box-shadow: var(--shadow);
}

.donationFinePrint {
  margin-bottom: 0;
  color: #684254;
  font-weight: 700;
}

.paypalGuide {
  max-width: 520px;
  margin: 18px 0 0;
}

.paypalGuide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.paypalGuide figcaption {
  margin-top: 8px;
  color: #684254;
  font-size: 0.95rem;
  font-weight: 700;
}

.paypalBtn {
  justify-self: end;
  width: min(260px, 100%);
  text-align: center;
}

.detailsList div,
.registryCard,
.pollCard,
.commentCard,
.claimDialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.detailsList div {
  padding: 18px;
}

dt {
  margin-bottom: 6px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 800;
}

.registryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pager button {
  width: auto;
  min-width: 104px;
}

.pager button:disabled {
  cursor: not-allowed;
  background: #98828e;
}

.pagerStatus {
  color: #684254;
  font-weight: 800;
}

.registryCard {
  overflow: hidden;
  background: #fff;
}

.registryImage {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #fbe2ea, #fff7de);
}

.registryBody,
.pollCard,
.commentCard {
  padding: 18px;
}

.registryBody h3,
.pollCard h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.itemMeta,
.emptyState,
.formStatus {
  color: #715064;
}

.itemMeta {
  margin: 12px 0;
  font-weight: 800;
}

.itemLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.itemLinks a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  text-decoration: none;
  color: var(--berry);
  font-weight: 800;
}

.itemLinks a:hover {
  border-color: var(--gold);
}

.registryCard button:disabled {
  cursor: not-allowed;
  background: #98828e;
}

.pollList {
  display: grid;
  gap: 18px;
}

.pollOptions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.pollOption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.pollBar {
  grid-column: 2 / 4;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1d7e1;
}

.pollBar span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--sage);
}

.guestForm {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.turnstile-slot {
  min-height: 65px;
}

.commentList {
  display: grid;
  gap: 12px;
}

.commentCard {
  background: #fff;
}

.commentCard p {
  margin: 8px 0 0;
}

.commentDate {
  color: #806174;
  font-size: 0.86rem;
}

.qrGrid {
  align-items: center;
  justify-content: space-between;
}

.qrImage {
  width: min(220px, 52vw);
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.claimDialog {
  width: min(520px, calc(100% - 28px));
  padding: 24px;
  color: var(--ink);
}

.claimDialog::backdrop {
  background: rgba(50, 20, 33, 0.52);
}

.dialogCloseForm {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.dialogCloseForm button {
  min-height: 36px;
  padding: 8px 12px;
  background: #f0dde6;
  color: var(--ink);
}

@media (max-width: 760px) {
  .hero {
    min-height: 74svh;
    background:
      linear-gradient(180deg, rgba(50, 20, 33, 0.86), rgba(50, 20, 33, 0.5), rgba(50, 20, 33, 0.18)),
      var(--hero-image, url("/assets/baby-zamira/Baby_Zamira_Facebook_Event_Cover.png")) center / cover no-repeat;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .navLinks {
    gap: 12px;
    font-size: 0.9rem;
  }

  .heroOverlay {
    padding: 0 18px 44px;
  }

  .eventGrid,
  .donationGrid,
  .commentsGrid,
  .qrGrid {
    grid-template-columns: 1fr;
  }

  .paypalBtn {
    justify-self: stretch;
  }

  .sectionHeader {
    align-items: flex-start;
  }
}
