h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--main-text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin-top: 1rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

h5 {
  font-size: 1.125rem;
  margin-top: 1rem;
}

h6 {
  font-size: 1rem;
  margin-top: 1rem;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  line-height: 1.75;
}

ul li, ol li {
  margin-bottom: 0.5rem;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-primary);
  color: var(--main-text-secondary);
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

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

code {
  background: var(--card-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  color: var(--accent-primary);
}

pre {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

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

table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

table th {
  background-color: var(--card-bg);
  font-weight: 600;
}

table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  width: auto;
  display: block;
  margin: 1.5rem auto;
}

video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 0.5rem;
}

video.horizontal-video {
  width: 100%;
}

@media (min-width: 769px) {
  video {
    max-width: 40%;
  }

  video.horizontal-video {
    max-width: 100%;
  }
}
