/* ==============================================================================
   UMIBAH — Production Coming Soon Stylesheet
   Minimalist, calm, editorial, vertically centered responsive design
   ============================================================================== */

/* --- 1. CSS Custom Properties (Theme Variables) --- */
:root {
  --color-bg: #F7F5F0;
  --color-text-primary: #171717;
  --color-text-secondary: #77736C;
  --color-text-muted: #9C9890;
  
  --color-surface: #FFFFFF;
  --color-border: rgba(23, 23, 23, 0.15);
  --color-border-focus: #171717;
  
  --color-button-bg: #171717;
  --color-button-text: #F7F5F0;
  --color-button-hover: #333333;
  --color-button-active: #000000;
  
  --color-feedback-success-bg: rgba(23, 23, 23, 0.04);
  --color-feedback-success-text: #171717;
  --color-feedback-error-bg: rgba(185, 28, 28, 0.06);
  --color-feedback-error-text: #991B1B;

  --font-brand: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-input: 8px;
  --radius-pill: 9999px;
  --transition-smooth: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. Typography (@font-face Declarations) --- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi/Satoshi-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding: clamp(1.5rem, 3.5vh, 2.75rem) clamp(1.25rem, 5vw, 3.5rem);
}

/* --- 4. Page Wrapper & Container --- */
.page-wrapper {
  width: 100%;
  max-width: 1100px;
  min-height: calc(100dvh - clamp(3rem, 7vh, 5.5rem));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  opacity: 0;
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- 5. Header (Brand Identity with SVG Logo) --- */
.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 clamp(1rem, 2vh, 1.75rem);
}

.brand-logo {
  height: clamp(24px, 3.5vw, 32px);
  width: auto;
  display: block;
  user-select: none;
}

/* --- 6. Main Centered Content Area --- */
.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  padding: clamp(1rem, 2.5vh, 2.25rem) 0;
}

/* Hero Section */
.hero-section {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(2.25rem, 4.5vh, 3.5rem);
}

.hero-title {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: clamp(2.75rem, 10.5vw, 8.25rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: clamp(1rem, 2vh, 1.6rem);
  text-wrap: balance;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtext {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
  max-width: 580px;
  margin: 0 auto clamp(1.15rem, 2.2vh, 1.6rem);
  line-height: 1.55;
  text-wrap: balance;
}

/* Subbrand Etsy Link */
.etsy-link-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.etsy-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  position: relative;
  transition: color var(--transition-smooth);
}

.etsy-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background-color: var(--color-text-primary);
  opacity: 0.35;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  transform-origin: left center;
}

.etsy-link:hover::after,
.etsy-link:focus-visible::after {
  opacity: 0.9;
  transform: scaleX(1.02);
}

.etsy-link .arrow-icon {
  display: inline-block;
  transition: transform var(--transition-smooth);
  font-size: 1.15em;
  line-height: 1;
}

.etsy-link:hover .arrow-icon,
.etsy-link:focus-visible .arrow-icon {
  transform: translateX(4px);
}

/* --- 7. Newsletter / Email Signup Section --- */
.signup-section {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
}

.signup-header {
  margin-bottom: clamp(1rem, 2vh, 1.35rem);
}

.signup-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
}

.signup-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

/* Signup Form */
.signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-inputs-group {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.input-field-wrapper {
  flex: 1 1 auto;
  position: relative;
}

.email-input {
  width: 100%;
  height: 52px;
  padding: 0 1.25rem;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}

.email-input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.email-input:hover:not(:disabled) {
  border-color: rgba(23, 23, 23, 0.35);
}

.email-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 1px var(--color-border-focus);
}

.email-input:disabled {
  background-color: rgba(23, 23, 23, 0.04);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.submit-button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 1.75rem;
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color var(--transition-smooth), transform var(--transition-smooth), opacity var(--transition-smooth);
  user-select: none;
}

.submit-button:hover:not(:disabled) {
  background-color: var(--color-button-hover);
}

.submit-button:active:not(:disabled) {
  background-color: var(--color-button-active);
  transform: scale(0.99);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Feedback & Status Message */
.form-feedback {
  width: 100%;
  min-height: 1.5rem;
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
}

.form-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.form-feedback.is-success {
  color: var(--color-feedback-success-text);
  font-weight: 500;
}

.form-feedback.is-error {
  color: var(--color-feedback-error-text);
  font-weight: 500;
}

/* --- 8. Footer (Copyright) --- */
.site-footer {
  width: 100%;
  padding-top: clamp(1rem, 2vh, 1.75rem);
  padding-bottom: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* --- 9. Accessibility Helpers & Focus Rings --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Honeypot field (hidden from screen & readers) */
.hp-trap {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Accessible focus outlines for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

/* --- 10. Responsive Breakpoints --- */

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
  body {
    padding: 1.5rem 1.15rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 13vw, 3.8rem);
    letter-spacing: -0.03em;
    line-height: 0.98;
    margin-bottom: 1.15rem;
  }

  .hero-subtext {
    font-size: 1.05rem;
    margin-bottom: 1.35rem;
  }

  .hero-section {
    margin-bottom: 2rem;
  }

  .form-inputs-group {
    flex-direction: column;
    gap: 0.65rem;
  }

  .submit-button {
    width: 100%;
  }

  .signup-section {
    max-width: 100%;
  }
}

/* Medium tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-title {
    font-size: clamp(3.75rem, 10vw, 5.25rem);
  }
  
  .signup-section {
    max-width: 460px;
  }
}

/* Large screens and desktops (above 1400px) */
@media (min-width: 1400px) {
  .hero-title {
    font-size: clamp(6.5rem, 8.5vw, 8.5rem);
  }
}

/* --- 11. Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .page-wrapper {
    opacity: 1 !important;
    transform: none !important;
  }
}
