/* Design tokens for the dirdam.squadro.app redesign.
   Values are lifted directly from the already-live dirdam.squadro.app "My
   Apps" page (proven design language) and formalized as custom properties
   so the rest of the site (not just the Apps grid) can share them. */
:root {
  /* Brand gradient */
  --color-brand-start: #667eea;
  --color-brand-end: #764ba2;
  --gradient-brand: linear-gradient(135deg, var(--color-brand-start) 0%, var(--color-brand-end) 100%);

  /* Neutrals */
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-subtle: #6b7280;
  --color-text-faint: #999999;
  --color-page-bg: #f4f4f8;
  --color-card-bg: #ffffff;
  --color-border-neutral: #dcdce3;

  /* Overlays (mostly used on the gradient hero) */
  --overlay-white-15: rgba(255, 255, 255, 0.15);
  --overlay-white-25: rgba(255, 255, 255, 0.25);
  --overlay-white-30: rgba(255, 255, 255, 0.3);
  --overlay-white-85: rgba(255, 255, 255, 0.85);
  --overlay-white-90: rgba(255, 255, 255, 0.9);
  --overlay-black-06: rgba(0, 0, 0, 0.06);
  --overlay-black-12: rgba(0, 0, 0, 0.12);
  --overlay-black-20: rgba(0, 0, 0, 0.2);

  /* Badge / chip accent (interactive-card badges) */
  --color-badge-bg: #eef0fc;
  --color-badge-text: #4c51bf;
  --color-badge-border: rgba(102, 126, 234, 0.25);

  /* Role badge accent — the brand gradient's other end (--color-brand-end
     instead of --color-brand-start), blended with the same ratios as the
     badge tokens above, so a role badge (job title) reads as clearly
     distinct from a date badge while still visibly part of the same
     brand-gradient theme. */
  --color-role-bg: #eee9f4;
  --color-role-text: #573777;
  --color-role-border: rgba(118, 75, 162, 0.25);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-size-hero: 2.5em;
  --font-size-hero-mobile: 2em;
  --font-size-hero-compact: 1.9em;
  --font-size-subtitle: 1.1em;
  --font-size-section-title: 1.6em;
  --font-size-card-title: 1.5em;
  --font-size-small: 0.85em;
  --font-size-badge: 0.72em;
  --line-height-body: 1.6;

  /* Spacing scale (matches the px values already used throughout) */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 20px;
  --space-9: 30px;
  --space-10: 40px;
  --space-11: 50px;
  --space-12: 60px;

  /* Radius scale */
  --radius-pill: 999px;
  --radius-lg: 15px;
  --radius-md: 8px;
  --radius-sm: 4px;

  /* Elevation */
  --shadow-card-resting: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 15px 40px rgba(0, 0, 0, 0.3);
  --shadow-focus-ring: 0 0 0 3px rgba(102, 126, 234, 0.5);

  /* Motion */
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s;

  /* Layout */
  --content-max-width: 1200px;
}

/* Per-language body typeface. `--font-sans` above stays as the default/
   fallback (used before i18n.js sets `<html lang>`, and as the trailing
   fallback segment of each stack below) — everything in this codebase
   already reads --font-sans (directly, or via `font-family: inherit`), so
   overriding it here re-themes the whole site with no other CSS changes. */
html[lang="es"] {
  --font-sans: 'CuchillerasSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
html[lang="en"] {
  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
html[lang="ja"] {
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
