/* Overse — base element styles & helpers
 * Light, opt-in foundation. Sets sane document defaults using the tokens.
 */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--body-weight);
  line-height: var(--body-leading);
  color: var(--text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: var(--h1); font-weight: var(--h1-weight); }
h2 { font-size: var(--h2); font-weight: var(--h2-weight); }
h3 { font-size: var(--h3); font-weight: var(--h3-weight); }
h4 { font-size: var(--h4); font-weight: var(--h4-weight); letter-spacing: var(--tracking-tight); }
h5 { font-size: var(--h5); font-weight: var(--h5-weight); letter-spacing: var(--tracking-tight); line-height: var(--leading-snug); }
h6 { font-size: var(--h6); font-weight: var(--h6-weight); letter-spacing: var(--tracking-normal); line-height: var(--leading-snug); }

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

/* Paragraph size helpers */
.overse-lead { font-size: var(--text-body-lg); line-height: var(--leading-relaxed); color: var(--text-body); }
.overse-p-sm { font-size: var(--text-body-sm); line-height: var(--leading-normal); color: var(--text-body); }

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--color-primary); }

strong, b { font-weight: var(--fw-semibold); }

::selection { background: var(--orange); color: var(--white); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

small { font-size: var(--text-sm); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

/* Eyebrow / overline label used across the brand */
.overse-eyebrow {
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  font-size: var(--eyebrow-size);
  color: var(--color-accent);
}

/* Decorative background "objects" — soft teal leaf shapes + subtle dot grid.
 * Put on a position:relative container; children should sit above via z-index.
 * .overse-bg           full slate/teal leaf blobs on a light surface
 * .overse-bg--dots      adds a faint dotted-grid corner texture
 */
.overse-bg { position: relative; overflow: hidden; }
.overse-bg::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 380px; height: 380px; right: -120px; top: -120px;
  background: var(--leaf-teal-soft);
  border: 1px solid var(--leaf-teal-soft);
  border-radius: var(--radius-leaf-2xl);
}
.overse-bg::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 260px; height: 260px; left: -90px; bottom: -110px;
  background: var(--leaf-slate-soft);
  border: 1px solid var(--leaf-slate-soft);
  border-radius: var(--radius-leaf-alt-xl);
}
.overse-bg--dots::before {
  background:
    radial-gradient(var(--slate-200) 1.4px, transparent 1.4px) 0 0 / 18px 18px,
    var(--leaf-teal-faint);
  border-radius: var(--radius-leaf-2xl);
}
.overse-bg > * { position: relative; z-index: 1; }
