@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600&family=Inter:wght@400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --bg-color: #f4f4f4;
  --text-color: #333;
  --muted-color: #777;
  --accent-color: #ff4d4d;
  --panel-bg: #e6e6e6;
  --line-color: #d8d8d8;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Fira Code", monospace;
  padding: 2rem;
}

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

a:hover {
  text-decoration: underline;
}

.site-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  background: var(--bg-color);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.blog-header {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.25rem;
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 1rem 0;
}

.blog-header p,
.post-list-item p {
  color: var(--muted-color);
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-list-item {
  display: block;
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  color: inherit;
  cursor: pointer;
  font-weight: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-list-item:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.06);
}

.post-list-item:hover h2 {
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
  text-underline-offset: 0.18em;
}

.post-list-item time,
.blog-header time {
  color: #999;
  font-size: 0.75rem;
  font-weight: 600;
}

.post-list-item h2 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  margin: 0.65rem 0;
}

.post-body {
  max-width: 720px;
  line-height: 1.8;
  font-size: 1rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: "Inter", sans-serif;
  margin-top: 2rem;
  line-height: 1.2;
}

.post-body p,
.post-body li,
.post-body blockquote {
  color: #444;
}

.post-body ul {
  padding-left: 1.4rem;
}

.post-body blockquote {
  border-left: 3px solid var(--accent-color);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--muted-color);
}

.post-body code {
  background: var(--panel-bg);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
}

.empty-state {
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 1.5rem;
}

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

  .site-shell {
    padding: 1.25rem;
  }
}
