:root {
  --color-primary: #e84393;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-border: #dfe6e9;
  --max-width: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* Post list */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card a {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card a:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.post-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.post-date {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Article */
.post-article {
  font-family: var(--font-serif);
}

.post-article h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.post-article h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-article p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Images with captions */
.post-article img {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
}

.post-article figure {
  text-align: center;
  margin: 2.5rem 0;
}

.post-article figcaption {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.8rem;
  font-style: italic;
  line-height: 1.4;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .post-article h1 { font-size: 1.8rem; }
  .post-article img { width: 100%; }
  main { padding: 2rem 1.25rem; }
}
.post-thumbnail {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
}
.post-thumbnail {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1rem;
}
