/* Medium-inspired typography and layout */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter:wght@400;500;600&display=swap');

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: rgba(0, 0, 0, 0.84);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  line-height: 1.58;
  letter-spacing: -0.003em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 57px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.site-logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: #1a8917;
}

.article-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: rgba(0, 0, 0, 0.9);
}

.article-subtitle {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.375rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.54);
  margin: 0 0 24px;
  letter-spacing: -0.003em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.54);
}

.author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a8917 0%, #0d5c0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.author-info {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.84);
  margin: 0 0 2px;
}

.author-bio {
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.54);
  margin: 0;
}

.read-time {
  font-family: 'Inter', sans-serif;
}

.article-body h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  color: rgba(0, 0, 0, 0.9);
}

.article-body p {
  margin: 0 0 1.58em;
  font-size: 1.125rem;
}

.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body ul {
  margin: 0 0 1.58em;
  padding-left: 1.25em;
  font-size: 1.125rem;
}

.article-body li {
  margin-bottom: 0.75em;
  padding-left: 0.25em;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.54);
}

.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.44);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.article-index {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-index li {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-index li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.article-index a {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.84);
  text-decoration: none;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.article-index a:hover {
  color: #1a8917;
}

.index-meta {
  display: block;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.54);
  line-height: 1.5;
}

@media (max-width: 728px) {
  .article-wrapper {
    padding-top: 32px;
  }

  .article-body p {
    font-size: 1.0625rem;
  }
}
