/* Base Styles - Global Typography and Elements */

body {
  font-family: var(--font-hindi);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
}

/* Font switching for English language */
body.english {
  font-family: var(--font-english);
}

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

h1 {
  font-size: var(--font-size-xlarge);
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-sm);
}

/* Paragraphs */
p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

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

/* Strong and emphasis */
strong {
  font-weight: var(--font-weight-bold);
}

em {
  font-style: italic;
}

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
}

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

/* Section spacing */
section {
  padding: var(--spacing-xl) 0;
}

/* Desktop typography adjustments */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-xxlarge);
  }

  h2 {
    font-size: var(--font-size-xlarge);
  }

  h3 {
    font-size: var(--font-size-large);
  }

  section {
    padding: var(--spacing-xxl) 0;
  }
}
