/**
 * SWP Design System
 *
 * Entry point for all design tokens and base styles.
 * Import this file in your layout to get the complete design system.
 */

@import url('design-tokens.css');

/* ===========================================
   BASE RESETS & DEFAULTS
   =========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-background);
}

/* ===========================================
   TYPOGRAPHY DEFAULTS
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-md); }

p {
  margin-bottom: var(--spacing-8);
  color: var(--color-text-secondary);
}

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

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

/* ===========================================
   FOCUS STATES
   =========================================== */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* ===========================================
   SCROLLBAR STYLING
   =========================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-background);
}

/* ===========================================
   SELECTION
   =========================================== */
::selection {
  background: color-mix(in srgb, var(--color-teal) 30%, transparent);
  color: var(--color-text);
}
