* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-white: #000000;
  --accent-blue: #4545c4;
  --text-primary: #e9e9e9;
  --text-secondary: #c3c3c3;
  --text-muted: #adadad;
  --border-light: #f0f0f0;
  --background-subtle: #1b1b1b;
  --code-bg: #000000;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--primary-white);
  color: var(--text-primary);
  line-height: 1.7;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Typography System */
.h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 3rem 0 1.5rem;
}
.h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2.5rem 0 1rem;
}
.h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 2rem 0 1rem;
}
.body-large {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
}
.body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.caption {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Header */
.header {
  background: var(--primary-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-blue);
}

/* Breadcrumb */
.breadcrumb {
  background: var(--background-subtle);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--accent-blue);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* Article Header */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.article-category {
  background: var(--accent-blue);
  color: var(--primary-white);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-title {
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.article-excerpt {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  font-weight: 600;
}

.author-details h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.author-details p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content code {
  background: var(--code-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.875rem;
}

.article-content pre {
  background: var(--code-bg);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-blue);
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* Table of Contents */
.toc {
  background: var(--background-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-blue);
}

.toc-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.2s ease;
}

.toc-link:hover {
  color: var(--accent-blue);
}

/* Alert Boxes */
.alert {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-blue);
}

.alert-warning {
  background: #fff9e6;
  border-left: 10px solid #f59e0b;
  padding: 20px;
}

.alert-info {
  background: var(--background-subtle);
  border-left-color: var(--accent-blue);
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Article Footer */
.article-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-light);
}

.tags {
  margin-bottom: 2rem;
}

.tags-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: var(--background-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--accent-blue);
  color: var(--primary-white);
}

/* Share Section */
.share {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.share-title {
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.share-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.share-button:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Related Articles */
.related-articles {
  background: var(--background-subtle);
  padding: 4rem 0;
}

.related-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.related-title {
  text-align: center;
  margin-bottom: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.related-card {
  background: var(--primary-white);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.related-card-meta {
  margin-bottom: 1rem;
}

.related-card-title {
  margin-bottom: 0.5rem;
}

.related-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Newsletter CTA */
.newsletter-cta {
  background: var(--accent-blue);
  color: var(--primary-white);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.newsletter-title {
  color: var(--primary-white);
  margin-bottom: 1rem;
}

.newsletter-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-button {
  background: var(--primary-white);
  color: var(--accent-blue);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-button:hover {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: var(--background-subtle);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-blue);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Security Badge */
.security-badge {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  background: var(--accent-blue);
  color: var(--primary-white);
  padding: 1rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(69, 69, 196, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .nav {
    display: none;
  }

  .breadcrumb-container,
  .article-header,
  .article-content,
  .article-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .h1 {
    font-size: 2.25rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
  }

  .share-buttons {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .security-badge {
    display: none;
  }

  .related-container {
    padding: 0 1rem;
  }
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-light);
  z-index: 99;
}

.reading-progress-bar {
  height: 100%;
  background: var(--accent-blue);
  width: 0%;
  transition: width 0.1s ease;
}

.cover {
  width: 100dvw;
}

.coverImg {
  width: 80vw;
  max-width: 1000px;
  height: 70vh;
}

::selection {
  background: var(--accent-blue);
  color: var(--primary-white);
}