*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background: #ffffff;
}

a {
  color: #2563eb;
}

a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.topbar {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.brand {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #334155;
}

.hero {
  padding: 5rem 0;
  background: #0f172a;
  color: #f8fafc;
  text-align: center;
}

.hero__title {
  margin: 0 auto 1rem;
  max-width: 720px;
  font-size: 2rem;
  line-height: 1.25;
}

.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 640px;
  color: #cbd5e1;
}

.btn {
  display: inline-block;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}

.btn--primary {
  background: #ffffff;
  color: #0f172a;
  padding: 0.75rem 1.25rem;
}

.btn--secondary {
  border-color: #cbd5e1;
  color: #334155;
  padding: 0.5rem 0.85rem;
}

.btn--small {
  font-size: 0.9rem;
}

.section {
  padding: 3.5rem 0;
}

.section__title {
  margin: 0 0 1rem;
}

.blog-listing__intro,
.blog-listing__empty {
  color: #475569;
}

.blog-listing__posts {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-listing__card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.blog-listing__date,
.blog-post__date {
  margin: 0 0 0.4rem;
  color: #64748b;
  font-size: 0.95rem;
}

.blog-listing__title,
.blog-post__title {
  margin: 0 0 0.6rem;
}

.blog-listing__title a {
  text-decoration: none;
  color: #0f172a;
}

.blog-post__description,
.blog-listing__excerpt {
  color: #475569;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-post__content h2,
.blog-post__content h3 {
  margin-top: 1.75rem;
}

.blog-post__content p,
.blog-post__content ul,
.prose p,
.prose ul {
  margin-bottom: 1rem;
}

.blog-post__footer {
  margin-top: 2rem;
}

.footer {
  border-top: 1px solid #e2e8f0;
  padding: 2rem 0;
  color: #475569;
}

.footer__copyright,
.footer__links {
  margin: 0.25rem 0;
}

.footer__links {
  display: flex;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .topbar__inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
  }

  .hero__title {
    font-size: 1.6rem;
  }
}
