/* ============================================================
   MWWL Theme - Midwest Wood Lab
   Craftsman aesthetic with warm wood tones
   ============================================================ */

/* ---- Custom Properties ------------------------------------ */
:root {
  --color-bg:          #FAF7F2;
  --color-surface:     #FFFFFF;
  --color-header-bg:   #1A0B04;
  --color-footer-bg:   #120804;
  --color-accent:      #C8860A;
  --color-accent-dark: #A36E08;
  --color-accent-light:#E8A820;
  --color-wood:        #6B3A2A;
  --color-text:        #2C1A0E;
  --color-text-muted:  #7A5C42;
  --color-border:      #E0CCBA;
  --color-dark-section:#1E1009;
  --color-mid-section: #2C1810;

  --font-heading: Palatino Linotype, Palatino, 'Book Antiqua', Georgia, serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Courier New', monospace;

  --max-width:    1200px;
  --gutter:       clamp(1rem, 4vw, 2rem);
  --radius:       6px;
  --radius-lg:    12px;
  --shadow:       0 2px 12px rgba(44,26,14,.12);
  --shadow-lg:    0 8px 32px rgba(44,26,14,.18);
  --transition:   0.2s ease;
  --header-h:     72px;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

/* ---- Layout Utilities ------------------------------------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-alt {
  background: var(--color-dark-section);
}

.section-mid {
  background: var(--color-mid-section);
}

.section-warm {
  background: #F0E8DC;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-family: var(--font-heading);
  margin-bottom: .5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  opacity: .75;
  max-width: 560px;
  margin-inline: auto;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---- Header / Nav ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
  border-bottom: 2px solid var(--color-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.site-logo-text {
  display: none;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

.main-nav a {
  color: rgba(255,255,255,.85);
  padding: .4rem .8rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent-light);
  background: rgba(255,255,255,.07);
}

/* Social Icons in Header */
.header-social {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: .75rem;
  padding-left: .75rem;
  border-left: 1px solid rgba(255,255,255,.15);
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background var(--transition);
}
.header-social a:hover {
  background: var(--color-accent);
}
.header-social svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-header-bg);
  z-index: 99;
  padding: 2rem var(--gutter);
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-nav a:hover { color: var(--color-accent-light); }

.mobile-social {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-top: .5rem;
}
.mobile-social a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  border-bottom: none !important;
}
.mobile-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Hero Section ----------------------------------------- */
.hero {
  background: linear-gradient(160deg, #1A0B04 0%, #2C1810 45%, #1E1009 100%);
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

/* Subtle wood-grain texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(200,134,10,.03) 60px,
      rgba(200,134,10,.03) 62px
    );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: clamp(100px, 18vw, 180px);
  width: auto;
  margin-inline: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.5));
  border-radius: 8px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: .75rem;
  line-height: 1.2;
}

.hero-tagline span {
  color: var(--color-accent-light);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Decorative divider */
.wood-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-accent-light), var(--color-accent), transparent);
  opacity: .6;
}

/* ---- YouTube / Videos Section ----------------------------- */
.videos-section {
  background: var(--color-dark-section);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.videos-section .section-title { color: #fff; }
.videos-section .section-subtitle { color: rgba(255,255,255,.6); }

/* Tabs for Videos vs Shorts */
.video-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.video-tab {
  padding: .5rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.video-tab.active,
.video-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  background: rgba(200,134,10,.1);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-grid.shorts-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}
.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.video-card:hover .video-thumbnail img {
  transform: scale(1.04);
}

/* 16:9 for regular videos */
.video-thumb-16-9 {
  aspect-ratio: 16/9;
}

/* 9:16 for shorts */
.video-thumb-9-16 {
  aspect-ratio: 9/16;
  max-height: 320px;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  transition: background var(--transition);
}
.video-card:hover .play-overlay {
  background: rgba(0,0,0,.35);
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(200,134,10,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.video-card:hover .play-btn {
  transform: scale(1.1);
}
.play-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 3px; /* optical centering of play triangle */
}

.type-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.type-badge.shorts {
  background: rgba(200,134,10,.85);
}

.video-info {
  padding: 1rem;
}
.video-title {
  color: rgba(255,255,255,.9);
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: .25rem;
}
.video-meta {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

.videos-empty {
  text-align: center;
  color: rgba(255,255,255,.4);
  padding: 3rem;
  grid-column: 1/-1;
}

.videos-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---- Blog Preview Section --------------------------------- */
.blog-section {
  background: var(--color-bg);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-border);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-no-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2C1810, #4A2820);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-no-image .post-icon {
  font-size: 2.5rem;
  opacity: .4;
}

.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: .6rem;
}
.post-meta time { display: flex; align-items: center; gap: .25rem; }

.post-category {
  background: #F0E8DC;
  color: var(--color-wood);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.post-card-title {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  margin-bottom: .5rem;
  line-height: 1.35;
}
.post-card-title a {
  color: var(--color-text);
}
.post-card-title a:hover {
  color: var(--color-accent);
}

.post-card-excerpt {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.post-read-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: auto;
}
.post-read-more:hover { color: var(--color-accent-dark); }

.posts-footer {
  text-align: center;
}

/* No posts state */
.no-posts {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  grid-column: 1/-1;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

/* ---- Connect / Social Section ----------------------------- */
.connect-section {
  background: var(--color-mid-section);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.connect-section .section-title { color: #fff; }
.connect-section .section-subtitle { color: rgba(255,255,255,.6); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: all var(--transition);
  color: rgba(255,255,255,.8);
}
.social-card:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

.social-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-card-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.social-card-label {
  font-weight: 600;
  font-size: .95rem;
}
.social-card-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* Platform-specific icon bg colors */
.social-icon-yt    { background: #FF0000; }
.social-icon-ig    { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-icon-fb    { background: #1877F2; }
.social-icon-shop  { background: var(--color-accent); }

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: var(--color-footer-bg);
  padding-block: 2.5rem;
  border-top: 2px solid var(--color-accent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1 1 220px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  border-radius: 4px;
  opacity: .9;
}

.footer-desc {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 0 1 150px;
}

.footer-nav-title {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

.footer-nav a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-accent-light); }

.footer-social {
  display: flex;
  gap: .75rem;
  flex: 0 0 auto;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background var(--transition);
}
.footer-social-link:hover { background: var(--color-accent); }
.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,.8);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

.footer-made {
  color: rgba(255,255,255,.25);
  font-size: .8rem;
}

/* ---- Blog List Page --------------------------------------- */
.page-header {
  background: linear-gradient(160deg, #1A0B04, #2C1810);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 2px solid var(--color-accent);
}

.page-header-inner {
  text-align: center;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: .5rem;
}

.page-desc {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}

.blog-list-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.blog-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.blog-list-image {
  overflow: hidden;
  background: #E8D5BE;
}
.blog-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.blog-list-card:hover .blog-list-image img {
  transform: scale(1.04);
}

.blog-list-no-image {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #2C1810, #4A2820);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: .3;
}

.blog-list-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.blog-list-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  margin-bottom: .5rem;
}
.blog-list-title a { color: var(--color-text); }
.blog-list-title a:hover { color: var(--color-accent); }

.blog-list-excerpt {
  color: var(--color-text-muted);
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* ---- Single Post Page ------------------------------------- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr min(760px, 100%) 1fr;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  gap: 0;
}
.post-layout > * { grid-column: 2; }

.post-article {}

.post-header {
  margin-bottom: 2.5rem;
}

.post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: .875rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-author {
  font-weight: 600;
  color: var(--color-text);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  grid-column: 1/-1;
  max-width: min(900px, 100vw - 2*var(--gutter));
  margin-inline: auto;
  width: 100%;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post content typography */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}
.post-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.post-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 .5rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.post-content li { margin-bottom: .4rem; }
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: #F0E8DC;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-wood);
}
.post-content code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: #F0E8DC;
  padding: .15em .35em;
  border-radius: 3px;
}
.post-content pre {
  background: #1E0F05;
  color: #E8D5BE;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img {
  border-radius: var(--radius);
  margin: 1rem 0;
}
.post-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.post-content hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 2rem 0;
}

/* Post nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.post-nav-link {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.post-nav-link:hover {
  border-color: var(--color-accent);
  background: #F0E8DC;
}
.post-nav-direction {
  font-size: .75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  display: block;
  margin-bottom: .25rem;
}
.post-nav-title {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1rem;
}
.post-nav-next { text-align: right; }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.post-tag {
  background: #F0E8DC;
  color: var(--color-wood);
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.post-tag:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ---- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.pagination .active,
.pagination span.current {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ---- 404 Page --------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem var(--gutter);
}
.error-code {
  font-size: 6rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-title {
  font-size: 1.75rem;
  margin-bottom: .75rem;
}
.error-msg {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-social { display: none; }
  .nav-toggle { display: flex; }

  .blog-list-card {
    grid-template-columns: 1fr;
  }
  .blog-list-image {
    height: 200px;
  }
  .blog-list-no-image {
    height: 200px;
  }

  .post-layout {
    grid-template-columns: 0 1fr 0;
    padding-inline: var(--gutter);
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .social-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Utility classes -------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.hidden { display: none; }
