/* Damos en el Blanco — base layer
   Element defaults + the brand's dark ground. Linking styles.css opts a page
   into the DEB look. Keep this thin; components carry their own styling. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

::selection { background: var(--selection); color: var(--text-strong); }

/* Headings — Labil Grotesk, tight and large by default */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.4em;
  color: var(--text-strong);
  text-wrap: balance;
}
h1 { font-size: var(--display-2); line-height: var(--leading-none); letter-spacing: var(--tracking-tighter); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

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

/* The technical voice */
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

/* Eyebrow / kicker helper — mono, uppercased, tracked out */
.deb-kicker {
  font-family: var(--font-mono);
  font-weight: var(--fw-regular);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

a { color: var(--text-strong); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--dur-fast) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--text-strong); opacity: 0.62; }

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

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

img, svg, video { display: block; max-width: 100%; }
