/* Base Typography and Styles */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
}

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

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

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

a {
  color: var(--color-secondary);
  transition: color var(--transition-base);
}

a:hover,
a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Focus Styles for Accessibility */
*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
  z-index: 100;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: var(--spacing-sm);
  opacity: 1;
  pointer-events: auto;
}
