/* Critical styles to prevent FOUC and layout shifts */

:root {
  /* Design Tokens - Body Text */
  --body-text-color: rgba(80, 80, 80, 0.9);
  --body-text-font-family: Comfortaa, Helvetica, Arial, sans-serif;
  --body-text-font-weight: 700;
  --body-text-font-size: 19.2px;
  --body-text-letter-spacing: 0.65px;
  --body-text-line-height: 31.2px;

  /* Design Tokens - Heading/Title Text */
  --heading-text-color: rgb(58, 141, 141);
  --heading-text-font-family: Comfortaa, Helvetica, Arial, sans-serif;
  --heading-text-font-weight: 700;
  --heading-text-font-size: 24px;
  --heading-text-font-style: italic;
  --heading-text-letter-spacing: -0.5px;
  --heading-text-line-height: 30px;
}

html {
  visibility: visible;
  opacity: 1;
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5em;
  text-align: left;
  background-color: #f9f9f9;
  color: #3C4858;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

#__next {
  opacity: 0;
  transition: opacity 0.2s ease-in;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#__next.hydrated {
  opacity: 1;
}

/* Prevent layout shift */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Comfortaa', 'Helvetica', 'Arial', sans-serif;
  font-weight: 300;
  line-height: 1.5em;
  color: inherit;
  margin-top: 20px;
  margin-bottom: 10px;
}

a {
  color: #9c27b0;
  text-decoration: none;
  background-color: transparent;
}

img {
  vertical-align: middle;
  border-style: none;
}
