/* ===========================================================================
   JD Yuversity — Base element defaults & helpers
   Applies brand type + color to raw HTML. Imported via styles.css.
   =========================================================================== */

body {
  font-family: var(--font-sans);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-tight);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-strong);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: var(--weight-bold); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

/* Eyebrow / spaced label, e.g. "¿QUÉ SON?" */
.jd-eyebrow {
  font-family: var(--eyebrow-family);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--brand-accent);
}

/* Italic serif highlight word ("resaltado") */
.jd-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tighter);
}

/* Gradient highlight word */
.jd-gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

::selection { background: var(--teal-200); color: var(--green-deep); }
