/* Obsidian-inspired theme: near-black background, purple accents */
:root {
  --bg: #0f0f14;
  --bg-elevated: #17171f;
  --bg-card: #1b1b26;
  --border: #2a2a3a;
  --text: #dcddde;
  --text-muted: #9a9ab0;
  --accent: #a78bfa;
  --accent-strong: #7c5cff;
  --accent-dim: rgba(124, 92, 255, 0.12);
}

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

html { scroll-behavior: smooth; }

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

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav .logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav .links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.95rem;
}

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

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6rem;
}

.hero p { color: var(--text-muted); font-size: 1.1rem; }

/* Sections */
section { padding: 2.5rem 0; }

h2.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h2.section-title::before {
  content: "◆ ";
  color: var(--accent-strong);
  font-size: 0.9em;
}

.placeholder {
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

/* Dashboard grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.15);
}

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.7rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }

.card p { color: var(--text-muted); font-size: 0.92rem; }

.card .ext {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

/* Article / post */
article.post { padding: 3rem 0 4rem; }

article.post h1 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

article.post .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

article.post h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
  color: var(--text);
}

article.post p { margin-bottom: 1rem; }

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

article.post ul { margin: 0 0 1rem 1.4rem; }
article.post li { margin-bottom: 0.4rem; }

.callout {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent-strong);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.callout strong { color: var(--accent); }

code, .wikilink {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.wikilink { color: var(--accent); }

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

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

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}
