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

body {
  background-color: #111;
  color: #ddd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  text-align: center;
  margin: 2rem 0 1rem;
}

.site-header .brand {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.site-header .brand:hover {
  color: #00cc66;
}

.tagline {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-style: italic;
  color: #bbb;
  text-align: center;
}

.posts-heading {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 2.25rem 0 1rem;
  position: relative;
}

.posts-heading::after {
  content: none;
}

.featured-post {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 820px;
  text-align: left;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}

.featured-post .post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.6rem;
}

.featured-post .post-title {
  margin: 0.3rem 0 0.8rem;
}

.featured-post .post-title a {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hacker-title a {
  color: #00cc66;
}

.hacker-title a:hover {
  color: #33ff99;
}

.featured-post .post-excerpt {
  margin: 1rem 0;
  font-size: 1rem;
  color: #bbb;
}

.featured-post .read-more a {
  color: #00cc66;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post .read-more a:hover {
  color: #82d3ab;
  text-decoration: underline;
}

.posts-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.post-row {
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-row .post-row-title a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.post-row .post-row-title a:hover {
  color: #00cc66;
}

.post-row .row-right {
  color: #888;
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: #666;
}

.post {
  background: none;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
}

.post-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.post-content {
  color: #fff;
  line-height: 1.7;
  font-size: 1rem;
}

.post-content p {
  margin: 1rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 1rem;
  font-weight: bold;
  color: #fff;
}

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

.post-content li {
  margin: 0.5rem 0;
}

.post-content pre,
.post-content code {
  display: block;
  margin: 1.25rem 0;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 6px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.95rem;
}

.post-content a {
  color: #00cc66;
  text-decoration: none;
}

.post-content a:hover {
  color: #33ff99;
  text-decoration: underline;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 1rem auto;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: #ddd;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
}

.social-link .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

@media (max-width: 420px) {
  .social-label {
    display: none;
  }
}

.social-link.youtube {
  color: #ff0000;
  background: rgba(255,0,0,0.04);
}

.social-link.x {
  color: #00cc66;
  background: rgba(0,204,102,0.04);
}

.social-link:focus,
.social-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  outline: none;
  border-color: rgba(255,255,255,0.06);
}

.social-link.youtube:hover { color: #ff4444; }
.social-link.x:hover       { color: #33ff99; }

.social-label {
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.social-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(0,204,102,0.12);
  border-color: rgba(0,204,102,0.18);
}

.post-content img {
  display: block;
  margin: 1.25rem auto;
  width: 100%;
  max-width: 680px;
  max-height: 420px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #222;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.social-wrap {
  text-align: center;
  margin-top: 2rem;
}

.social-intro {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.social-links {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.social-link:hover {
  color: #FF0000;
}

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
