:root {
  --bg: #fafafa;
  --border: #e6e6e6;
  --text: #111;
  --muted: #666;
  --accent: #2563eb;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.layout {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2rem;
}

.about h2 {
  font-size: 1.2rem;
}

.about p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Index */
.index {
  margin-top: 2rem;
}

.index h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.index ul {
  list-style: none;
}

.index li {
  margin-bottom: 0.5rem;
}

.index a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.muted {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Main */
.top h1 {
  font-size: 2.2rem;
}

.top p {
  color: var(--muted);
  margin-top: 0.4rem;
}

.blogs {
  margin-top: 2rem;
}

.blog-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-card h2 {
  font-size: 1.4rem;
}

.blog-card p {
  margin-top: 0.7rem;
  line-height: 1.6;
}

.blog-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Post page */
.post {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.post .meta {
  color: var(--muted);
  margin: 0.5rem 0 2rem;
}

.post article p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

/* Skeleton */
.skeleton div {
  background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
  background-size: 300% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 100% }
  100% { background-position: -100% }
}

.sk-title { height: 22px; width: 60%; margin-bottom: 10px; }
.sk-meta { height: 12px; width: 30%; margin-bottom: 14px; }
.sk-line { height: 14px; width: 100%; margin-bottom: 8px; }
.sk-line.short { width: 70%; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}
:root {
  --bg: #fafafa;
  --text: #111;
  --muted: #6b6b6b;
  --accent: #2563eb;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HERO */
.blog-hero {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.blog-hero h1 span {
  color: var(--muted);
  font-weight: 500;
}

.blog-hero p {
  max-width: 520px;
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Layout */
.layout {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.7rem;
}

.sidebar a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar a:hover {
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Blog list */
.blogs {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-item {
  max-width: 640px;
}

.blog-item h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.blog-item p {
  color: var(--muted);
  line-height: 1.6;
}

.blog-item a {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

/* Skeleton (soft, invisible) */
.skeleton div {
  background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
  background-size: 300% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 100% }
  100% { background-position: -100% }
}

.sk-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
}

.sk-line {
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.sk-line.short {
  width: 70%;
}

/* Reveal animation (barely noticeable) */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sidebar {
    position: static;
  }

  .blog-hero {
    margin-top: 3rem;
  }
}
