/**
 * Atlas Typography
 * Editorial reading defaults and heading hierarchy.
 */

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-secondary);
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

h5 {
  font-size: var(--font-size-md);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

strong,
b {
  font-weight: var(--font-weight-semibold);
}

small {
  font-size: var(--font-size-sm);
}

/* WordPress entry content prose */
.atlas-entry__content {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  max-width: var(--container-prose);
}

.atlas-entry__content > *:first-child {
  margin-top: 0;
}

.atlas-entry__content > *:last-child {
  margin-bottom: 0;
}

.atlas-entry__content h2,
.atlas-entry__content h3,
.atlas-entry__content h4 {
  margin-top: var(--space-6);
}

.atlas-entry__content ul,
.atlas-entry__content ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.atlas-entry__content ul {
  list-style: disc;
}

.atlas-entry__content ol {
  list-style: decimal;
}

.atlas-entry__content li {
  list-style: inherit;
  margin-bottom: var(--space-2);
}

.atlas-entry__content blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-surface);
  color: var(--color-secondary);
  font-style: italic;
}

.atlas-entry__content pre,
.atlas-entry__content code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: var(--font-size-sm);
}

.atlas-entry__content pre {
  overflow-x: auto;
  padding: var(--space-3);
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-md);
}

.atlas-entry__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}
