/*
Theme Name: OpexInsider
Theme URI: https://opexinsider.com
Description: Premium editorial theme for OpexInsider — authority content across health, finance, self-improvement, and more.
Version: 2.0.0
Author: OpexInsider
Author URI: https://opexinsider.com
Text Domain: opexinsider
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --ink:          #141210;
  --ink-soft:     #2c2825;
  --ink-muted:    #6b6460;
  --ink-faint:    #a09b96;
  --paper:        #faf8f5;
  --paper-warm:   #f3efe9;
  --rule:         #ddd9d3;
  --rule-dark:    #c4bfb8;
  --amber:        #b8621a;
  --amber-light:  #d4752a;
  --amber-glow:   rgba(184, 98, 26, 0.08);
  --white:        #ffffff;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Lora', 'Georgia', serif;
  --font-ui:      'Instrument Sans', 'Helvetica Neue', sans-serif;

  --space-xs:   0.375rem;
  --space-sm:   0.625rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  --wide:    1180px;
  --content:  700px;
  --radius:   4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(20,18,16,0.06);
  --shadow-md: 0 4px 16px rgba(20,18,16,0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-light); }

/* ═══════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════ */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.topbar-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-date {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
}

.topbar-links a {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  transition: color var(--transition);
}

.topbar-links a:hover { color: var(--amber); }

/* ═══════════════════════════════════════════
   MASTHEAD / HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.masthead {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  font-style: normal;
}

.site-logo em,
.site-logo span {
  font-style: italic;
  font-weight: 300;
  color: var(--amber);
}

.masthead-rule {
  width: 100%;
  height: 2px;
  background: var(--ink);
  margin: 0.7rem 0 0;
}

.main-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  padding: 0.6rem 1.1rem;
  display: block;
  transition: color var(--transition);
  position: relative;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  position: absolute;
  right: 1.5rem;
  top: 1.1rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 460px;
}

.hero-content {
  padding: 3rem 3rem 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-eyebrow .cat-label {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: none;
  padding: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

.hero h1 a {
  color: inherit;
  text-decoration: none;
}

.hero h1 a:hover { color: var(--ink); }

.hero-excerpt {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
}

.hero-image img,
.hero-image .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-image:hover img,
.hero-image:hover .wp-post-image { transform: scale(1.03); }

/* Hide old hero sidebar — replaced by secondary row */
.hero-sidebar { display: none; }

/* ═══════════════════════════════════════════
   SECONDARY HERO ROW
   ═══════════════════════════════════════════ */
.hero-secondary {
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}

.hero-secondary-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-sec-card {
  padding: 1.1rem 1.5rem;
  border-right: 1px solid var(--rule);
  transition: background var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-sec-card:last-child { border-right: none; }
.hero-sec-card:hover { background: var(--paper); color: inherit; }

.hero-sec-card .cat-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--amber);
  background: none;
  padding: 0;
  display: block;
  margin-bottom: 0.35rem;
}

.hero-sec-card h3 {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.hero-sec-card .hero-sec-meta {
  font-family: var(--font-ui);
  font-size: 0.66rem;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

/* ═══════════════════════════════════════════
   SECTION LAYOUTS
   ═══════════════════════════════════════════ */
.page-wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0 0;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.section-header::before {
  content: '';
  width: 3px;
  height: 1em;
  background: var(--amber);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink);
}

.section-divider {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-link {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
  transition: color var(--transition);
  flex-shrink: 0;
}

.section-link:hover { color: var(--amber); }

/* ═══════════════════════════════════════════
   POST CARDS — flat editorial style
   ═══════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.post-card {
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  transform: none;
  transition: background var(--transition);
}

.post-card:hover {
  box-shadow: none;
  transform: none;
  background: var(--white);
}

.post-card:last-child { border-right: none; padding-right: 0; }
.post-card:not(:first-child) { padding-left: 1.5rem; }

.post-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--paper-warm);
  border: none;
  border-radius: 0;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  filter: saturate(0.95);
  border-radius: 0;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.cat-label {
  font-family: var(--font-ui);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  background: none;
  padding: 0;
  display: block;
}

.post-card .cat-label { margin: 0; }

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  border-radius: 0;
}

.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--amber); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
  font-family: var(--font-body);
}

.post-card-meta {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════
   SINGLE POST — article layout
   ═══════════════════════════════════════════ */
.article-hero {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 0;
}

.article-hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-header {
  margin-bottom: 0;
}

.article-header .cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.article-header .cat-label::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 2px;
  background: var(--amber);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: 1.25rem;
}

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0;
  border-bottom: none;
  padding: 0 0 1.75rem;
  border-bottom: 2px solid var(--ink);
}

.article-meta .author-name {
  font-weight: 600;
  color: var(--ink-muted);
}

.article-featured-image {
  max-width: var(--wide);
  margin: 0 auto;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--paper-warm);
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep old thumbnail wrapper in single.php working */
.single-layout > .article-main > div[style*="margin-bottom"] {
  display: none; /* hidden — we use article-featured-image instead */
}

.single-layout {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
}

/* Article content typography */
.article-content {
  max-width: var(--content);
}

.article-content h1 {
  display: none; /* shown in article-hero above */
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.4rem 1.4rem;
  color: var(--ink-soft);
}

.article-content li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

.article-content blockquote {
  border-left: 3px solid var(--amber);
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--paper-warm);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.65;
  border-radius: 0;
}

.article-content strong { color: var(--ink); }

.article-content a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(184, 98, 26, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.article-content a:hover {
  text-decoration-color: var(--amber);
}

.article-content img {
  border-radius: 0;
  margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar { position: relative; }

.toc-widget {
  border: 1px solid var(--rule);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--white);
}

.toc-widget h4 {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.toc-widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toc-widget a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.toc-widget a:hover {
  color: var(--amber);
  border-left-color: var(--amber);
}

/* Sidebar ad unit */
.sidebar-ad-unit {
  margin-bottom: 1.5rem;
  text-align: center;
}

.sidebar-widget { margin-bottom: 1.5rem; }
.sidebar-widget h4 {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════ */
.related-posts {
  margin-top: 3rem;
}

.related-posts h3 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

/* ═══════════════════════════════════════════
   AUTHOR BOX
   ═══════════════════════════════════════════ */
.author-box {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-info h4 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════
   AFFILIATE & AD UNITS
   ═══════════════════════════════════════════ */
.affiliate-banner {
  margin: 2rem 0;
  text-align: center;
}

.affiliate-ad-link {
  display: inline-block;
  overflow: hidden;
  transition: opacity var(--transition);
  border-radius: 0;
}

.affiliate-ad-link:hover { opacity: 0.9; }
.affiliate-ad-link img { display: block; border-radius: 0; }

.affiliate-ad-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 0;
  text-decoration: none;
  text-align: center;
  transition: border-color var(--transition);
  margin: 2rem 0;
}

.affiliate-ad-text:hover { border-color: var(--amber); color: inherit; }

.affiliate-ad-text .ad-label {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}

.affiliate-ad-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.affiliate-ad-text span {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.affiliate-ad-text .ad-cta-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  transition: background var(--transition);
}

.affiliate-ad-text .ad-cta-btn:hover { background: var(--amber); }

/* AdSense slots */
.adsense-slot {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 0;
  margin: 2rem 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  position: relative;
  overflow: hidden;
}

.adsense-slot::before {
  content: 'ADVERTISEMENT';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}

/* Sidebar ads */
.sidebar-ad-unit .affiliate-ad-text { margin: 0; }

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  margin-top: 3rem;
}

.newsletter-inner {
  max-width: 540px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.newsletter p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}

.newsletter-form input::placeholder { color: var(--ink-faint); }

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--amber); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0 0;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo {
  color: var(--paper);
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.75rem;
  font-style: normal;
}

.footer-brand .site-logo em,
.footer-brand .site-logo span { color: var(--amber); }

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(250,248,245,0.45);
  line-height: 1.65;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250,248,245,0.35);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(250,248,245,0.5);
  transition: color var(--transition);
  text-decoration: none;
}

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

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

.footer-bottom,
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: rgba(250,248,245,0.22);
}

/* ═══════════════════════════════════════════
   CATEGORY / ARCHIVE PAGES
   ═══════════════════════════════════════════ */
.archive-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
}

.archive-header .cat-label { margin-bottom: 0.5rem; }

.archive-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
}

/* 404 */
.error-page {
  max-width: 600px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 700;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 2.5rem 1.5rem; border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-image { height: 280px; }
  .hero-secondary-inner { grid-template-columns: 1fr 1fr; }
  .hero-sec-card:last-child { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-featured-image { aspect-ratio: 16/9; }
  .masthead { padding: 0.9rem 1.5rem 0; }
  .site-logo { font-size: 1.9rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-logo { font-size: 1.6rem; }
  .topbar { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-secondary-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.25rem; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { padding: 0.75rem; }
  .masthead { position: relative; padding: 0.9rem 1.5rem 0; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .article-featured-image { aspect-ratio: 4/3; }
  .related-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.8rem; }
}
