/* ==========================================================================
   Aeolus Base Styles — Reset + typography
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);          /* 14px default for UI */
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface-page);
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11";
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: var(--text-3xl); letter-spacing: -0.04em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.03em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.025em; }
h4 { font-size: var(--text-lg); letter-spacing: -0.02em; font-weight: 700; }
h5 { font-size: var(--text-base); font-weight: 700; }
h6 { font-size: var(--text-sm); font-weight: 700; }

/* Strong / emphasis — use bold */
strong, b { font-weight: 700; color: var(--ink); }
em { font-style: normal; color: var(--primary); font-weight: 600; }

p { margin: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--primary-hover); }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  letter-spacing: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

img, svg { display: block; max-width: 100%; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

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

/* Scrollbar — subtle */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--cream-400); }

/* ---------- Utility classes ---------- */
.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;
}

.muted { color: var(--text-secondary); }
.dim   { color: var(--text-tertiary); }
.mono  { font-family: var(--font-mono); }

.hstack { display: flex; align-items: center; }
.vstack { display: flex; flex-direction: column; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.ml-auto { margin-left: auto; }
.flex-1 { flex: 1; }

/* Display font helper (for big numbers / headlines) */
.display { font-family: var(--font-display); letter-spacing: -0.02em; }
