/* ═══════════════════════════════════════════════════════════════
   INITIUM Design System — Base
   Tokens, reset, typography
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  /* Accent */
  --accent: #50C878;
  --accent-dark: #3DA65E;
  --accent-light: #6EE094;

  /* Neutrals */
  --dark: #1A1A1A;
  --dark-2: #2A2A2A;
  --dark-3: #3A3A3A;
  --surface: #F7F8F5;
  --surface-warm: #F0F1ED;
  --white: #FFFFFF;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #6B7B6E;
  --text-tertiary: #A8B5AC;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.65);

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px */
  --text-8xl: 6rem;      /* 96px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 720px;
  --section-pad-y: var(--space-24);
  --section-pad-y-sm: var(--space-16);
  --page-pad-x: var(--space-6);

  /* Borders */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Typography ─── */
.font-display {
  font-family: var(--font-display);
}

.font-editorial {
  font-family: var(--font-editorial);
}

.font-body {
  font-family: var(--font-body);
}

/* Display sizes */
.headline-xl {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 6vw, var(--text-8xl));
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 4.5vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.1;
}

/* Editorial quote/statement */
.editorial-lg {
  font-family: var(--font-editorial);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 400;
  line-height: 1.3;
  font-style: italic;
}

.editorial-md {
  font-family: var(--font-editorial);
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
}

/* Body sizes */
.body-lg {
  font-size: var(--text-lg);
  line-height: 1.6;
}

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

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

/* Labels */
.label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.label-md {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Utility ─── */
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-white { color: var(--white); }
.text-muted-on-dark { color: var(--text-on-dark-muted); }

.bg-dark { background-color: var(--dark); }
.bg-surface { background-color: var(--surface); }
.bg-white { background-color: var(--white); }
.bg-accent { background-color: var(--accent); }

/* Screen-reader only */
.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;
}
