/* Typography System */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: 1.1;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

/* Paragraph styles */
p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.text-large {
  font-size: var(--text-xl);
  line-height: 1.6;
}

.text-small {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

/* Text colors */
.text-primary {
  color: var(--color-text-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-gradient {
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Font weights */
.font-light {
  font-weight: var(--font-light);
}

.font-normal {
  font-weight: var(--font-normal);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

/* Text alignment */
.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

/* Special typography */
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capitalize {
  text-transform: capitalize;
}

/* Link styles */
a {
  color: var(--color-accent-primary);
  transition: color var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--color-accent-secondary);
}

a.link-underline {
  text-decoration: none;
  position: relative;
}

a.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

a.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Selection */
::selection {
  background-color: var(--color-accent-primary);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: var(--color-accent-primary);
  color: var(--color-text-primary);
}
