/* === wduncan.net — vaporwave dark === */

:root {
  --bg: #0d0d1a;
  --bg-surface: #13132b;
  --bg-code: #1a1a3e;
  --text: #e0e0f0;
  --text-muted: #8888aa;
  --cyan: #00e5ff;
  --purple: #b040ff;
  --pink: #ff40ff;
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple));
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 72ch;
  --line-height: 1.7;
}

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

/* === Base === */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
}

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  flex: 1;
  padding: 3rem 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--purple);
}

/* === Header === */
.site-header {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0 0;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-surface);
}

.site-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

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

/* === Footer === */
footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Homepage === */
.intro {
  margin-bottom: 3rem;
}

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

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-list li {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border-radius: 6px;
  border-left: 3px solid var(--purple);
  transition: border-color 0.2s, transform 0.2s;
}

.post-list li:hover {
  border-left-color: var(--cyan);
  transform: translateX(4px);
}

.post-list a {
  display: block;
}

.post-list .post-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.post-list li:hover .post-title {
  color: var(--cyan);
}

.post-list .post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.post-list .post-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* === Post === */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-surface);
}

.post-header h1 {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.post-header time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--bg-code);
  border: 1px solid var(--purple);
  border-radius: 3px;
  color: var(--purple);
}

/* === Post Content === */
.post-content h2 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

.post-content h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--purple);
}

.post-content p {
  margin-bottom: 1.25rem;
}

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

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border-radius: 0 4px 4px 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* === Code === */
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--cyan);
}

.post-content pre {
  background: var(--bg-code);
  border: 1px solid #2a2a5a;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text);
}

/* === Syntax highlighting (Prism-compatible, dark vaporwave) === */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata { color: #6666aa; }

.token.punctuation { color: #8888cc; }

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted { color: #ff79c6; }

.token.boolean,
.token.number { color: var(--purple); }

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted { color: #50fa7b; }

.token.operator,
.token.entity,
.token.url { color: var(--cyan); }

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name { color: #ffd700; }

.token.keyword { color: var(--cyan); }

.token.regex,
.token.important,
.token.variable { color: #ffb86c; }

/* === About page === */
.about-content p {
  margin-bottom: 1.25rem;
}

/* === Responsive === */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .site-header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .post-header h1 {
    font-size: 1.4rem;
  }

  .post-list li {
    padding: 1rem;
  }
}
