/* ==========================================================================
   base.css — Typography nền tảng
   ========================================================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-body);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  color: var(--c-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: var(--fs-hero-1);
  line-height: 1.1;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 700;
}

a {
  transition: color var(--t-fast);
}
a:hover {
  color: var(--c-green-700);
}

small {
  font-size: var(--fs-meta);
}

/* Chữ viết tay trang trí */
.script {
  font-family: var(--font-script);
  font-weight: 700;
  color: var(--c-green-800);
  line-height: 1.15;
}

/* Tiện ích */
.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-green-800);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus {
  top: 0;
  color: #fff;
}
