/*
 * Registry page hero shell.
 * Gift handles, links, and private-detail request URLs are hydrated from config.
 */

html {
  overflow-x: hidden;
}

body.registry-page {
  overflow-x: clip;
  overflow-y: visible;
  background: #fff8ed;
}

.registry-page [hidden] {
  display: none !important;
}

.registry-page :focus-visible {
  outline: 3px solid rgba(216, 184, 97, 0.78);
  outline-offset: 4px;
}

.registry-page .btn {
  letter-spacing: 0;
}

.registry-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + 4.5rem) 4.5rem 5.5rem;
  color: #fff8ed;
  background: #030202;
}

.registry-hero::before,
.registry-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.registry-hero::before {
  z-index: -3;
  background-image: var(--registry-hero-image);
  background-size: cover;
  background-position: center 38%;
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.035);
  animation: registryHeroDrift 18s ease-in-out infinite alternate;
}

.registry-hero::after {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.84), rgba(3, 2, 2, 0.22) 55%, rgba(3, 2, 2, 0.76)),
    linear-gradient(180deg, rgba(3, 2, 2, 0.04), rgba(3, 2, 2, 0.78));
  border-top: 4.1rem solid rgba(3, 2, 2, 0.94);
  border-bottom: 4.1rem solid rgba(3, 2, 2, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.registry-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25.5rem);
  gap: 3.25rem;
  align-items: end;
}

.registry-hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 63rem;
}

.registry-kicker,
.registry-section-kicker,
.registry-panel-kicker,
.registry-preference-meta,
.cash-card-eyebrow,
.copy-btn,
.registry-private-note span,
.registry-private-note-link,
.registry-note-kicker,
.registry-final-kicker,
.registry-hero-scroll {
  font-family: var(--font-accent);
  letter-spacing: 0;
  text-transform: uppercase;
}

.registry-kicker,
.registry-section-kicker,
.registry-panel-kicker,
.registry-preference-meta,
.cash-card-eyebrow,
.registry-note-kicker,
.registry-final-kicker {
  margin: 0;
  color: #d8b861;
  font-size: 0.82rem;
  font-weight: 700;
}

.registry-title {
  width: min(100%, 11ch);
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.registry-subtitle {
  width: min(45rem, 100%);
  margin: 0;
  color: rgba(255, 248, 237, 0.78);
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.34;
}

.registry-hero-actions,
.registry-preference-actions,
.registry-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.registry-hero-actions {
  margin-top: 0.45rem;
}

.registry-hero-actions .btn,
.registry-preference-actions .btn,
.registry-cta-actions .btn {
  min-width: 11rem;
  justify-content: center;
}

.registry-hero-footnote {
  margin: 0.25rem 0 0;
  color: rgba(255, 248, 237, 0.62);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.48;
}

.registry-hero-footnote a {
  color: #fff8ed;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(216, 184, 97, 0.7);
  text-underline-offset: 0.25em;
}

.registry-hero-panel {
  padding: 1.25rem;
  border: 1px solid rgba(216, 184, 97, 0.34);
  border-radius: 8px;
  background: rgba(6, 45, 39, 0.7);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.registry-hero-panel h2 {
  margin: 0.75rem 0 1rem;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 500;
  line-height: 1.08;
}

.registry-panel-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 97, 0.18);
  border-radius: 8px;
  background: rgba(216, 184, 97, 0.18);
}

.registry-panel-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  background: rgba(3, 2, 2, 0.26);
  color: rgba(255, 248, 237, 0.8);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.registry-panel-item:hover {
  background: rgba(216, 184, 97, 0.14);
  color: #fff8ed;
}

.registry-panel-index {
  color: #d8b861;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.registry-panel-item strong,
.registry-panel-item small {
  display: block;
}

.registry-panel-item strong {
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.15;
}

.registry-panel-item small {
  margin-top: 0.28rem;
  color: rgba(255, 248, 237, 0.62);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  line-height: 1.28;
}

.registry-hero-scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 248, 237, 0.74);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
}

.registry-hero-scroll svg {
  width: 1.15rem;
  height: 1.15rem;
  animation: registryScrollBounce 2.2s ease-in-out infinite;
}
