/**
 * Global CSS for {{SITE_NAME}}
 * Design tokens as CSS custom properties
 */

:root {
  /* Colors - Primary (customize these in smrt.config.js site.theme) */
  --color-primary: #1976d2;
  --color-primary-main: #1976d2;
  --color-primary-light: #e3f2fd;
  --color-primary-dark: #0d47a1;

  /* Colors - Neutral */
  --color-neutral-white: #ffffff;
  --color-neutral-gray100: #f5f5f5;
  --color-neutral-gray200: #eeeeee;
  --color-neutral-gray300: #e0e0e0;
  --color-neutral-gray400: #bdbdbd;
  --color-neutral-gray500: #9e9e9e;
  --color-neutral-gray600: #757575;
  --color-neutral-gray700: #616161;
  --color-neutral-gray800: #424242;
  --color-neutral-gray900: #212121;

  /* Colors - Semantic */
  --color-semantic-success: #4caf50;
  --color-semantic-warning: #ff9800;
  --color-semantic-error: #f44336;
  --color-semantic-info: #2196f3;

  /* Colors - Text */
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-disabled: #9e9e9e;
  --color-text-inverse: #ffffff;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Typography */
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-serif: Georgia, 'Times New Roman', serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--color-neutral-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography defaults */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary-main);
  outline-offset: 2px;
}

/* Remove default button styles */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

/* 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-width: 0;
}
