/**
 * NetBoost Rocket - Typography System
 * Google Fonts: Montserrat (headings) & Inter (body)
 */

/* ==========================================
   BASE TYPOGRAPHY
   ========================================== */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
  color: var(--color-text-dark);
  -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-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-accent-black);
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

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

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

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

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

h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-semibold);
}

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

/* ==========================================
   PARAGRAPHS & TEXT
   ========================================== */

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-body);
}

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

.text-large {
  font-size: 1.25rem;
  line-height: 1.7;
}

.text-small {
  font-size: var(--font-size-small);
  line-height: 1.5;
}

/* ==========================================
   TEXT UTILITIES
   ========================================== */

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

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

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

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

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

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

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

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

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

/* ==========================================
   LINKS
   ========================================== */

a {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-orange);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* ==========================================
   SECTION TITLES & SUBTITLES
   ========================================== */

.section__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-black);
  margin-bottom: var(--spacing-md);
}

.section__subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

/* ==========================================
   BADGE & LABEL TYPOGRAPHY
   ========================================== */

.badge {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   LISTS
   ========================================== */

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

li {
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-body);
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-bottom: var(--spacing-xs);
}

/* ==========================================
   BLOCKQUOTES
   ========================================== */

blockquote {
  margin: var(--spacing-xl) 0;
  padding-left: var(--spacing-lg);
  border-left: 4px solid var(--color-primary-orange);
  font-style: italic;
  color: var(--color-text-light);
}

blockquote p {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ==========================================
   STRONG & EMPHASIS
   ========================================== */

strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

/* ==========================================
   CODE & PREFORMATTED TEXT
   ========================================== */

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background-color: var(--color-light-gray);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-accent-black);
}

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

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

/* ==========================================
   RESPONSIVE TYPOGRAPHY
   ========================================== */

@media (max-width: 767px) {
  .section__title {
    font-size: var(--font-size-h2);
  }

  .section__subtitle {
    font-size: 1.125rem;
  }

  blockquote p {
    font-size: 1.125rem;
  }
}
