/* ========================================== */
/*  CSS RESET & BASE STYLES                   */
/*  Normalización y estilos base globales     */
/* ========================================== */

/* ------------------------------------------ */
/*  BOX MODEL RESET                           */
/* ------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------ */
/*  HTML & BODY                               */
/* ------------------------------------------ */

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  font-weight: var(--txt-weight);

  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;

    @view-transition {
      navigation: auto;
    }
  }
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
}

/* Global Grain Texture Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: var(--texture-grain);
  z-index: 9999;
}

/* ------------------------------------------ */
/*  ELEMENTS RESET                            */
/* ------------------------------------------ */

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-sm) var(--ease-expo);
}

/* ------------------------------------------ */
/*  HEADINGS BASE                             */
/* ------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.2;
  max-width: 68ch;
}


h1,
h2:not(.logo) {
  font-weight: var(--title-weight, 300);
  transition: font-weight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-variation-settings: 'wght' var(--title-weight, 300);
}