/* base.css -- Font import, reset, body, typography scale, links.
   No component styles. No finance styles. Every value references a token
   from tokens.css. Load order: tokens.css -> base.css -> components.css -> finance.css. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ---------------------------------------------------------------
   Body
   --------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------
   Typography scale
   --------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1.25;
}

h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

p {
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ---------------------------------------------------------------
   Links
   --------------------------------------------------------------- */
a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
