/* ==========================================================================
   BYREED BEAUTY — temporary launch page
   Design tokens live here so palette/type/spacing can be swapped for
   final brand assets without touching layout rules below.
   ========================================================================== */

:root {
  /* Palette: warm white + beige + black, never yellow/gold. */
  --byreed-ivory: #f5f0e8;
  --byreed-cream: #ede4d7;
  --byreed-sand: #d9c9b5;
  --byreed-black: #111111;
  --byreed-white: #faf8f4;

  --color-ink: var(--byreed-black);
  --color-surface: var(--byreed-white);
  --color-fallback-bg: var(--byreed-ivory);
  --color-error: #6b2f22;

  /* Swap these for licensed brand fonts later; nothing below depends
     on the specific family. */
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --content-width: min(600px, 84vw);
  --form-height: clamp(48px, 5.4vw, 60px);

  --fade-duration: 650ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-fallback-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--byreed-black);
  outline-offset: 3px;
}

.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;
}

/* ---------- Background (photo) ----------
   Karla's final scene photo, full bleed. It already contains the
   BYREED BEAUTY wordmark, so no HTML logo is rendered on top of it;
   only LAUNCHING SOON and the signup form are overlaid, positioned in
   the clean wall space below the baked-in logo. */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-fallback-bg);
}

.bg picture,
.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 760px) {
  .bg img {
    object-position: center 28%;
  }
}

/* ---------- Hero ----------
   Content is anchored to a fixed proportion of the viewport (not
   vertically centered) so it lines up with the clean space beneath
   the logo baked into the background photo. */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-width);
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 760px) {
  .hero__content {
    top: 47%;
  }
}

.hero__divider {
  width: clamp(26px, 3.4vw, 46px);
  height: 1px;
  background: rgba(17, 17, 17, 0.38);
  margin: clamp(1.4rem, 3.4vw, 2.25rem) 0;
}

.hero__status {
  margin: 0 0 clamp(1.6rem, 3.6vw, 2.75rem);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  letter-spacing: clamp(0.22rem, 0.5vw, 0.38rem);
  color: var(--color-ink);
}

/* ---------- Signup form ---------- */

.signup {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--content-width);
  height: var(--form-height);
  border: 1px solid var(--byreed-black);
  background: rgba(250, 248, 244, 0.6);
}

.signup__field {
  flex: 1 1 auto;
  min-width: 0;
}

.signup__input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 clamp(1rem, 2.4vw, 1.6rem);
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.signup__input::placeholder {
  color: rgba(17, 17, 17, 0.42);
  letter-spacing: 0.1em;
}

.signup__submit {
  flex: 0 0 auto;
  border: 0;
  padding: 0 clamp(1.3rem, 3.2vw, 2.1rem);
  background: var(--byreed-black);
  color: var(--byreed-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.64rem, 0.85vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.signup__submit:hover {
  opacity: 0.85;
}

.signup__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup__message {
  min-height: 1.3em;
  margin: clamp(0.8rem, 1.8vw, 1.1rem) 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--color-ink);
}

.signup[data-state="error"] .signup__message {
  color: var(--color-error);
}

@media (max-width: 560px) {
  .signup {
    flex-direction: column;
    height: auto;
  }

  .signup__field {
    border-bottom: 1px solid var(--byreed-black);
  }

  .signup__input {
    height: var(--form-height);
  }

  .signup__submit {
    height: var(--form-height);
  }
}

/* ---------- Motion ---------- */

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

.fade-in {
  opacity: 0;
  animation: fadeIn var(--fade-duration) ease-out forwards;
}

.hero__divider.fade-in {
  animation-delay: 80ms;
}

.hero__status.fade-in {
  animation-delay: 220ms;
}

.signup.fade-in {
  animation-delay: 360ms;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
