/* Variables */
:root {
  --accent: #6ca0bc;
  --text: #d8d8d8;
  --text-light: #888;
  --bg: #1e1e1e;
  --border: #333;
}

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

/* Typography */
html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #121212;
  padding: 2rem 1rem;
}

h1, h2, h3, h4 {
  margin: 1.5em 0 0.5em 0;
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre {
  background: var(--bg);
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
}

pre code {
  background: none;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1em;
  color: var(--text-light);
  margin: 1em 0;
  font-style: italic;
}

/* Layout */
main {
  max-width: 700px;
  margin: 0 auto;
}

.site-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.site-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 0.95em;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9em;
}

/* Posts */
.posts-list {
  list-style: none;
}

.post-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.post-item h2 {
  margin: 0 0 0.5rem 0;
}

.post-item h2 a {
  color: var(--text);
}

.post-item h2 a:hover {
  color: var(--accent);
}

.post-date {
  color: var(--text-light);
  font-size: 0.95em;
}

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

.tag {
  display: inline-block;
  background: var(--bg);
  color: var(--accent);
  padding: 0.25em 0.6em;
  border-radius: 3px;
  font-size: 0.85em;
  text-decoration: none;
  transition: background 0.2s;
}

.tag:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* Post detail */
.post-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.post-header h1 {
  margin: 0 0 0.5rem 0;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.95em;
}

.post-content {
  line-height: 1.8;
}

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

.post-content li {
  margin-bottom: 0.25em;
}

.post-content h2 {
  margin-top: 1.2em;
}

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

/* Intro blurb */
.intro {
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-size: 1.05em;
}

.intro p {
  margin-bottom: 0em;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  color: var(--text-light);
  transition: color 0.2s;
}

.linkedin-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Tag filter section */
.tag-filter {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.tag-filter-label {
  display: block;
  color: var(--text-light);
  font-size: 0.9em;
  margin-bottom: 0.5rem;
}

.tag-filter-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-filter-btn {
  background: #1e1e1e;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4em 0.8em;
  border-radius: 3px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }

  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }

  .nav-links {
    gap: 1rem;
  }
}
