/**
 * Essência - base global segura V1.2.2.
 * Não contém estilos específicos de páginas ou WooCommerce.
 */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

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

html {
  text-rendering: optimizeLegibility;
}

body {
  color: var(--ess-text-900);
  background: var(--ess-ivory);
  font-family: var(--ess-font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  color: var(--ess-brand-navy);
  font-family: var(--ess-font-heading);
  font-weight: 600;
}

h1 {
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
}

h3 {
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.15;
}

h4 {
  font-size: clamp(20px, 1.6vw, 22px);
  line-height: 1.2;
}

.ess-lead {
  font-family: var(--ess-font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
}

.ess-small {
  font-family: var(--ess-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.ess-container {
  width: min(
    var(--ess-container),
    calc(100% - (2 * var(--ess-gutter)))
  );
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--ess-light-gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ess-brand-navy);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
