/* ─── Mint Vault — Base & Reset ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-surface); }
::-webkit-scrollbar-thumb { background: var(--clr-border-subtle); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-primary); }

/* Selection */
::selection { background: var(--clr-primary-glow); color: var(--clr-primary); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography scale */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

p { color: var(--clr-text-secondary); }
small { font-size: 0.8125rem; }

/* Helper text classes */
.text-primary    { color: var(--clr-primary) !important; }
.text-muted      { color: var(--clr-text-muted) !important; }
.text-secondary  { color: var(--clr-text-secondary) !important; }
.text-income     { color: var(--clr-income) !important; }
.text-expense    { color: var(--clr-expense) !important; }
.text-warning    { color: var(--clr-warning) !important; }
.text-center     { text-align: center; }
.font-display    { font-family: var(--font-display); }
.font-bold       { font-weight: 700; }
.font-medium     { font-weight: 500; }

/* Utility */
.hidden          { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2           { gap: var(--sp-2); }
.gap-3           { gap: var(--sp-3); }
.gap-4           { gap: var(--sp-4); }
.gap-6           { gap: var(--sp-6); }
.w-full          { width: 100%; }
.mt-2            { margin-top: var(--sp-2); }
.mt-4            { margin-top: var(--sp-4); }
.mt-6            { margin-top: var(--sp-6); }

/* Glow blobs (decorative) */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Number display */
.amount-positive { color: var(--clr-income); }
.amount-negative { color: var(--clr-expense); }

/* Transitions global */
a, button { transition: var(--transition); }
