/* Great Knits — Clean outdoor gear blog */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAFAF8;
  --card: #fff;
  --text: #2d2d2d;
  --muted: #777;
  --accent: #2E6B4F;
  --accent-hover: #245A40;
  --border: #e8e5df;
  --tag-bg: #EDF5F0;
  --tag-text: #2E6B4F;
  --radius: 8px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

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

/* Header */
.site-header {
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.logo {
  display: inline-block;
  text-decoration: none;
}
.logo img {
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* Home intro */
.home-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.home-intro h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.home-intro p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Post cards (list) */
.post-card {
  margin-bottom: 2rem;
}
.post-card-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.post-card-inner:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.post-card-image {
  overflow: hidden;
  max-height: 220px;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.3s;
  padding: 0.75rem;
  background: #fff;
}
.post-card-image:hover img { transform: scale(1.03); }
.post-card-content {
  padding: 1.25rem 1.5rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.post-card-content h2 a {
  color: var(--text);
  text-decoration: none;
}
.post-card-content h2 a:hover { color: var(--accent); }
.post-card-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.read-more:hover { color: var(--accent-hover); }

/* Tags */
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tag-text);
  background: var(--tag-bg);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tag:hover {
  background: var(--accent);
  color: #fff;
}
.post-meta time {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Single post */
.post-single { padding-bottom: 3rem; }
.post-header {
  margin-bottom: 1.5rem;
}
.post-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}
.post-hero {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post body */
.post-body {
  font-size: 0.95rem;
  line-height: 1.8;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover { color: var(--accent-hover); }
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--tag-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #555;
}
.post-body ul, .post-body ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}
.post-body li { margin-bottom: 0.35rem; }

/* Product callout (inline in posts) */
.product-callout {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.product-callout img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  margin: 0;
  background: #fff;
  padding: 0.25rem;
}
.product-callout-info { flex: 1; }
.product-callout-info .product-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.product-callout-info .product-brand {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.product-callout-info p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.btn-shop {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 5px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.btn-shop:hover { background: var(--accent-hover); color: #fff !important; }

/* Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.post-nav-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.post-nav-link:hover { color: var(--accent-hover); }
.post-nav-link.next { margin-left: auto; }

/* Pagination */
.pagination {
  text-align: center;
  padding: 2rem 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.pagination li { display: inline-block; }
.pagination a, .pagination .active a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
}
.pagination a:hover { background: var(--tag-bg); }
.pagination .active a {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 680px) {
  .post-card-inner {
    grid-template-columns: 1fr;
  }
  .post-card-image { max-height: 220px; }
  .post-card-content { padding: 1rem 1.25rem; }
  .home-intro h1 { font-size: 1.4rem; }
  .post-header h1 { font-size: 1.5rem; }
  .product-callout { flex-direction: column; text-align: center; }
  .product-callout img { width: 160px; height: 160px; }
}
