:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  color: #1f2933;
  background: #f9fafb;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: #00dc52;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: #000000;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 150;
}

.header-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: #00dc52;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover,
.header-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 220, 82, 0.25);
}

main {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

a {
  color: #0a7c46;
}

a:hover,
a:focus {
  color: #065c32;
}

.blog-index-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease;
  position: relative;
  cursor: pointer;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-4px);
}

.post-card:focus {
  outline: 3px solid #0a7c46;
  outline-offset: 3px;
}

.post-card .post-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-image {
  line-height: 0;
  background: #f1f5f9;
  position: relative;
  z-index: 2;
}

.post-content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.post-content h2 {
  margin-bottom: 0.5rem;
}

.post-subtitle {
  margin-bottom: 0.75rem;
  color: #52606d;
  font-size: 1rem;
}

.post-meta {
  font-size: 0.95rem;
  color: #7b8794;
  margin-bottom: 1rem;
}

.post-excerpt {
  margin-bottom: 1.25rem;
}

.read-more {
  font-weight: 600;
  text-decoration: none;
}

.blog-post header {
  margin-bottom: 2rem;
}

.blog-post time {
  display: block;
  font-size: 0.95rem;
  color: #7b8794;
  margin-bottom: 0.5rem;
}

.blog-post figure {
  margin: 2rem 0;
}

.blog-post figure img {
  width: 100%;
  border-radius: 1rem;
  display: block;
}

.post-body h2 {
  margin-top: 2rem;
}

.post-body ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
  list-style: disc;
}

.footnotes li {
  scroll-margin-top: 5.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-weight: 600;
  text-decoration: none;
}

.back-link svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  main {
    padding: 4rem 2rem 5rem;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
