/* ==========================================================================
   BASE ELEMENTS — semantic styles
   ========================================================================== */

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

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg-1);
  margin: 0 0 var(--space-4) 0;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--eln-pink);
}

h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--eln-teal);
}

h5 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-h5);
  color: var(--eln-pink);
}

h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h6);
  color: var(--eln-teal);
  text-transform: none;
}

p {
  margin: 0 0 var(--space-4) 0;
  text-wrap: pretty;
}

a {
  color: var(--eln-teal);
  text-decoration-color: color-mix(in oklab, var(--eln-teal) 40%, transparent);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease-out);
}
a:hover { color: var(--eln-pink); }

small { font-size: var(--fs-small); color: var(--fg-2); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-2);
  border-radius: var(--radius-xs);
  padding: 0.1em 0.35em;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-1);
  margin: var(--space-6) 0;
}