/* ===================================================================
   Base Styles - Reset, Typography, Element Defaults
   =================================================================== */

/* ===================================================================
   CSS RESET
   =================================================================== */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins and padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* ===================================================================
   TYPOGRAPHY
   =================================================================== */

/* Body base styles */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Inter variable font features */
  font-feature-settings: 'liga' 1, 'calt' 1, 'case' 1, 'ss01' 1;
  font-optical-sizing: auto;
}

/* Fallback for browsers without variable font support */
@supports not (font-variation-settings: normal) {
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

/* Paragraphs */
p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

/* ===================================================================
   LINKS
   =================================================================== */

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color var(--transition-base) ease;
}

a:hover {
  color: var(--color-accent-secondary);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===================================================================
   IMAGES
   =================================================================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================================
   BUTTONS
   =================================================================== */

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* ===================================================================
   ACCESSIBILITY
   =================================================================== */

/* Focus visible outline for all interactive elements */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================================
   FORM ELEMENTS
   =================================================================== */

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

/* ===================================================================
   CODE
   =================================================================== */

code,
pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--font-size-sm);
}
