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

:root {
  --bg: #0a0a0c;
  --bg-alt: #0f0f12;
  --bg-glow: rgba(168, 85, 247, 0.03);
  --ink: #e4e4e8;
  --ink-mid: #a0a0a8;
  --ink-light: #606068;
  --accent: #c084fc;
  --accent-hover: #d8b4fe;
  --accent-soft: rgba(192, 132, 252, 0.15);
  --blush: #f472b6;
  --rule: #1a1a1f;
  --rule-light: #141418;
  --max-width: 680px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Subtle ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(244, 114, 182, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header - soft, intimate */
header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.site-name:hover {
  color: var(--accent);
}

.site-tagline {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-weight: 300;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* Nav - minimal floating */
nav {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-light);
  text-align: center;
}

.breadcrumb a {
  color: var(--ink-light);
  text-decoration: none;
}

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

.breadcrumb-sep {
  margin: 0 0.75rem;
  opacity: 0.4;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

main.article {
  margin-top: 2.5rem;
}

/* Section heading - soft divider */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  background: var(--bg);
  padding: 0 1rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-heading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

/* Article list - intimate spacing */
.article-list {
  list-style: none;
}

.article-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-light);
  text-align: center;
}

.article-list li:first-child {
  padding-top: 0;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.article-list a:hover {
  color: var(--accent);
}

/* Category label - soft pill */
.category-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  background: rgba(244, 114, 182, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Date */
.date {
  font-size: 0.8125rem;
  color: var(--ink-light);
  font-style: italic;
}

/* Article page */
.article-header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.article-header .category-label {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.article-header .article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.article-hero {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2.5rem;
  border-radius: 4px;
  opacity: 0.9;
}

/* Article body - readable, intimate */
.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--ink-mid);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 132, 252, 0.3);
  transition: all 0.3s ease;
}

.article-content a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.article-content em {
  font-style: italic;
  color: var(--ink);
}

.article-content strong {
  font-weight: 600;
  color: var(--ink);
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink-mid);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* Source link */
.article-content p:last-of-type em {
  display: block;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-light);
  text-align: center;
}

/* Related */
.related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.related h3 {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.related ul {
  list-style: none;
}

.related ul li {
  padding: 0.75rem 0;
}

.related ul li a {
  font-size: 1rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related ul li a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--ink-light);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.pagination a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.pagination a:hover {
  color: var(--accent-hover);
}

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-name { font-size: 1.75rem; }

  .article-header h1 { font-size: 1.75rem; }
  .article-list a { font-size: 1.125rem; }

  .nav-inner { gap: 1.25rem; }
  nav a { font-size: 0.6875rem; letter-spacing: 0.1em; }
}
