/**
 * Headings
 * -------------------------------------------------------------------------- */

.plume-content h1,
.plume-content h2,
.plume-content h3,
.plume-content h4,
.plume-content h5,
.plume-content h6 {
  position: relative;
  font-weight: 600;
  outline: none;
}

.plume-content h1 {
  font-size: 28px;
  line-height: 40px;
  letter-spacing: -0.02em;
}

.plume-content h2 {
  padding-top: 24px;
  margin: 48px 0 16px;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--vp-c-divider);
}

.plume-content h2:first-of-type {
  border-top: none;
}

.plume-content h3 {
  margin: 32px 0 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.plume-content .header-anchor {
  float: left;
  padding-right: 0.23em;
  margin-left: -0.87em;
  font-weight: 500;
  user-select: none;
  opacity: 0;
  transition:
    color 0.25s,
    opacity 0.25s;
}

.plume-content h1:hover .header-anchor,
.plume-content h1 .header-anchor:focus,
.plume-content h2:hover .header-anchor,
.plume-content h2 .header-anchor:focus,
.plume-content h3:hover .header-anchor,
.plume-content h3 .header-anchor:focus,
.plume-content h4:hover .header-anchor,
.plume-content h4 .header-anchor:focus,
.plume-content h5:hover .header-anchor,
.plume-content h5 .header-anchor:focus,
.plume-content h6:hover .header-anchor,
.plume-content h6 .header-anchor:focus {
  opacity: 1;
}

@media (min-width: 768px) {
  .plume-content h1 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.02em;
  }
}

.plume-content img {
  display: inline-block;
}

.plume-content img + img {
  margin-left: 0.5rem;
}

.plume-content a img + span {
  margin-left: 0.2rem;
}

/**
 * Paragraph and inline elements
 * -------------------------------------------------------------------------- */

.plume-content p,
.plume-content summary {
  margin: 16px 0;
}

.plume-content p {
  line-height: 28px;
}

.plume-content blockquote {
  padding-left: 16px;
  margin: 16px 0;
  border-left: 2px solid var(--vp-c-divider);
  transition: border-color 0.5s;
}

.plume-content blockquote > p {
  margin: 0;
  font-size: 16px;
  color: var(--vp-c-text-2);
  transition: color 0.5s;
}

.plume-content a {
  font-weight: 500;
  color: var(--vp-c-brand-1);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition:
    color 0.25s,
    opacity 0.25s,
    text-underline-offset 0.25s;
}

.plume-content a:hover {
  color: var(--vp-c-brand-2);
  text-underline-offset: 5px;
}

.plume-content strong {
  font-weight: 600;
}

/**
 * Lists
 * -------------------------------------------------------------------------- */

.plume-content ul,
.plume-content ol {
  padding-left: 1.25rem;
  margin: 16px 0;
}

.plume-content ul {
  list-style: disc;
}

.plume-content ol {
  list-style: decimal;
}

.plume-content li + li {
  margin-top: 8px;
}

.plume-content li > ol,
.plume-content li > ul {
  margin: 8px 0 0;
}

/**
 * Table
 * -------------------------------------------------------------------------- */

.plume-content table {
  display: block;
  margin: 20px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.plume-content tr {
  background-color: var(--vp-c-bg);
  border-top: 1px solid var(--vp-c-divider);
  transition: background-color 0.5s;
}

.plume-content tr:nth-child(2n) {
  background-color: var(--vp-c-bg-soft);
}

.plume-content th,
.plume-content td {
  padding: 8px 16px;
  border: 1px solid var(--vp-c-divider);
}

.plume-content th {
  font-size: 14px;
  font-weight: 600;
  color: var(--vp-c-text-2);
  text-align: left;
  background-color: var(--vp-c-bg-soft);
}

.plume-content td {
  font-size: 14px;
}

/**
 * Decorational elements
 * -------------------------------------------------------------------------- */

.plume-content hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--vp-c-divider);
}

/**
 * Code
 * -------------------------------------------------------------------------- */

/* inline code */
.plume-content :not(pre, h1, h2, h3, h4, h5, h6) > code {
  font-size: var(--vp-code-font-size);
  color: var(--vp-code-color);
}

.plume-content :not(pre) > code {
  padding: 3px 6px;
  background-color: var(--vp-code-bg);
  border-radius: 4px;
  transition:
    color 0.25s,
    background-color 0.5s;
}

.plume-content h1 > code,
.plume-content h2 > code,
.plume-content h3 > code {
  font-size: 0.9em;
}

.plume-content a > code {
  color: var(--vp-code-link-color);
}

.plume-content a:hover > code {
  color: var(--vp-code-link-hover-color);
}
