/* ===========================================================
   Skraafoto blog/article shared styles
   Used by single-article pages and category index pages.
   =========================================================== */

/* -------- Article page -------- */
.article-page {
  background: #fff;
}

.article-hero {
  padding: 64px 24px 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.article-hero .article-cat-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 16px;
}

.article-meta {
  font-size: 0.8125rem;
  color: #64748b;
  letter-spacing: 0.03em;
}

.article-featured-image {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-body h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #0f172a;
  margin: 48px 0 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: #0f172a;
  margin: 40px 0 12px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ol,
.article-body ul {
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body li {
  margin-bottom: 12px;
}

.article-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: #1e40af;
}

.article-body strong {
  color: #0f172a;
  font-weight: 600;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: #64748b;
  text-decoration: none;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  width: 100%;
}

.back-to-blog:hover {
  color: #2563eb;
}

/* -------- Category page -------- */
.category-hero {
  padding: 64px 24px 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.category-hero .overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 16px;
  display: inline-block;
}

.category-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 16px;
}

.category-hero p {
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.category-grid-section {
  padding: 32px 24px 80px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.cat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.cat-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card-body {
  padding: 24px;
}

.cat-card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 12px;
  display: inline-block;
}

.cat-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 12px;
}

.cat-card-title a {
  color: inherit;
  text-decoration: none;
}

.cat-card-title a:hover {
  color: #2563eb;
}

.cat-card-excerpt {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.cat-card-meta {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.03em;
}

/* -------- Responsive -------- */
@media (max-width: 600px) {
  .article-hero { padding: 40px 20px 24px; }
  .article-hero h1 { font-size: 1.625rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.375rem; }
  .article-featured-image { padding: 0 16px; margin: 24px auto; }

  .category-hero { padding: 40px 20px 24px; }
  .category-hero h1 { font-size: 1.875rem; }
}
