/* ==========================================================================
   GLOW AND EMBER — Minimal Holding Page
   Core Color Triad:
   - Tactile Substrate Purity: #F4EFE6
   - Treatment Restoration: #2D3F33
   - Inner Radiance: #C17F44 / #B86B27
   ========================================================================== */

:root {
  --color-substrate: #F4EFE6;
  --color-substrate-card: #FAF7F2;
  --color-restoration: #2D3F33;
  --color-restoration-light: #3D5545;
  --color-restoration-muted: #5B6F62;
  --color-restoration-subtle: #84988B;
  --color-radiance: #C17F44;
  --color-radiance-deep: #B86B27;

  --font-serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-substrate);
  color: var(--color-restoration);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 3rem 1.5rem;
}

/* Ambient Canvas / Warm Ember Glow */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* Central Holding Composition */
.holding-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Top Minimalist Lockup */
.top-tagline {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-restoration-muted);
  margin-bottom: 1.25rem;
}

/* Master Seal Emblem — Integrated, No Stickers or Tacky Glows */
.brand-emblem-wrap {
  margin: 0.5rem 0 1.5rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-emblem-img {
  width: 195px;
  height: 195px;
  display: block;
  object-fit: contain;
  /* Seamless letterpress integration */
  filter: none;
  border: none;
  outline: none;
  transition: transform 0.4s ease;
}

.brand-emblem-img:hover {
  transform: scale(1.02);
}

/* Master Subline */
.brand-subline {
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-radiance-deep);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.brand-subline::before,
.brand-subline::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-radiance));
}

.brand-subline::after {
  background: linear-gradient(90deg, var(--color-radiance), transparent);
}

/* Register / Invitation Block */
.register-block {
  width: 100%;
  max-width: 440px;
  margin-bottom: 2.75rem;
}

.register-form {
  display: flex;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid rgba(45, 63, 51, 0.16);
  border-radius: 9999px;
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  box-shadow: 0 4px 18px -4px rgba(45, 63, 51, 0.05);
  transition: var(--transition);
}

.register-form:focus-within {
  border-color: var(--color-radiance);
  box-shadow: 0 0 0 3px rgba(193, 127, 68, 0.14), 0 6px 20px -4px rgba(45, 63, 51, 0.08);
}

.register-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-restoration);
  min-width: 0;
}

.register-input::placeholder {
  color: #9AA79E;
  font-weight: 350;
}

.register-btn {
  border: none;
  outline: none;
  background-color: var(--color-restoration);
  color: var(--color-substrate);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.72rem 1.35rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.register-btn:hover {
  background-color: var(--color-restoration-light);
  box-shadow: 0 4px 14px rgba(45, 63, 51, 0.16);
  transform: translateY(-1px);
}

.register-note {
  font-size: 0.76rem;
  color: var(--color-restoration-subtle);
  margin-top: 0.85rem;
  letter-spacing: 0.02em;
}

/* Success Confirmation State */
.confirmation-msg {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--color-radiance);
  border-radius: 9999px;
  padding: 0.8rem 1.35rem;
  font-size: 0.82rem;
  color: var(--color-restoration);
  box-shadow: 0 4px 16px rgba(193, 127, 68, 0.08);
  animation: fadeIn 0.4s ease forwards;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.confirmation-msg .check-spark {
  color: var(--color-radiance);
}

/* Minimal Footer */
.holding-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-subline {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-restoration-muted);
}

.footer-inquiry {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-restoration-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-inquiry:hover {
  color: var(--color-radiance-deep);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--color-restoration-subtle);
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 520px) {
  body {
    padding: 2rem 1.15rem;
  }
  
  .brand-emblem-img {
    width: 160px;
    height: 160px;
  }

  .register-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .register-input {
    padding: 0.65rem 0.75rem;
  }

  .register-btn {
    width: 100%;
    padding: 0.78rem 1rem;
  }

  .brand-subline::before,
  .brand-subline::after {
    max-width: 24px;
  }
}
