/*
 * Global typography for Vi tinh A - Z.
 * Lato is self-hosted to avoid render-blocking third-party font requests.
 */

/* Exact font files and weights used by the MemoryZone reference page. */
@font-face {
  font-display: swap;
  font-family: "Lato MemoryZone";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/lato-light.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Lato MemoryZone";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/lato-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Lato MemoryZone";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/lato-bold.woff2") format("woff2");
}

/* latin-ext: Vietnamese and extended Latin glyphs */
@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/lato-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/lato-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-primary: "Lato MemoryZone", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary: "Lato MemoryZone", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vtaz-font: "Lato MemoryZone", "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-family: var(--vtaz-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--vtaz-font);
}

body {
  color: #10203a;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.62;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.product-title {
  font-family: var(--vtaz-font);
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1,
.page-title {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
}

h2 {
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.18;
}

h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.28;
}

p,
li,
label,
input,
select,
textarea,
button {
  line-height: 1.6;
}

strong,
b {
  font-weight: 700;
}

.price,
.woocommerce-Price-amount,
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  h1,
  .page-title {
    font-size: clamp(28px, 8.2vw, 36px);
  }
}
