/* =========================================================
   MANEMUSE — Coming Soon
   Luxury palette: ivory, charcoal, antique gold
   ========================================================= */

:root {
  --bg: #f6f1ea;            /* warm ivory */
  --bg-deep: #efe6d9;       /* warmer ivory shadow */
  --ink: #1a1410;           /* near-black */
  --ink-soft: #4a3f36;
  --muted: #8a7a6a;
  --gold: #c9a35d;          /* antique gold */
  --gold-deep: #a37e3a;
  --gold-light: #e6cf9d;
  --line: rgba(26, 20, 16, 0.12);
  --radius: 2px;

  --serif-display: 'Playfair Display', 'Cormorant Garamond', serif;
  --serif: 'Cormorant Garamond', 'Playfair Display', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* Subtle paper-grain overlay */
.grain {
  position: fixed; inset: 0;
  /* Center the logo and increase its size for a stronger brand presence */
  --logo-w: clamp(420px, 34vw, 600px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 4px 0; /* tighten bottom spacing under the logo */
  padding-top: 2px;
  z-index: 3;
}
.grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
}

/* =====================================================
   Page layout
   ===================================================== */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
}

/* Left image side */
.hero-image {
  position: relative;
  padding: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 40%, #fff8ec 0%, var(--bg) 55%, var(--bg-deep) 100%);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 1.6vw;
  border: 1px solid var(--line);
  pointer-events: none;
}

.image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 1.2s ease-out 0.1s both;
}

.image-frame img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 4vw);
  max-height: calc(100svh - 4vw);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 30px 60px rgba(60, 40, 20, 0.18))
          drop-shadow(0 6px 18px rgba(60, 40, 20, 0.12));
}

/* Right content side */
.hero-content {
  position: relative;
  padding: clamp(28px, 3.5vw, 56px) clamp(28px, 4.5vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 2.4vw, 32px);
  min-height: 100vh;
  min-height: 100svh;
}

.content-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 32px);
}

/* Brand / Logo */
.brand {
  animation: fadeUp 1s ease-out both;
  /* Center the logo and increase its size for a stronger brand presence */
  --logo-w: clamp(360px, 30vw, 520px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 8px 0; /* reduce bottom spacing under the logo */
  padding-top: 4px;
  z-index: 2; /* keep logo visually on top when copy overlaps */
}
.brand-logo {
  width: var(--logo-w);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Copy */
.copy {
  animation: fadeUp 1s ease-out 0.15s both;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* lift the copy up to fill the whitespace under the logo; responsive by logo width */
  margin-top: calc(var(--logo-w) * -0.18);
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 0 0 28px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.eyebrow span { white-space: nowrap; }

.headline {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 auto 16px;
  color: var(--ink);
  text-align: center;
}
.headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 46ch;
  font-weight: 400;
}

/* Countdown */
.countdown {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 18px);
  animation: fadeUp 1s ease-out 0.3s both;
}
.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}
.num {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.label {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.divider {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}

/* Form */
.signup {
  animation: fadeUp 1s ease-out 0.45s both;
  max-width: 540px;
}
.field {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.3s ease;
}
.field:focus-within {
  border-color: var(--gold-deep);
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 4px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  outline: none;
}
.field input::placeholder {
  color: var(--muted);
  font-style: italic;
}
.field button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 4px 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease, gap 0.3s ease;
}
.field button:hover {
  color: var(--gold-deep);
  gap: 16px;
}
.field button .btn-arrow {
  font-family: var(--serif-display);
  font-size: 22px;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}
.field button:hover .btn-arrow { transform: translateX(4px); }

.form-msg {
  font-family: var(--sans);
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 18px;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}
.form-msg.error { color: #a14a3a; }
.form-msg.success { color: var(--gold-deep); }

.form-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Footer */
.foot {
  margin-top: 0;
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out 0.6s both;
}
.socials {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.socials a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}
.socials a:hover {
  color: var(--gold-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.copyright {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1100px) {
  .page { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3.5vw, 44px); }
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    padding: 24px 20px 0;
    min-height: 50vh;
    min-height: 50svh;
  }
  .image-frame img {
    max-height: 60vh;
    max-height: 60svh;
  }
  .hero-content {
    padding: 36px 24px 16px;
    min-height: auto;
    grid-template-rows: auto auto auto;
    gap: 24px;
  }
  .content-main { gap: 20px; }
  .brand {
    text-align: center;
    margin-left: 0;
    margin-top: 0;
    --logo-w: clamp(340px, 40vw, 460px);
    margin-bottom: 2px;
  }
  .brand-logo { margin: 0 auto; display: block; }
  .copy { text-align: center; margin-top: calc(var(--logo-w) * -0.16); }
  .eyebrow { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .countdown { justify-content: center; }
  .signup { margin-left: auto; margin-right: auto; }
  .foot { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .unit { min-width: 48px; }
  .divider { font-size: 20px; }
  .field input { font-size: 16px; padding: 12px 4px; }
  .field button { font-size: 11px; letter-spacing: 0.22em; padding-left: 12px; }
  .field button .btn-arrow { font-size: 18px; }
  .headline { font-size: clamp(30px, 9vw, 44px); }
  .foot { flex-direction: column; gap: 14px; }
  .copy { margin-top: -24px; }
}

/* Short viewport: scale down vertical sizes so everything fits */
@media (min-width: 861px) and (max-height: 800px) {
  .headline { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 12px; }
  .lede { font-size: 15px; line-height: 1.45; }
  .num { font-size: clamp(22px, 2vw, 28px); }
  .label { font-size: 9px; margin-top: 6px; }
  .brand { --logo-w: clamp(300px, 22vw, 380px); margin-bottom: 6px; }
  .hero-content { gap: 14px; padding-top: 24px; padding-bottom: 12px; }
  .content-main { gap: 18px; }
  .field input { padding: 10px 4px; font-size: 16px; }
  .form-note { font-size: 13px; }
}
