@layer reset, base, wordpress, components, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@layer base {
  body {
    min-width: 320px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    background: var(--wp--preset--color--background);
    font-family: var(--wp--preset--font-family--inter, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  }

  img,
  svg,
  video {
    display: block;
    height: auto;
    max-width: 100%;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
  }

  a {
    transition: color var(--wp--custom--transition--base), opacity var(--wp--custom--transition--base);
  }

  a:hover {
    color: var(--wp--preset--color--chinalux-blue);
  }

  :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--wp--preset--color--chinalux-blue), white 20%);
    outline-offset: 3px;
  }

  :where(h1, h2, h3, h4, h5, h6) {
    letter-spacing: 0;
    text-wrap: balance;
  }

  :where(p, li) {
    text-wrap: pretty;
  }
}

@layer wordpress {
  .wp-site-blocks {
    min-height: 100vh;
  }

  .wp-site-blocks > main {
    margin-block-start: 0;
  }

  .entry-content {
    margin-block-start: 0;
  }

  .alignwide {
    max-width: var(--wp--style--global--wide-size);
  }

  .alignfull {
    margin-left: calc(var(--wp--style--root--padding-left) * -1);
    margin-right: calc(var(--wp--style--root--padding-right) * -1);
  }

  .wp-block-post-content > :where(.wp-block-group.is-style-section) {
    margin-block-start: 0;
  }
}

@layer utilities {
  .clx-title-1 {
    font-size: clamp(2.65rem, 5vw, 4.55rem);
    font-weight: 700;
    line-height: 1.05;
  }

  .clx-title-2 {
    font-size: clamp(2.15rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
  }

  .clx-title-3 {
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.16;
  }

  .clx-title-4 {
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    font-weight: 800;
    line-height: 1.45;
  }

  .clx-text-1 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 400;
    line-height: 1.42;
  }

  .clx-text-2 {
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    font-weight: 400;
    line-height: 1.5;
  }
}


