/* ==========================================================
   Enriguti Design System — Token entry point · v2 "Ficha"
   ========================================================== */

@import './spacing.css';
@import './colors.css';
@import './typography.css';

/* --- Element defaults (opt-in via class="enriguti" on <html>) --- */
.enriguti,
.enriguti * { box-sizing: border-box; }

.enriguti {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* Links: blue + underline. Zero-specificity (:where) so whole-card links
   (.entry, .next-card) and dark panels can override with a single class. */
:where(.enriguti a) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(.enriguti a:visited) { color: var(--link-visited); }
:where(.enriguti a:hover) { color: var(--link-hover); text-decoration-thickness: 2px; }

/* Focus ring — global (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: var(--focus-outline-offset);
}

::selection { background: var(--ink); color: var(--paper); }

::placeholder { color: var(--ink-3); opacity: 1; }

[disabled], [aria-disabled="true"] { cursor: not-allowed; }
button[disabled], input[disabled] {
  background: var(--paper-2);
  color: var(--ink-3);
  border-color: var(--rule-soft);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
