@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  color-scheme: light;
  --font-manrope: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-dm-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --text-display: clamp(2rem, 6.5vw, 3.5rem);
  --text-h1: clamp(1.55rem, 4.6vw, 2.6rem);
  --text-h2: clamp(1.3rem, 3.7vw, 2rem);
  --text-h3: clamp(1.1rem, 2.8vw, 1.45rem);
  --text-body-lg: clamp(1rem, 2.6vw, 1.2rem);
  --text-body: clamp(0.95rem, 2.1vw, 1.05rem);
  --text-label: clamp(0.82rem, 1.8vw, 0.92rem);
  --text-caption: clamp(0.74rem, 1.6vw, 0.84rem);
  --text-kpi: clamp(1.7rem, 6vw, 3.1rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #e8dfc9;
  color: #111111;
  font-family: var(--font-manrope), sans-serif;
}

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

input::placeholder {
  color: #7d7469;
}

@layer utilities {
  .text-display {
    font-family: var(--font-dm-serif), serif;
    font-size: var(--text-display);
    line-height: 0.98;
    letter-spacing: -0.01em;
  }

  .text-h1 {
    font-size: var(--text-h1);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }

  .text-h2 {
    font-size: var(--text-h2);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .text-h3 {
    font-size: var(--text-h3);
    line-height: 1.2;
  }

  .text-body-lg {
    font-size: var(--text-body-lg);
    line-height: 1.4;
  }

  .text-body {
    font-size: var(--text-body);
    line-height: 1.5;
  }

  .text-label {
    font-size: var(--text-label);
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  .text-caption {
    font-size: var(--text-caption);
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  .text-kpi {
    font-size: var(--text-kpi);
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

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