/* ═══════════════════════════════════════════════════════════════
   THE COMPLIANCE JOURNAL — style.css
   Editorial magazine aesthetic. Playfair Display + DM Sans.
   Dark ink on white. Accent: soft blue #5869DA.
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --ink:        #0d0d0d;
  --ink-mid:    #3a3a3a;
  --ink-soft:   #6b6b6b;
  --ink-muted:  #a0a0a0;
  --paper:      #ffffff;
  --paper-warm: #faf9f7;
  --paper-mid:  #f2f0ed;
  --accent:     #5869DA;
  --accent-dk:  #4455c7;
  --accent-lt:  #eceffe;
  --cat-ai:     #7B2FFF;
  --cat-seo:    #00A86B;
  --cat-web:    #FF5500;
  --border:     #e8e6e2;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', 'Courier New', monospace;
  --max-w:      1200px;
  --col-gap:    2rem;
  --section-gap:4rem;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-body); color: var(--ink); background: var(--paper); line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Utility ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--border);
  color: var(--ink-mid);
  font-weight: 500;
  font-size: .875rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline:disabled { opacity: .4; pointer-events: none; }


/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ink);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: var(--radius);
}
.site-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-list > li > a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: .4rem .7rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-list > li > a:hover { color: var(--ink); background: var(--paper-mid); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .4rem 1rem !important;
}
.nav-cta:hover { background: var(--accent-dk) !important; }

/* Dropdowns */
.nav-has-dropdown { position: relative; }
.nav-chevron { transition: transform .2s; flex-shrink: 0; }
.nav-has-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  display: none;
  z-index: 200;
}
.nav-has-dropdown.is-open .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block;
  font-size: .875rem;
  font-weight: 400;
  color: var(--ink-mid);
  padding: .55rem .75rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav-dropdown li a:hover { background: var(--paper-mid); color: var(--ink); }

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════════
   PAGE BANNER (non-homepage, non-post pages)
══════════════════════════════════════════════ */
.page-banner {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.page-banner-title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}


/* ══════════════════════════════════════════════
   POST HERO
══════════════════════════════════════════════ */
.post-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
.post-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 2.5rem;
  color: #fff;
}
.post-cat-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: .3rem .75rem;
  border-radius: 2px;
  margin-bottom: .75rem;
}
.post-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: .75rem;
}
.post-hero-meta { font-size: .875rem; opacity: .8; }


/* ══════════════════════════════════════════════
   HERO BAND (homepage)
══════════════════════════════════════════════ */
.hero-band {
  background: #F1F2F3 url('../images/hero.webp') center / cover no-repeat;
  color: #fff;
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-band-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.hero-label {
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A9B4F5;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-accent { color: #8C9EFF; font-style: italic; }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero-email {
  flex: 1;
  max-width: 280px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  transition: border-color .2s;
}
.hero-email::placeholder { color: var(--ink-muted); }
.hero-email:focus { outline: none; border-color: var(--accent); }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero-tags a {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--ink-muted);
  transition: color .15s;
}
.hero-tags a:hover { color: var(--accent); }

/* Hero card stack illustration */
.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.hero-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.hero-card:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }
.hc-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.hero-card p {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.4;
}


/* ══════════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: .875rem;
  border-bottom: 2px solid var(--ink);
}
.section-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.section-tags {
  display: flex;
  gap: .75rem;
}
.section-tags a {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--ink-muted);
  transition: color .15s;
}
.section-tags a:hover { color: var(--accent); }


/* ══════════════════════════════════════════════
   FEATURED POSTS
══════════════════════════════════════════════ */
.section-featured { padding: var(--section-gap) 0; background: var(--paper); }
.featured-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: var(--col-gap);
  align-items: start;
}
.featured-main { grid-column: 1; padding-right: 1rem; }
.featured-main .featured-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 380px;
  background: var(--paper-mid);
}
.featured-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform .4s ease;
  border-radius: var(--radius-lg);
}
.featured-main .featured-img-link:hover img { transform: scale(1.03); }
.featured-main-body { padding-top: 1rem; }
.featured-main-body h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: .5rem;
}
.featured-main-body h3 a:hover { color: var(--accent); }
.featured-secondary {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feat-sec-card { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: start; }
.feat-sec-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
  min-height: 100px;
  background: var(--paper-mid);
}
.feat-sec-card img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  transition: transform .3s;
}
.feat-sec-img-link:hover img { transform: scale(1.05); }
.feat-sec-card h3 {
  font-family: var(--ff-display);
  font-size: .975rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: .35rem;
}
.feat-sec-card h3 a:hover { color: var(--accent); }

/* Category tag on image */
.feat-cat-tag {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 2px;
  color: #fff;
  background: var(--accent);
  pointer-events: none;
}


/* ══════════════════════════════════════════════
   CONTENT + SIDEBAR LAYOUT
══════════════════════════════════════════════ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  align-items: start;
}
.main-content { min-width: 0; }


/* ══════════════════════════════════════════════
   CATEGORY SECTIONS
══════════════════════════════════════════════ */
.category-section { margin-bottom: 3rem; }
.cat-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--ink);
}
.cat-section-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.cat-view-all {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .04em;
}
.cat-view-all:hover { text-decoration: underline; }
.post-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Post card */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  background: var(--paper-mid);
}
.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .3s;
}
.post-card-img-link:hover img { transform: scale(1.04); }
.post-card-body { padding: 1rem; }
.post-card-cat {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.post-card h3 {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .5rem;
}
.post-card h3 a:hover { color: var(--accent); }
.post-card p {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--ink-muted);
  font-family: var(--ff-mono);
}
.post-meta-line {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--ink-muted);
  font-family: var(--ff-mono);
}


/* ══════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════ */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.widget-about { text-align: center; }
.widget-avatar img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .75rem;
}
.widget-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.widget-about p {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.widget-social {
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.widget-social a { color: var(--ink-muted); transition: color .15s; }
.widget-social a:hover { color: var(--accent); }
.widget-heading {
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .875rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.popular-list { display: flex; flex-direction: column; gap: .75rem; }
.popular-item a {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.popular-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.popular-item span { display: flex; flex-direction: column; gap: .2rem; }
.popular-item strong {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color .15s;
}
.popular-item a:hover strong { color: var(--accent); }
.popular-item time {
  font-size: .7rem;
  color: var(--ink-muted);
  font-family: var(--ff-mono);
}
.cat-list { display: flex; flex-direction: column; gap: .25rem; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  padding: .4rem .5rem;
  border-radius: var(--radius);
  color: var(--ink-mid);
  transition: background .15s, color .15s;
}
.cat-list a:hover { background: var(--paper-mid); color: var(--accent); }
.cat-list span {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--ink-muted);
  background: var(--paper-mid);
  padding: .15rem .4rem;
  border-radius: 2px;
}
.sidebar-nl-form { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.sidebar-nl-form input[type="email"] {
  width: 100%;
  padding: .6rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  transition: border-color .2s;
}
.sidebar-nl-form input[type="email"]:focus { outline: none; border-color: var(--accent); }
.sidebar-nl-form button {
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .6rem;
  border-radius: var(--radius);
  transition: background .2s;
}
.sidebar-nl-form button:hover { background: var(--accent); }
.widget-newsletter p {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}


/* ══════════════════════════════════════════════
   LATEST POSTS
══════════════════════════════════════════════ */
.section-latest {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-gap) 0;
}
.latest-list { display: flex; flex-direction: column; }
.latest-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.latest-item:last-child { border-bottom: none; }
.latest-img-link { display: block; overflow: hidden; border-radius: var(--radius); }
.latest-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  transition: transform .3s;
}
.latest-img-link:hover img { transform: scale(1.05); }
.latest-body .post-card-cat { display: block; margin-bottom: .25rem; }
.latest-body h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .4rem;
}
.latest-body h3 a:hover { color: var(--accent); }
.verified-icon { color: var(--accent); font-style: normal; }
.latest-view-all {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.latest-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}
.page-nums { display: flex; gap: .35rem; }
.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: .8rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--ink-mid);
  border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.page-num:hover, .page-num.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}


/* ══════════════════════════════════════════════
   CATEGORY FOOTER BAND
══════════════════════════════════════════════ */
.section-cat-footer { padding: var(--section-gap) 0; background: var(--paper); }
.cat-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.cat-footer-heading {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .875rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ink);
}
.cat-footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.cat-footer-col li a {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--ink-mid);
  transition: color .15s;
}
.cat-footer-col li a:hover { color: var(--accent); }
.cat-footer-col li img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════
   NEWSLETTER BAND
══════════════════════════════════════════════ */
.newsletter-band {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.newsletter-band::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .06;
  pointer-events: none;
}
.newsletter-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.nl-label {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.nl-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .75rem;
}
.nl-sub { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.7; }
.nl-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  margin-bottom: .75rem;
}
.nl-fields input {
  padding: .75rem 1rem;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .875rem;
  transition: border-color .2s;
}
.nl-fields input::placeholder { color: rgba(255,255,255,.4); }
.nl-fields input:focus { outline: none; border-color: var(--accent); }
.nl-fields .btn-primary { border-radius: var(--radius-lg); }
.nl-consent { font-size: .75rem; color: rgba(255,255,255,.4); }


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer { background: #111; color: rgba(255,255,255,.75); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 1.5rem;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: .875rem;
}
.footer-brand .logo-mark { background: var(--accent); color: #fff; }
.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 220px;
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a { color: rgba(255,255,255,.5); transition: color .15s; }
.footer-social a:hover { color: var(--accent); }
.footer-heading {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}
.footer-bottom p { font-size: .775rem; color: rgba(255,255,255,.35); text-align: center; }


/* ══════════════════════════════════════════════
   BLOG LISTING PAGE
══════════════════════════════════════════════ */
.blog-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 2.5rem 0 var(--section-gap);
  align-items: start;
}
.blog-post-list { display: flex; flex-direction: column; gap: 2rem; }
.blog-list-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.blog-list-item:last-child { border-bottom: none; }
.blog-list-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.blog-list-body h2 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: .4rem 0 .5rem;
}
.blog-list-body h2 a:hover { color: var(--accent); }
.blog-list-body p {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: .75rem;
}
.read-more {
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
}
.read-more:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════
   ARTICLE / POST PAGE
══════════════════════════════════════════════ */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 2.5rem 0 var(--section-gap);
  align-items: start;
}
.article-body {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-mid);
}
.article-body h2 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 .875rem;
  line-height: 1.3;
}
.article-body h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 .75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--paper-warm);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body code {
  font-family: var(--ff-mono);
  font-size: .85em;
  background: var(--paper-mid);
  padding: .15em .4em;
  border-radius: 3px;
  color: var(--ink);
}
.article-body pre {
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-share span { font-size: .8rem; font-weight: 600; color: var(--ink-muted); }


/* ══════════════════════════════════════════════
   ABOUT / CONTACT PAGES
══════════════════════════════════════════════ */
.page-content-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem var(--section-gap); }
.page-content-wrap h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.page-content-wrap p { font-size: 1rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.25rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  transition: border-color .2s;
  background: var(--paper);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 140px; }


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-band-inner { grid-template-columns: 1fr; }
  .hero-illustration { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { grid-column: 1; padding-right: 0; }
  .featured-secondary { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
  .feat-sec-card { flex: 1; min-width: 240px; grid-template-columns: 1fr; }
  .feat-sec-card img { width: 100%; height: 140px; }
  .feat-sec-img-link { min-height: 140px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hero-band { background-image: url('../images/hero-mb.webp'); }
}

@media (max-width: 768px) {
  :root { --section-gap: 2.5rem; }

  /* Nav mobile */
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: .7rem 0; color: var(--ink); }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent);
    border-radius: 0;
    padding: 0 0 0 1rem;
    margin: .25rem 0;
  }
  .nav-burger { display: flex; }

  .content-sidebar-wrap,
  .blog-content-wrap,
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-card-grid { grid-template-columns: 1fr; }
  .newsletter-band-inner { grid-template-columns: 1fr; }
  .nl-fields { grid-template-columns: 1fr; }
  .cat-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-email { max-width: 100%; }
  .blog-list-item { grid-template-columns: 1fr; }
  .blog-list-item img { height: 200px; width: 100%; }
  .latest-item { grid-template-columns: 100px 1fr; }
  .latest-item img { width: 100px; height: 75px; }
}

@media (max-width: 480px) {
  .featured-secondary { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ── Blog filter bar ──────────────────────────────── */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.blog-filter-tag {
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .4rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--ink-mid);
  transition: background .15s, border-color .15s, color .15s;
}
.blog-filter-tag:hover,
.blog-filter-tag.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
