/* ══════════════════════════════════════════════════════════════════
   DESIGN SYSTEM — Silver Angelic & Celestial Obsidian
   ══════════════════════════════════════════════════════════════════ */
:root {
  --bg:             #050609;
  --bg-1:           #090b10;
  --bg-2:           #0e1017;
  --bg-3:           #141722;
  --bg-4:           #1c202e;
  --bg-5:           #262b3d;

  /* Opaque/Semi-opaque card surfaces (Zero per-card backdrop-filter lag) */
  --card-bg:        #0b0d13;
  --card-bg-hover:  #11141e;
  --surface:        rgba(14, 16, 24, 0.82);
  --surface-hi:     rgba(22, 25, 36, 0.94);

  /* Angelic Silver, Pearl & Crimson Seraph Accents */
  --primary:        #e2e8f0;
  --primary-hi:     #ffffff;
  --primary-lo:     rgba(226, 232, 240, 0.10);
  --primary-glow:   rgba(226, 232, 240, 0.22);

  --seraph-rose:    #f43f5e;
  --seraph-glow:    rgba(244, 63, 94, 0.22);
  --accent-ice:     #bae6fd;
  --accent-emerald: #10b981;

  /* Borders — Crisp metallic hairline edges */
  --border:         rgba(226, 232, 240, 0.08);
  --border-md:      rgba(226, 232, 240, 0.15);
  --border-hi:      rgba(255, 255, 255, 0.28);

  /* Typography Colors (WCAG AA >= 4.5:1 across all surfaces) */
  --text:           #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #98a2b6;
  --text-dim:       #7a8599;

  /* Celestial Gradients */
  --title-grad:     linear-gradient(135deg, #ffffff 0%, #f1f5f9 32%, #94a3b8 68%, #f8fafc 100%);
  --halo-grad:      linear-gradient(135deg, #ffffff 0%, #e2e8f0 55%, #fda4af 100%);
  --btn-silver:     linear-gradient(180deg, #ffffff 0%, #dbe3ee 100%);
  --card-sheen:     linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);

  /* Fonts */
  --font-display:   'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-ui:        'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  /* Radii */
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      22px;
  --radius-xl:      30px;

  /* Motion Easing */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-lg:      0 24px 64px rgba(0, 0, 0, 0.75);
  --shadow-md:      0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-sm:      0 4px 14px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.svg-sprites { display: none; }
.avatar-picture { display: contents; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--primary-hi);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-5); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rv, .f-card { opacity: 1 !important; transform: none !important; }
}
