/*
Theme Name: Majestic Zanzibar
Theme URI: https://majestic.tz/blog
Author: Zanziholics Digital Agency
Description: Premium editorial blog theme for Majestic Zanzibar — luxury real estate developer in Nungwi, Zanzibar. Architectural Digest editorial luxury meets Financial Times structured authority.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: majestic-zanzibar
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:         #1C2840;
  --navy-deep:    #151e30;
  --navy-mid:     #2C3E5C;
  --gold:         #BFA863;
  --gold-hover:   #A89254;
  --gold-pale:    rgba(191,168,99,0.12);
  --ivory:        #F6F3EF;
  --ivory-dark:   #EDE9E3;
  --border:       #E5DDD5;
  --text-body:    #2E3A4A;
  --text-muted:   #5C6B8A;
  --white:        #FFFFFF;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  /* Layout */
  --content-width:  720px;
  --sidebar-width:  300px;
  --outer-max:      1160px;
  --gap:            48px;
  --radius:         6px;
  --radius-sm:      3px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(28,40,64,0.06);
  --shadow-md:  0 4px 20px rgba(28,40,64,0.10);
  --shadow-lg:  0 12px 40px rgba(28,40,64,0.14);

  /* Transitions */
  --ease:       0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text-body);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(191,168,99,0.15);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--outer-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Back link — subtle */
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--ease);
}

.header-back:hover { color: var(--gold); }

.header-back svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
  transition: transform var(--ease);
}

.header-back:hover svg { transform: translateX(-3px); }

/* Logo — center */
.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-decoration: none;
}

.site-logo__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
}

.site-logo__sub {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Blog label — right */
.header-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: transform var(--ease), opacity 0.2s;
}

/* ============================================================
   BLOG INDEX HERO BAND
   ============================================================ */
.blog-hero {
  background: var(--navy);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,168,99,0.35), transparent);
}

.blog-hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.blog-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.blog-hero__title em { font-style: italic; color: var(--gold); }

.blog-hero__desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Gold rule */
.gold-rule {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem auto;
}

/* ============================================================
   BLOG INDEX — CARD GRID
   ============================================================ */
.blog-index {
  max-width: var(--outer-max);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Post Card */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--navy-mid);
}

.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__category {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
  transition: color var(--ease);
}

.post-card:hover .post-card__title { color: var(--gold-hover); }

.post-card__excerpt {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.post-card__date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-card__read {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--ease), color var(--ease);
}

.post-card:hover .post-card__read { gap: 0.6rem; color: var(--gold-hover); }

.post-card__read svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* Blog pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3.5rem;
}

.blog-pagination a,
.blog-pagination span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-body);
  transition: all var(--ease);
}

.blog-pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.blog-pagination .current { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 700; }

/* ============================================================
   SINGLE POST — HERO (Featured image with title overlay)
   ============================================================ */
.post-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

/* Featured image fills hero */
.post-hero__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark gradient overlay — bottom-heavy for text legibility */
.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,40,64,0.15) 0%,
    rgba(28,40,64,0.30) 40%,
    rgba(21,30,48,0.85) 75%,
    rgba(21,30,48,0.97) 100%
  );
}

/* Title content sits at bottom of hero */
.post-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--outer-max);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.post-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.post-hero__breadcrumb a,
.post-hero__breadcrumb span {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--ease);
}

.post-hero__breadcrumb a:hover { color: var(--gold); }
.post-hero__breadcrumb .sep { color: rgba(255,255,255,0.2); font-size: 0.55rem; }
.post-hero__breadcrumb .current { color: rgba(255,255,255,0.6); }

.post-hero__category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.post-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  max-width: 780px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-hero__meta-item {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.post-hero__meta-item strong { color: rgba(255,255,255,0.85); font-weight: 500; }

.meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

/* No featured image fallback */
.post-hero--no-image {
  min-height: auto;
  background: var(--navy);
  padding: 3.5rem 0 3rem;
}

.post-hero--no-image .post-hero__overlay { display: none; }

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.single-wrap {
  max-width: var(--outer-max);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: var(--content-width) var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}

/* ============================================================
   POST CONTENT
   ============================================================ */
.post-content-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.post-content {
  padding: 2.75rem 2.75rem 2rem;
}

/* Typography inside post */
.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
  margin: 2.75rem 0 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin: 2rem 0 0.6rem;
}

.post-content h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-hover);
  margin: 1.5rem 0 0.5rem;
}

.post-content p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.4rem;
}

.post-content p:last-child { margin-bottom: 0; }

.post-content a {
  color: var(--gold-hover);
  border-bottom: 1px solid rgba(168,146,84,0.3);
  transition: color var(--ease), border-color var(--ease);
}

.post-content a:hover { color: var(--navy); border-color: var(--navy); }

.post-content strong { color: var(--navy); font-weight: 600; }
.post-content em { font-style: italic; }

/* Lists */
.post-content ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-content ul li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.post-content ol {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  counter-reset: ol-counter;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-content ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.post-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 22px; height: 22px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blockquote */
.post-content blockquote {
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(191,168,99,0.05), rgba(28,40,64,0.03));
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content blockquote p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin: 0;
}

/* Images in content */
.post-content img {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
}

.post-content th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
}

.post-content td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  color: var(--text-body);
}

.post-content tr:last-child td { border-bottom: none; }
.post-content tr:hover td { background: rgba(191,168,99,0.04); }

/* HR */
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Post footer bar */
.post-footer {
  padding: 1.25rem 2.75rem;
  border-top: 1px solid var(--border);
  background: rgba(246,243,239,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tag {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  transition: all var(--ease);
}

.post-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.post-nav__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--ease);
}

.post-nav__item:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }

.post-nav__label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.post-nav__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.35;
}

.post-nav__item--next { text-align: right; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.post-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Shared widget shell */
.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.widget__head {
  background: var(--navy);
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.widget__head::before {
  content: '';
  display: block;
  width: 3px; height: 15px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.widget__title {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.widget__body { padding: 1.25rem; }

/* Search widget */
.search-form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-form input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-body);
  background: var(--ivory);
  outline: none;
}

.search-form input::placeholder { color: var(--text-muted); }

.search-form button {
  background: var(--navy);
  border: none;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  transition: background var(--ease);
}

.search-form button:hover { background: var(--navy-mid); }

.search-form button svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* Investment CTA widget */
.cta-widget {
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.cta-widget::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(191,168,99,0.07);
  pointer-events: none;
}

.cta-widget__image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  opacity: 0.75;
}

.cta-widget__body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.cta-widget__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.cta-widget__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.cta-widget__text {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(191,168,99,0.3);
  color: var(--navy);
}

.btn-gold svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* Recent posts widget */
.recent-post {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--ease);
}

.recent-post:first-child { padding-top: 0; }
.recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post:hover { opacity: 0.75; }

.recent-post__thumb {
  width: 60px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--navy-mid);
  flex-shrink: 0;
}

.recent-post__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.recent-post__title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post__date {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Stats widget */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat-cell {
  background: var(--ivory);
  padding: 1rem;
  text-align: center;
}

.stat-cell__number {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-cell__label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(191,168,99,0.12);
}

.footer-grid {
  max-width: var(--outer-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-brand__tag {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.2rem 0 1rem;
}

.footer-brand__desc {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col__title {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col a {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.42);
  transition: color var(--ease);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--outer-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--ease);
}

.footer-links a:hover { color: var(--gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --content-width: 1fr;
    --sidebar-width: 280px;
  }

  .posts-grid { grid-template-columns: repeat(2, 1fr); }

  .single-wrap {
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .site-logo {
    position: static;
    transform: none;
  }

  .header-label { display: none; }

  .header-inner {
    padding: 0 1.25rem;
    justify-content: space-between;
  }

  /* Blog hero */
  .blog-hero { padding: 3rem 1.25rem 2.5rem; }

  /* Card grid — single column */
  .posts-grid { grid-template-columns: 1fr; }

  /* Post hero */
  .post-hero { min-height: 400px; }

  .post-hero__title {
    font-size: 1.6rem;
  }

  .post-hero__content { padding: 0 1.25rem 2.25rem; }

  /* Single post — stack layout */
  .single-wrap {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 3.5rem;
    gap: 2rem;
  }

  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .cta-widget { grid-column: 1 / -1; }

  .post-content { padding: 1.75rem; }
  .post-footer { padding: 1rem 1.75rem; }

  /* Post nav */
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Blog index */
  .blog-index { padding: 2.5rem 1.25rem 3.5rem; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .post-sidebar { grid-template-columns: 1fr; }
  .post-hero { min-height: 340px; }
  .post-hero__meta { gap: 0.6rem; }
  .meta-sep { display: none; }
}
