/* Critical CSS - Inline above-the-fold styles to prevent FOUC */
/* These styles are loaded synchronously before main CSS */

/* Base resets and essential styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light mode defaults */
:root {
  --background: 40 43% 98%;
  --foreground: 217 33% 12%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background: 217 55% 7%;
    --foreground: 210 67% 96%;
  }
}

/* Loading state */
.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* Prevent layout shift on load */
#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hide content until fonts load (optional) */
.wf-loading body {
  opacity: 0;
}

.wf-active body,
.wf-inactive body {
  opacity: 1;
  transition: opacity 0.2s;
}
