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

/* ===== DESIGN TOKENS ===== */
:root {
  --purple:       #7C3AED;
  --purple-dark:  #5B21B6;
  --purple-light: #EDE9FE;
  --purple-mid:   #A78BFA;
  --text:         #111827;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-subtle:    #fafafa;
  --border:       #e5e7eb;
  --radius:       8px;
}

/* ===== BASE ===== */
html { font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--purple-dark); }

.site-nav { display: flex; gap: 2rem; }

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--purple); text-decoration: none; }

/* ===== LAYOUT ===== */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3.5rem;
  flex: 1;
  width: 100%;
}

/* ===== CONTENT AREA ===== */

/* Section page headers */
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--purple-light);
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--text);
}

/* Post/entry listing */
.entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.entry:first-child { padding-top: 0; }
.post-list .entry:last-child { border-bottom: none; }

.entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.entry-title a { color: var(--text); }
.entry-title a:hover { color: var(--purple); text-decoration: none; }

.entry-info,
.entry-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.entry-body {
  font-size: 0.925rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.entry-footer a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--purple);
  border-bottom: 1px solid var(--purple-mid);
  padding-bottom: 1px;
}
.entry-footer a:hover { text-decoration: none; background: var(--purple-light); }

/* Pagination */
.pagination {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.pagination a {
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--purple);
  font-weight: 500;
  transition: all 0.15s ease;
}
.pagination a:hover { border-color: var(--purple); background: var(--purple-light); text-decoration: none; }

/* ===== SINGLE ARTICLE / PAGE ===== */
.article-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blogpost {
  font-size: 1rem;
  line-height: 1.8;
}
.blogpost p { margin-bottom: 1.1em; }
.blogpost h2 { font-size: 1.3rem; margin: 2em 0 0.6em; }
.blogpost h3 { font-size: 1.1rem; margin: 1.5em 0 0.5em; }
.blogpost h4 { font-size: 1rem; margin: 1.25em 0 0.4em; }
.blogpost ul, .blogpost ol { margin: 0.75em 0 0.75em 1.5em; }
.blogpost li { margin-bottom: 0.35em; }
.blogpost blockquote {
  border-left: 3px solid var(--purple);
  padding: 0.75rem 1.25rem;
  margin: 1.25em 0;
  background: var(--purple-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.blogpost img {
  border-radius: var(--radius);
  display: block;
  margin: 1.5em auto;
}
.blogpost a {
  color: var(--purple);
  border-bottom: 1px solid var(--purple-mid);
}
.blogpost a:hover { background: var(--purple-light); text-decoration: none; }
.blogpost code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}
.blogpost pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25em 0;
}
.blogpost pre code {
  background: none;
  border: none;
  color: inherit;
  font-size: 0.875rem;
}
.blogpost hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

#disqus_thread { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ===== ABOUT / STATIC PAGE ===== */
.about-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.about-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple-light);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--purple-mid);
}

.about-content ul { margin: 0.75em 0 0.75em 1.5em; }
.about-content li { margin-bottom: 0.5em; line-height: 1.6; }
.about-content a { color: var(--purple); }

/* ===== SIDEBAR ===== */
.site-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.widget {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.widget-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.quote-text {
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
}

.quote-speaker {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
}

.archives-links { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.archives-links a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--purple-light);
  color: var(--purple-dark);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.archives-links a:hover { background: var(--purple); color: white; }

.artists-links { display: flex; flex-direction: column; gap: 0.3rem; }
.artists-links a {
  font-size: 0.85rem;
  color: var(--purple);
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}
.artists-links a:hover { border-bottom-color: var(--purple-mid); text-decoration: none; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .site-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .site-header__inner { padding: 0 1rem; }
  .site-nav { gap: 1.2rem; }

  .article-title { font-size: 1.4rem; }

  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-content ul { text-align: left; }
}

@media (max-width: 480px) {
  .site-nav a { font-size: 0.8rem; }
  .site-nav { gap: 0.9rem; }
}
