/* ==========================================================================
   Meewnu Reset & Base Normalization
   ========================================================================== */

@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

  body {
    font-family: var(--font-sans);
    background-color: var(--color-cream-light);
    color: var(--color-text-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Tekstur kertas sangat halus di latar */
    background-image: radial-gradient(rgba(184, 75, 42, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
  }

  img, picture, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  input, button, textarea, select {
    font: inherit;
    color: inherit;
  }

  button {
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
  }

  a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  ul, ol {
    list-style: none;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text-charcoal);
    letter-spacing: -0.01em;
  }

  /* Accessibility Focus Ring */
  :focus-visible {
    outline: 3px solid var(--color-terracotta);
    outline-offset: 3px;
  }

  /* Prefers Reduced Motion */
  @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;
    }
  }
}

/* Unified Landing, Auth & Onboarding Form Placeholder Hierarchy */
input::placeholder,
textarea::placeholder {
  color: #786f68 !important;
  opacity: 0.52 !important;
  font-weight: 400 !important;
  font-style: normal !important;
  transition: opacity 0.15s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.34 !important;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-20);
  padding-right: var(--space-20);
}

@media (max-width: 640px) {
  .container {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
}
