/* Lexend Font Styling */

/* Base font settings */
:root {
  --font-primary: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Global font assignments */
html, body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  font-weight: var(--font-weight-semibold);
  font-size: 2.25rem;
}

h2 {
  font-weight: var(--font-weight-semibold);
  font-size: 1.75rem;
}

h3 {
  font-weight: var(--font-weight-semibold);
  font-size: 1.5rem;
}

h4 {
  font-weight: var(--font-weight-semibold);
  font-size: 1.25rem;
}

h5 {
  font-weight: var(--font-weight-medium);
  font-size: 1.125rem;
}

h6 {
  font-weight: var(--font-weight-medium);
  font-size: 1rem;
}

/* Text elements */
p, span, a, div, li, input, button, textarea, label {
  font-family: var(--font-primary);
}

/* Form elements */
input, textarea, select, button {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
}

/* Special text treatments */
strong, b {
  font-weight: var(--font-weight-semibold);
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
}

/* Code and pre elements */
code, pre {
  font-family: monospace; /* Keep monospace for code */
}

/* Blog post specific optimizations */
.ck-content {
  font-family: var(--font-primary);
  line-height: 1.8;
  letter-spacing: -0.01em;
}

.ck-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.ck-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: #333;
}

.ck-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  color: #333;
}

.ck-content h4, .ck-content h5, .ck-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  color: #333;
}

.ck-content ul, .ck-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.ck-content li {
  margin-bottom: 0.5rem;
}

.ck-content blockquote {
  font-family: var(--font-primary);
  font-style: italic;
  border-left: 4px solid #ffcc00;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #555;
}

/* Optimize font rendering */
.ck-content {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
} 