:root {
  --primary-color: #2dd4bf;
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --border-color: #e2e8f0;
  --background: #ffffff;
  --background-secondary: #f7fafc;
  --link-color: #2563eb;
  --link-hover: #1e40af;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1200px;
  --content-width: 800px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--background);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: calc(100vh - 200px);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  scroll-margin-top: 80px;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

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

h2 {
  font-size: 1.875rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 2.5em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.25em;
  color: var(--text-primary);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: var(--link-hover);
}

ul, ol {
  margin: 1.25em 0;
  padding-left: 1.75em;
}

li {
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

code {
  background: var(--background-secondary);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
}

pre {
  background: var(--background-secondary);
  padding: 1.25em;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--border-color);
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--text-secondary);
  font-style: italic;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3em 0;
}

/* Utility classes */
.text-center {
  text-align: center;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  main {
    padding: 24px 16px 60px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
  }

  nav, footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  main {
    max-width: 100%;
    padding: 0;
  }
}
