/*
Theme Name: SecondDen Blog Backend
Theme URI: https://secondden.ca/
Author: Gary
Description: Blog-only backend theme visually aligned with SecondDen, for Marblism automation.
Version: 1.0
Text Domain: secondden-blog-backend
*/

:root {
  --sd-bg: #ffffff;
  --sd-bg-alt: #f5f5f7;
  --sd-primary: #1f2937;
  --sd-accent: #f97316;
  --sd-text: #111827;
  --sd-muted: #6b7280;
  --sd-border: #e5e7eb;
  --sd-radius: 12px;
  --sd-max-width: 1120px;
  --sd-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sd-text);
  background: var(--sd-bg);
  line-height: 1.6;
}

a {
  color: var(--sd-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sd-container {
  width: 100%;
  max-width: var(--sd-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sd-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.site-branding a {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--sd-text);
}

.site-tagline {
  font-size: 0.8rem;
  color: var(--sd-muted);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sd-muted);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--sd-text);
}

/* Hero / blog header */

.sd-hero-blog {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at top left, #e5f0ff 0, #ffffff 45%, #f9fafb 100%);
  border-bottom: 1px solid var(--sd-border);
}

.sd-hero-blog-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--sd-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sd-hero-blog h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0;
}

.sd-hero-blog-lead {
  font-size: 1rem;
  color: var(--sd-muted);
  max-width: 36rem;
}

/* Layout */

.sd-main {
  padding: 2.5rem 0 3rem;
}

.sd-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 2.5rem;
}

/* Blog cards */

.sd-blog-list {
  display: grid;
  gap: 1.6rem;
}

.sd-blog-card {
  border-radius: var(--sd-radius);
  border: 1px solid var(--sd-border);
  padding: 1.4rem 1.5rem;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.sd-blog-card-meta {
  font-size: 0.8rem;
  color: var(--sd-muted);
  margin-bottom: 0.4rem;
}

.sd-blog-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.sd-blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--sd-muted);
}

/* Single post */

.sd-single-header {
  margin-bottom: 1.5rem;
}

.sd-single-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.sd-single-meta {
  font-size: 0.85rem;
  color: var(--sd-muted);
}

.sd-single-content {
  font-size: 1rem;
  color: var(--sd-text);
}

.sd-single-content p {
  margin-bottom: 1rem;
}

.sd-single-content h2,
.sd-single-content h3,
.sd-single-content h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

/* Sidebar */

.sd-sidebar {
  font-size: 0.9rem;
  color: var(--sd-muted);
}

.sd-sidebar-section {
  margin-bottom: 2rem;
}

.sd-sidebar-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sd-text);
  margin-bottom: 0.6rem;
}

/* Pagination */

.sd-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 2.8rem 0 1.8rem;
  margin-top: 3rem;
}

.site-footer a {
  color: #e5e7eb;
}

.site-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */

@media (max-width: 900px) {
  .main-navigation {
    display: none;
  }

  .sd-blog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
