/* Typography CSS - Tap Macro v1.3.0 */
/* Consistent typography system across all themes */

/* ===== FONT FAMILIES ===== */
:root {
  --font-family-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-family-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --font-family-display: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADING STYLES ===== */
h1,
.h1 {
  font-family: var(--font-family-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

h2,
.h2 {
  font-family: var(--font-family-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

h3,
.h3 {
  font-family: var(--font-family-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

h4,
.h4 {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

h5,
.h5 {
  font-family: var(--font-family-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

h6,
.h6 {
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

/* ===== PARAGRAPH STYLES ===== */
p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
}

p.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ===== LINK STYLES ===== */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== LIST STYLES ===== */
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== CODE STYLES ===== */
code {
  font-family: var(--font-family-mono);
  font-size: 0.875em;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

pre {
  font-family: var(--font-family-mono);
  font-size: 0.875rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

/* ===== BLOCKQUOTE STYLES ===== */
blockquote {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
}

/* ===== EMPHASIS STYLES ===== */
strong,
b {
  font-weight: 600;
  color: var(--text-primary);
}

em,
i {
  font-style: italic;
  color: var(--text-secondary);
}

/* ===== SMALL TEXT ===== */
small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== TEXT UTILITIES ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}

.text-uppercase {
  text-transform: uppercase;
}
.text-lowercase {
  text-transform: lowercase;
}
.text-capitalize {
  text-transform: capitalize;
}

.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}

.leading-tight {
  line-height: 1.25;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.75;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
  h1,
  .h1 {
    font-size: 2rem;
  }
  h2,
  .h2 {
    font-size: 1.75rem;
  }
  h3,
  .h3 {
    font-size: 1.5rem;
  }
  h4,
  .h4 {
    font-size: 1.25rem;
  }
  h5,
  .h5 {
    font-size: 1.125rem;
  }
  h6,
  .h6 {
    font-size: 1rem;
  }

  p.lead {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1,
  .h1 {
    font-size: 1.75rem;
  }
  h2,
  .h2 {
    font-size: 1.5rem;
  }
  h3,
  .h3 {
    font-size: 1.25rem;
  }

  body {
    font-size: 14px;
  }
}
