/* ============================================
   ASHU — Holding Page
   ashu.studio
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #0e0c0a;
  color: #e8e0d4;
  font-family: Georgia, 'Times New Roman', serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* --- Noise Texture Overlay --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- Layout --- */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 0;
}

/* --- Mark / Logo --- */
.mark-wrap {
  margin-bottom: 0.6rem;
}

.mark {
  width: 158px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.92;
}

/* --- Content Block --- */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 480px;
}

/* --- Wordmark --- */
.wordmark {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.5em;
  font-weight: 400;
  color: #e8e0d4;
  margin-bottom: 0.75rem;
  text-indent: 0.5em;
}

/* --- Tagline --- */
.tagline {
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9a8a78;
    margin-bottom: 2rem;
    text-indent: 0.22em;
    white-space: nowrap;
}

/* --- Rule --- */
.rule {
  width: 40px;
  height: 0.5px;
  background: #3a3028;
  margin: 0 auto 2rem;
}

/* --- Body Text --- */
.body-text {
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  line-height: 2;
  color: #6a5a48;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* --- Form --- */
.signup-form {
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.email-input {
  width: 100%;
  background: transparent;
  border: 0.5px solid #3a3028;
  border-radius: 0;
  color: #e8e0d4;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.email-input::placeholder {
  color: #4a3a28;
  letter-spacing: 0.05em;
}

.email-input:focus {
  border-color: #6a5a48;
}

.submit-btn {
  width: 100%;
  background: #e8e0d4;
  border: none;
  border-radius: 0;
  color: #0e0c0a;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-indent: 0.35em;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.submit-btn:hover {
  background: #c8b89a;
}

.submit-btn:active {
  background: #b8a888;
}

.btn-arrow {
  font-style: normal;
  transition: transform 0.2s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-note {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #3a2a1a;
  text-transform: uppercase;
  text-align: center;
}

/* --- Success Message --- */
.success-message {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  padding: 1rem 0;
}

.success-message.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.success-message p {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a8a78;
  font-style: italic;
}

/* --- Footer --- */
.footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 1;
}

.footer-text {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2a1e14;
}

.footer-sep {
  color: #2a1e14;
  font-size: 0.6rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet and up — 600px+ */
@media (min-width: 600px) {

  .mark {
    width: 120px;
  }

  .form-row {
    flex-direction: row;
    gap: 0;
  }

  .email-input {
    flex: 1;
    border-right: none;
    font-size: 0.9rem;
  }

  .submit-btn {
    width: auto;
    white-space: nowrap;
    padding: 0.9rem 2rem;
    border-left: none;
  }

  .container {
    padding: 4rem 2rem;
  }

}

/* Desktop — 1024px+ */
@media (min-width: 1024px) {

  .mark {
    width: 140px;
  }

  .mark-wrap {
    margin-bottom: 3rem;
  }

  .container {
    padding: 5rem 2rem;
  }

  .body-text {
    margin-bottom: 3rem;
  }

}

/* Large monitors — 1440px+ */
@media (min-width: 1440px) {

  .mark {
    width: 160px;
  }

  .content {
    max-width: 520px;
  }

}

/* Tall phones — ensure content doesn't crowd */
@media (max-height: 700px) {

  .mark-wrap {
    margin-bottom: 1.5rem;
  }

  .mark {
    width: 80px;
  }

  .rule {
    margin-bottom: 1.5rem;
  }

  .body-text {
    margin-bottom: 1.5rem;
  }

  .footer {
    bottom: 1rem;
  }

}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {

  .signup-form,
  .success-message,
  .btn-arrow,
  .submit-btn {
    transition: none;
  }

}
