@import "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap";

:root {
  --font-sans: "Playfair Display", serif;
  --font-mono: "JetBrains Mono", monospace;

  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 4% 32%;
  --border: 240 5.9% 90%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
}

.blog-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-header {
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-brand {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 0.2rem;
}

.back-link:hover { border-bottom-color: hsl(var(--foreground)); }

.blog-hero {
  margin-bottom: 2rem;
}

.blog-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.blog-subtitle {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid hsl(var(--border));
}

.post-item {
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem 0;
}

.post-title {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 400;
}

.post-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-tags {
  margin: 0 0 0.5rem;
}

.post-tag {
  display: inline-block;
  border: 1px solid hsl(var(--border));
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.post-excerpt {
  margin: 0;
  max-width: 68ch;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .blog-wrap { padding-left: 3rem; padding-right: 3rem; }
}

.post-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.post-link:hover {
  border-bottom-color: hsl(var(--border));
}

.article-wrap {
  max-width: 52rem;
}

.article-header {
  margin-bottom: 0.75rem;
  border-bottom: 0;
  padding-bottom: 0;
}

.article-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  font-weight: 400;
}

.article-subtitle {
  margin: 0 0 1.15rem;
  font-family: var(--font-mono);
  color: hsl(var(--muted-foreground));
  max-width: 50ch;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-left: 2px solid hsl(var(--border));
  padding-left: 0.8rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.15rem;
  margin-bottom: 1.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 25%;
  border: 1px solid hsl(var(--border));
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.author-name {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.author-role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.article-body p {
  margin: 0 0 1rem;
  line-height: 1.7;
  font-size: 1.08rem;
}

.article-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.article-body ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-sources {
  margin-top: 2rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
}

.article-sources h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-sources a {
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border));
}

.article-sources a:hover {
  border-bottom-color: hsl(var(--foreground));
}
