/* Design tokens + reset + typography */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/poppins-400-f3f0f5ee.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/assets/poppins-600-1f3eca1a.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/assets/poppins-700-54e23180.woff2") format("woff2");
}

:root {
  /* Warm editorial palette: off-white paper, deep navy ink, sage accent */
  --color-bg: #fbfaf8;
  --color-surface: #ffffff;
  --color-border: #e6e3dc;
  --color-text: #10242e;
  --color-text-muted: #5f6b77;
  --color-hero: #f0eee8;

  /* Sage: primary / income */
  --color-primary: #2e5743;
  --color-primary-dark: #203e30;
  --color-primary-soft: #e9eee5;

  /* Pink-red: expenses */
  --color-expense: #f43f5e;
  --color-expense-dark: #d92646;
  --color-expense-soft: #fdebef;

  /* Blue: balance / info */
  --color-info: #3b82f6;
  --color-info-soft: #eaf1fd;

  /* Extra pastels for icon circles & charts */
  --color-purple: #8b5cf6;
  --color-purple-soft: #f1ebfd;
  --color-amber: #f59e0b;
  --color-amber-soft: #fdf3e0;

  --color-accent: #f59e0b;
  --color-accent-soft: #fdf3e0;
  --color-danger: #d92646;
  --color-danger-soft: #fdebef;
  --color-success: #12813b;
  --color-success-soft: #e7f6ec;

  --font-sans: Arial, "Helvetica Neue", sans-serif;
  /* System serif stack: no webfont download, editorial feel. */
  --font-serif: Georgia, "Times New Roman", serif;

  --radius-s: 0.375rem;
  --radius-m: 0.5rem;
  --radius-l: 0.75rem;
  --radius-pill: 999px;

  --shadow-s: 0 1px 3px rgba(31, 41, 55, 0.05);
  --shadow-m: 0 12px 32px rgba(31, 41, 55, 0.08);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }

/* UI chrome stays sans: controls, navigation, labels. */
button, input, select, textarea, .button, .site-nav, .eyebrow, .chip, .form__label, .breadcrumb {
  font-family: var(--font-sans);
}

.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

small {
  font-size: 0.8rem;
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-primary);
}

img, svg {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

input, select, textarea {
  font: inherit;
}

.text-green { color: var(--color-primary); }
.text-expense { color: var(--color-expense); }
.text-info { color: var(--color-info); }
