body {
  margin: 0;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
  background: #191c1c;
  color: #c8e7fa;
  min-height: 100vh;
}
header, footer {
  background: #131616;
}
.terminal-bar {
  padding: 0.5em 1em;
  font-size: 1.1em;
  background: #181d20;
  color: #71e2c9;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 12px -4px #000c;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}
.terminal-bar .prompt {
  color: #29eb7f;
  margin-right: 0.5em;
}
.terminal-bar .cmd {
  font-weight: 600;
  color: #71e2c9;
}
nav {
  display: flex;
  gap: 2em;
  margin: 1em 0 0.5em 2em;
}
nav a {
  text-decoration: none;
  color: #71e2c9;
  font-size: 1em;
  transition: color 0.19s;
}
nav a:hover {
  color: #fac761;
}
nav a:visited {
  color: #ffb284;
}
main {
  padding: 2em;
  max-width: 800px;
  margin: 0 auto;
  word-break: break-word;
}
#about {
  margin-bottom: 3em;
}
h1, h2, h3 {
  color: #fac761;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1px;
}
#projects ul {
  list-style-type: none;
  padding: 0;
}
.project-card {
  background: #252c2c;
  color: #c8e7fa;
  margin-bottom: 1.5em;
  padding: 1em 1.5em;
  border-radius: 8px;
  border-left: 5px solid #29eb7f;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 24px -12px #0011;
}
.project-card:hover {
  box-shadow: 0 3px 24px -5px #0fcf82aa;
  transform: translateY(-2px) scale(1.015);
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card a {
  color: #71e2c9;
  text-decoration: underline;
}
.project-card a:visited {
  color: #ffb284;
}
footer {
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: #131616;
  z-index: 100;
}

@media (min-width: 700px) {
  footer {
    position: fixed;
    bottom: 0;
  }
}

main {
  padding-bottom: 4em; /* prevents content overlap with fixed footer on desktop */
}

nav a.active,
nav a[aria-current="page"] {
  border-bottom: 2px solid #fac761;
  color: #fac761;
}

::-webkit-scrollbar {
  background: #232728;
}
::-webkit-scrollbar-thumb {
  background: #71e2c9;
  border-radius: 6px;
}

/* Blog-specific styles */
.loading {
  padding: 2em;
  text-align: center;
  font-style: italic;
}

/* Blog styles */
.blog-post {
  background: rgba(20, 30, 20, 0.8);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.blog-post:hover {
  border-color: #71e2c9;
  background: rgba(20, 30, 20, 0.9);
}

.post-link {
  color: #71e2c9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: #5ac5a8;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  margin: 0 0 1rem 0;
  color: #71e2c9;
  font-size: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

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

.tag {
  background: rgba(113, 226, 201, 0.2);
  color: #71e2c9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.read-more {
  color: #71e2c9;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #5ac5a8;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  background: rgba(113, 226, 201, 0.1);
  border: 1px solid #71e2c9;
  color: #71e2c9;
  padding: 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.share-btn:hover {
  background: rgba(113, 226, 201, 0.2);
  transform: translateY(-1px);
}

/* Individual post page styles */
.post-content h1,
.post-content h2,
.post-content h3 {
  color: #71e2c9;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid #71e2c9;
  padding-bottom: 0.5rem;
}

.post-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-content code {
  background: rgba(113, 226, 201, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.post-content strong {
  color: #71e2c9;
  font-weight: bold;
}

.post-content a {
  color: #71e2c9;
  text-decoration: underline;
}

.post-content a:hover {
  color: #5ac5a8;
}

.post-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 6px;
  margin: 1em 0;
  border: 1px solid #294;
}

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

.post-full-content {
  margin-top: 1em;
}

.post-full-content summary {
  color: #71e2c9;
  cursor: pointer;
  padding: 0.5em 0;
  border-top: 1px solid #294;
  margin-top: 1em;
}

.post-full-content summary:hover {
  color: #fac761;
}

.full-content {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #294;
}

.full-content h1,
.full-content h2,
.full-content h3 {
  color: #71e2c9;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.full-content code {
  background: #181d20;
  border: 1px solid #294;
  border-radius: 3px;
  padding: 2px 4px;
  font-family: inherit;
}

.full-content strong {
  color: #fac761;
}

.full-content em {
  color: #71e2c9;
}

.no-posts {
  text-align: center;
  padding: 3em;
  color: #9bb;
  font-style: italic;
}
