/* ============================================
   BASE.CSS — Biến màu, reset, typography nền
   Sửa: màu sắc, font chung, line-height baseline
   ============================================ */

:root {
  --cream: #F4EFE6;
  --cream-2: #EDE6D8;
  --ink: #1C1C1C;
  --beige: #D9CDB8;
  --rose: #E8B5A0;
  --white: #FFFFFF;
}

html {
  -webkit-tap-highlight-color: transparent;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--cream);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: manipulation;
}

html, body {
  overflow-x: hidden;
}

body {
  min-width: 0;
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
}

@supports (padding-bottom: max(0px, env(safe-area-inset-bottom))) {
  body { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

::selection {
  background: var(--beige);
  color: var(--ink);
}

[aria-current]:not([aria-current="false"]) {
  text-decoration: underline 1.5px var(--ink);
  text-underline-offset: 3px;
}

/* === Typography utilities === */
.editorial-heading {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
  font-weight: 300;
  line-height: 1.05;
}

.editorial-logo {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.04em;
  font-weight: 300;
  line-height: 0.85;
  text-transform: lowercase;
}

.editorial-section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.editorial-section-label {
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink);
  opacity: 0.8;
  font-weight: 500;
}

/* === Layout container === */
@media (min-width: 768px) {
  .max-content {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
  .section-py {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }
}

.section-py {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition-duration: 0.01ms !important;
  }
  .fade-up, .logo-char, .crossfade-img, .gallery-img {
    transition-duration: 0.01ms !important;
  }
}

/* Number input arrows removed */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
