/* healing.rocks signup snippets
   Matches the live site tokens. Load after styles.css.
   Safe to add without changing existing rules, except where noted. */

.hr-kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.45rem;
}

.hr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mid-page card */
.hr-midcard {
  background: var(--paper, #fffcf7);
  border: 1px solid var(--line, #e3d5c2);
  border-radius: var(--radius, 20px);
  padding: 1.6rem 1.3rem 1.45rem;
  box-shadow: var(--shadow, 0 18px 40px rgba(50, 24, 63, 0.08));
  max-width: 40rem;
  margin: 0 auto;
}
.hr-midcard .hr-kicker { color: var(--gold, #b8923e); }
.hr-midcard h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink, #2a2118);
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}
.hr-midcard p { color: var(--muted, #5c5348); margin: 0 0 0.85rem; max-width: 34rem; }
.hr-midcard .signup { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hr-midcard input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line, #e3d5c2);
  background: #fff;
  color: var(--ink, #2a2118);
  font: inherit;
}
.hr-midcard input[type="email"]:focus {
  outline: 2px solid var(--amethyst, #4a2a5c);
  outline-offset: 2px;
}
.hr-midcard .hr-note { font-size: 0.82rem; margin: 0.7rem 0 0; color: var(--muted, #5c5348); }

/* Follow row */
.hr-follow {
  border-top: 1px solid var(--line, #e3d5c2);
  padding: 1.6rem 0 0.4rem;
  text-align: left;
}
.hr-follow h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--ink, #2a2118);
}
.hr-follow p { color: var(--muted, #5c5348); margin: 0 0 0.9rem; font-size: 0.95rem; }
.hr-follow-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hr-follow-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line, #e3d5c2);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  color: var(--ink, #2a2118);
  text-decoration: none;
  font-size: 0.92rem;
}
.hr-follow-list a:hover,
.hr-follow-list a:focus {
  border-color: var(--amethyst, #4a2a5c);
  color: var(--amethyst, #4a2a5c);
  outline: none;
}
.hr-follow-list a[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}
.hr-follow-list svg { width: 16px; height: 16px; fill: currentColor; }

/* Footer signup bar */
.hr-footerbar {
  background: var(--cream, #f3ebe0);
  border-top: 1px solid var(--line, #e3d5c2);
  padding: 0.85rem 0;
}
.hr-footerbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}
.hr-footerbar p {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--ink, #2a2118);
  font-size: 0.95rem;
}
.hr-footerbar p strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.hr-footerbar .signup { display: flex; flex-wrap: wrap; gap: 0.45rem; flex: 2 1 18rem; margin: 0; }
.hr-footerbar input[type="email"] {
  flex: 1 1 12rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line, #e3d5c2);
  background: #fff;
  color: var(--ink, #2a2118);
  font: inherit;
}
.hr-footerbar input[type="email"]:focus {
  outline: 2px solid var(--amethyst, #4a2a5c);
  outline-offset: 2px;
}
/* Sit above the existing .mobile-cta on small screens (that bar is z-index 30). */
@media (max-width: 859px) {
  .hr-footerbar {
    position: sticky;
    bottom: calc(4.1rem + env(safe-area-inset-bottom));
    z-index: 25;
  }
  /* Uncomment to hide the footer bar on phones if it feels crowded:
  .hr-footerbar { display: none; }
  */
}

/* Popup / bottom sheet */
.hr-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 24, 0.38);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.hr-popup-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.hr-popup {
  position: fixed;
  z-index: 81;
  background: linear-gradient(160deg, var(--amethyst-deep, #32183f), var(--amethyst, #4a2a5c) 55%, #5a3d4a);
  color: #fbf7f0;
  border-radius: 24px;
  padding: 1.5rem 1.3rem 1.3rem;
  box-shadow: var(--shadow, 0 18px 40px rgba(50, 24, 63, 0.08));
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.hr-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hr-popup .hr-kicker { color: var(--gold-soft, #d7c08a); }
.hr-popup h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gold-soft, #d7c08a);
  margin: 0 0 0.55rem;
  font-size: 1.7rem;
}
.hr-popup p { color: rgba(251, 247, 240, 0.86); margin: 0 0 0.85rem; }
.hr-popup .signup { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hr-popup input[type="email"] {
  flex: 1 1 12rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
}
.hr-popup input::placeholder { color: rgba(255, 255, 255, 0.65); }
.hr-popup input[type="email"]:focus {
  outline: 2px solid var(--gold-soft, #d7c08a);
  outline-offset: 2px;
}
.hr-popup .hr-note { font-size: 0.8rem; margin: 0.65rem 0 0; }
.hr-popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fbf7f0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.hr-popup-close:hover,
.hr-popup-close:focus {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid var(--gold-soft, #d7c08a);
}
.hr-popup-dismiss {
  display: inline-block;
  margin-top: 0.55rem;
  background: none;
  border: 0;
  color: rgba(251, 247, 240, 0.8);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0;
}
.hr-popup-dismiss:hover,
.hr-popup-dismiss:focus { color: #fff; }

/* Desktop: centered dialog */
@media (min-width: 700px) {
  .hr-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 8px));
  }
  .hr-popup.is-open { transform: translate(-50%, -50%); }
}

/* Mobile: bottom sheet, never a full-screen takeover */
@media (max-width: 699px) {
  .hr-popup {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
    transform: translateY(16px);
  }
  .hr-popup.is-open { transform: none; }
  /* Keep the existing shop CTA tappable if it is on the page. */
  body.has-mobile-cta .hr-popup {
    bottom: calc(3.6rem + env(safe-area-inset-bottom));
    max-height: 62vh;
    border-radius: 24px;
    width: calc(100% - 1.2rem);
    left: 0.6rem;
    right: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-popup,
  .hr-popup-backdrop { transition: none; }
}

body.hr-popup-open { overflow: hidden; }


/* Footer form + note stack, so the status line can sit under the inputs */
.hr-footerbar-form {
  flex: 2 1 18rem;
  min-width: 0;
}
.hr-footerbar-form .signup {
  flex: none;
  width: 100%;
}
.hr-footerbar .hr-note {
  font-size: 0.78rem;
  margin: 0.4rem 0 0;
  color: var(--muted, #5c5348);
}

/* Signup status after MailerLite submit */
.signup-note.is-pending,
.hr-note.is-pending {
  color: var(--muted, #5c5348);
}
.signup-note.is-success,
.hr-note.is-success,
.hr-midcard .hr-note.is-success,
.hr-footerbar .hr-note.is-success {
  color: #3c7d48;
}
.signup-note.is-error,
.hr-note.is-error,
.hr-midcard .hr-note.is-error,
.hr-footerbar .hr-note.is-error {
  color: #8d2d2d;
}
.hr-popup .hr-note.is-pending { color: rgba(251, 247, 240, 0.86); }
.hr-popup .hr-note.is-success { color: var(--gold-soft, #d7c08a); }
.hr-popup .hr-note.is-error { color: #f3c6c6; }
.signup-block .signup-note.is-pending,
.newsletter-embed .signup-note.is-pending { color: rgba(251, 247, 240, 0.86); }
.signup-block .signup-note.is-success,
.newsletter-embed .signup-note.is-success { color: #cfe8d1; }
.signup-block .signup-note.is-error,
.newsletter-embed .signup-note.is-error { color: #f3c6c6; }
