/* === Lê Mai Promo Hub — Base CSS ===
   Reset + typography + layout primitives. Edit-once, applies to all pages.
   Depends on: tokens.css */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }

/* === CONTAINERS === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-mobile);
}
.container-body {
  max-width: var(--body-max);
  margin: 0 auto;
  padding: 0 var(--pad-mobile);
}
.container-catalog {
  max-width: var(--catalog-max);
  margin: 0 auto;
  padding: 0 var(--pad-mobile);
}

@media (min-width: 720px) {
  .container, .container-body, .container-catalog {
    padding: 0 var(--pad-tablet);
  }
}
@media (min-width: 1024px) {
  .container, .container-body, .container-catalog {
    padding: 0 var(--pad-desktop);
  }
}

/* === SECTION === */
section { padding: var(--section-pad-mobile) 0; }
@media (min-width: 1024px) { section { padding: var(--section-pad-desktop) 0; } }

/* === TYPOGRAPHY ===
   VN + heading EN: EB Garamond. EN body: Atkinson regular (NOT bold). JP: Noto Serif JP. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0 0 var(--space-3);
  line-height: 1.25;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent-1);
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
}

/* === LANGUAGE BLOCKS — bilingual format ===
   Pattern: VN block, hr-thin, EN block, hr-thin, JP block (optional). */
.lang-vn { font-family: var(--font-body); }
.lang-en {
  font-family: var(--font-body-en);
  font-size: var(--fs-body-en);
  font-weight: 400;          /* NEVER bold for EN body */
  line-height: 1.6;
  opacity: 0.92;
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px dotted var(--rule);
}
.lang-en::before {
  content: "EN";
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.7;
  margin-bottom: 8px;
  font-family: var(--font-body-en);
}
.lang-jp {
  font-family: var(--font-jp);
  font-size: 13px;
  opacity: 0.78;
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  border-top: 1px dotted var(--rule);
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.lang-jp::before {
  content: "JP";
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.7;
  margin-bottom: 8px;
  font-family: var(--font-body-en);
}

/* Inline language helpers */
.jp { font-family: var(--font-jp); }
.en-inline {
  font-family: var(--font-body-en);
  font-size: 0.9em;
  opacity: 0.85;
  font-weight: 400;
}

/* === RULES === */
hr.rule-thin {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--space-4) 0;
  max-width: 64px;
}
hr.rule-full {
  border: none;
  border-top: 1px solid var(--rule);
  margin: var(--space-5) 0;
}

/* === HOVER (Section 3.4) — scale, NOT opacity === */
a, button { transition: transform var(--dur-fast) var(--ease); }
a:hover, button:hover { transform: scale(var(--hover-scale)); }
.no-hover-scale:hover { transform: none; }

/* Touch — disable hover scale */
@media (hover: none), (pointer: coarse) {
  a:hover, button:hover { transform: none; }
}

/* === MONO === */
code, .mono, .sku, .code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0.02em;
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
