/* ==================== Typography System ==================== */

/* Base */
body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Default Dark Theme Colors */
html[data-theme="dark"] body,
body {
  color: #fafafa;
  background-color: #0a0a0a;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: #fafafa;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.875rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

/* Paragraphs */
p {
  margin: 0 0 1rem 0;
  color: #d4d4d4;
  line-height: 1.75;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  p {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  p {
    font-size: 1.0625rem;
  }
}

p:last-child {
  margin-bottom: 0;
}

/* Text Utilities */
strong,
b {
  font-weight: 600;
  color: #fafafa;
}

em,
i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
}

/* Code */
code {
  font-family: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.125rem 0.375rem;
  background-color: #262626;
  border-radius: 0.25rem;
  color: #818cf8;
}

pre {
  background-color: #171717;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1rem 0;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.875rem;
}

/* Links */
a {
  color: #818cf8;
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: #a5b4fc;
}

/* Lists */
ul,
ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  color: #d4d4d4;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}
