/**
 * Typography
 */

/* Base Typography */
body {
  font-family: var(--psc-font-primary);
  font-size: var(--psc-font-size-base);
  line-height: var(--psc-line-height);
  color: var(--psc-text);
  font-weight: 400;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--psc-font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--psc-dark);
  margin-top: 0;
  margin-bottom: var(--psc-spacing-md);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

/* Paragraphs */
p {
  margin-top: 0;
  margin-bottom: var(--psc-spacing-md);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Links */
a {
  color: var(--psc-accent);
  text-decoration: underline;
  transition: var(--psc-transition);
}

a:hover {
  color: var(--psc-dark);
}

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

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

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

/* Blockquotes */
blockquote {
  margin: var(--psc-spacing-lg) 0;
  padding: var(--psc-spacing-md) var(--psc-spacing-lg);
  border-left: 4px solid var(--psc-accent);
  background-color: var(--psc-gray-light);
  font-style: italic;
}

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

/* Code */
code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background-color: var(--psc-gray-light);
  padding: 0.125em 0.375em;
  border-radius: var(--psc-radius-sm);
}

pre {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background-color: var(--psc-gray-light);
  padding: var(--psc-spacing-md);
  border-radius: var(--psc-radius);
  overflow-x: auto;
  margin: var(--psc-spacing-md) 0;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--psc-accent); }
.text-dark { color: var(--psc-dark); }
.text-muted { color: var(--psc-gray-dark); }
.text-white { color: var(--psc-white); }

.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.125rem; }

.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  h4 { font-size: 1.125rem; }
}