@import url('page-bg.css');
@import url('typography.css');
/* ==========================================================================
   Base Styles & Reset - Micro Learning English (Brand v3 – Stitch)
   ========================================================================== */

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

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

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  font-size: 16px; /* Mobile trước */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

/* Chiều rộng nội dung tối đa 1120px */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-16);
  padding-right: var(--spacing-16);
}

/* Tiêu đề & Nội dung - Mobile trước */
h1, h2, h3 {
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: var(--spacing-16);
}

h1 {
  font-size: 32px;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
}

p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-16);
}

p.subtext, .subtext {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-semibold);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* Desktop styles (từ 768px trở lên) */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 48px;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
    line-height: 1.65;
  }
}
