/* ==========================================================================
   QUANTUM SPECTARE — MINIMALIST STYLESHEET
   Aesthetic: Quiet Obsidian, Pure Typography, Ethereal Wave Light
   ========================================================================== */

:root {
  --bg: #030305;
  --bg-subtle: #08080d;
  --text-main: #f3f4f6;
  --text-muted: #888896;
  --text-faint: #444450;
  
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.2);

  --accent: #00f2fe;
  --accent-violet: #a855f7;

  --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-subtle: #f0f0f4;
  --text-main: #111116;
  --text-muted: #666675;
  --text-faint: #aaaaaf;
  
  --line: rgba(0, 0, 0, 0.08);
  --line-hover: rgba(0, 0, 0, 0.2);

  --accent: #0284c7;
  --accent-violet: #7c3aed;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .site-header {
  background: rgba(250, 250, 250, 0.85);
}

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

.brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.2rem;
  transition: opacity 0.2s ease;
}

.theme-toggle-btn:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  max-width: 780px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 2.5rem;
}

/* Artistic Interactive Canvas */
.art-viewport {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 5rem;
  height: 420px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #030305;
}

.art-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.art-hint {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Content Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

/* Philosophy Statement */
.statement-section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 5rem;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.statement-item h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.statement-item p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Notes List (Minimalist Editorial Index) */
.section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.notes-item {
  border-bottom: 1px solid var(--line);
}

.notes-item:first-child {
  border-top: 1px solid var(--line);
}

.notes-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  text-decoration: none;
  color: var(--text-main);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.notes-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  flex-grow: 1;
}

.notes-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Article Template */
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 1.75rem;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
}

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

.article-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.math-block {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 6px;
  margin: 1.75rem 0;
  text-align: center;
  overflow-x: auto;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 3rem 2rem;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .art-viewport { height: 320px; }
  .notes-link { flex-direction: column; gap: 0.35rem; }
  .footer-container { flex-direction: column; align-items: flex-start; }
}
