/* ============================================================
   Home sticky buy bar — REV-1 (2026-05-11).
   Lives only on the homepage. Slides up after the hero scrolls
   past, hides on the announcement bar so it never doubles.
   ============================================================ */

.home-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--ds-ink, #14140e);
  color: var(--ds-paper, #faf9f5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px -16px rgba(0, 0, 0, 0.35);
  transform: translateY(110%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter var', system-ui, sans-serif;
}
.home-sticky-buy.is-visible {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .home-sticky-buy { transition: none; }
}

.home-sticky-buy-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}

.home-sticky-buy-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.home-sticky-buy-text strong {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ds-paper, #faf9f5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-sticky-buy-text span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 245, 0.7);
}
.home-sticky-buy-text s {
  color: rgba(250, 249, 245, 0.45);
  margin-left: 6px;
}

.home-sticky-buy-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--ds-clay, #c9613f);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter var', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}
.home-sticky-buy-cta:hover { background: #b3522e; transform: translateY(-1px); }
.home-sticky-buy-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.home-sticky-buy-dismiss {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  color: rgba(250, 249, 245, 0.55);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 4px;
}
.home-sticky-buy-dismiss:hover { color: var(--ds-paper, #faf9f5); }
.home-sticky-buy-dismiss:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

@media (max-width: 480px) {
  .home-sticky-buy-text span { display: none; }
  .home-sticky-buy-cta { padding: 11px 14px; font-size: 13px; }
}

/* Keep page content from hiding under the bar when visible */
body.home-sticky-on { padding-bottom: 76px; }
@supports (padding: max(0px)) {
  body.home-sticky-on { padding-bottom: max(76px, calc(64px + env(safe-area-inset-bottom, 0px))); }
}
