/* ================================================================
   base.css — reset, base styles, typography helpers
   ================================================================ */

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

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

body {
  background-color: var(--background);
  color: var(--on-background);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ================================================================
   Typography helpers
   ================================================================ */

.headline-lg {
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.headline-md {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.body-main {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
}

.label-caps {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}

.data-tabular {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   Text gradients
   ================================================================ */

.text-money-gradient {
  background: var(--money-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-waste-gradient {
  background: var(--waste-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bg-money-gradient {
  background: var(--money-gradient);
}

.bg-waste-gradient {
  background: var(--waste-gradient);
}

.text-on-surface {
  color: var(--on-surface);
}

.text-ink-secondary {
  color: var(--ink-secondary);
}

.text-ink-tertiary {
  color: var(--ink-tertiary);
}

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

.text-secondary {
  color: var(--secondary);
}

.text-tertiary {
  color: var(--tertiary);
}

.text-error {
  color: var(--error);
}

/* ================================================================
   Selection & focus states
   ================================================================ */

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

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

/* ================================================================
   Accessibility: respect reduced motion
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .reveal.active {
    opacity: 1;
    transform: none;
  }
}