body {
  background-color: #fff;
}

.dark body {
  background-color: #1a1a1a;
}

#bookmark-content {
  line-height: 1.7;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

#bookmark-content > h1 {
  text-align: center;
  margin-bottom: 0.5rem !important;
}

#bookmark-content > h1 + p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.dark #bookmark-content > h1 + p {
  color: var(--text-color);
}

#bookmark-content > h2 {
  font-family: "Nanum Gothic Coding", monospace;
  font-weight: 700;
  font-size: 1.4rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

#bookmark-content > h2 .heading-anchor,
#bookmark-content > h3 .heading-anchor,
#bookmark-content > h4 .heading-anchor,
#bookmark-content > h5 .heading-anchor,
#bookmark-content > h6 .heading-anchor {
  margin-right: 0.5rem;
  color: #aaa;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}

#bookmark-content > h2:hover .heading-anchor,
#bookmark-content > h3:hover .heading-anchor,
#bookmark-content > h4:hover .heading-anchor,
#bookmark-content > h5:hover .heading-anchor,
#bookmark-content > h6:hover .heading-anchor {
  opacity: 1;
}

#bookmark-content > h2 .heading-anchor.copied,
#bookmark-content > h3 .heading-anchor.copied,
#bookmark-content > h4 .heading-anchor.copied,
#bookmark-content > h5 .heading-anchor.copied,
#bookmark-content > h6 .heading-anchor.copied {
  color: #28a745;
  opacity: 1;
}

.dark #bookmark-content > h2 {
  color: var(--h3-color);
  border-bottom-color: var(--border-color);
}

#bookmark-content ul {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

#bookmark-content ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

#bookmark-content ul li::before {
  content: "\2192";
  margin-right: 0.5rem;
  color: #007bff;
}

.dark #bookmark-content ul li::before {
  color: var(--link-color);
}

#bookmark-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

#bookmark-content a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.dark #bookmark-content a {
  color: var(--link-color);
}

.dark #bookmark-content a:hover {
  color: var(--link-hover-color);
}

#bookmark-content code {
  background-color: #f1f3f4;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: "Source Code Pro", monospace;
  font-size: 0.9em;
  color: #d63384;
}

.dark #bookmark-content code {
  background-color: #2a2a2a;
  color: #ff6b9d;
}

#bookmark-content strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  #bookmark-content > h2 {
    font-size: 1.2rem !important;
    margin-top: 1.5rem !important;
  }

  #bookmark-content ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }
}
