/*
Theme Name: Sokratis Marketing Analyst
Theme URI: https://example.com
Author: Your Studio
Description: A marketing-analyst blog theme with a bold hero, insight categories, and a curated articles feed.
Version: 1.0
Text Domain: sokratis
*/

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }

:root {
  --black: #0b0d0a;
  --panel: #10130f;
  --green: #3ecf4e;
  --green-dark: #2fae3d;
  --ink: #14170f;
  --muted: #6b6f66;
  --line: #e7e8e2;
  --paper: #f6f7f3;
  --white: #ffffff;
  --max: 1240px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 4px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; border: none; transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--green); color: #06210b; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; }

/* ============ Header ============ */
.site-header {
  background: var(--black);
  padding: 18px 0;
  position: relative;
  z-index: 40;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark-img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--green); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }

.primary-nav ul { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.primary-nav a {
  color: #d8dad3; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  white-space: nowrap; transition: color .15s ease;
}
.primary-nav a:hover { color: #fff; }
.site-header .wrap { flex-wrap: nowrap; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18); color: #fff; background: transparent; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.icon-btn:focus, .nav-toggle:focus { outline: none; }
.icon-btn:focus-visible, .nav-toggle:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(62,207,78,.45); border-radius: 999px;
}
.site-header.search-open #search-toggle { border-color: var(--green); color: var(--green); }
.nav-toggle { display: none; background: transparent; border: none; color: #fff; padding: 4px; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-burger { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

.site-search-form {
  display: flex; align-items: center; gap: 10px;
  max-height: 0; overflow: hidden; opacity: 0;
  padding: 0 32px; transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}
.site-header.search-open .site-search-form {
  max-height: 70px; opacity: 1; padding: 14px 32px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15);
  background: #171a13; color: #fff; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s ease;
}
.site-search-form input[type="search"]:focus { border-color: var(--green); }
.site-search-form input[type="search"]::placeholder { color: #7d7f76; }
.site-search-form button[type="submit"] {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 4px; border: none;
  background: var(--green); color: #06210b; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ============ Hero ============ */
.hero { position: relative; color: #fff; padding: 150px 0 90px; overflow: hidden; display: flex; align-items: center; min-height: 560px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 45%, rgba(9,11,7,.97) 0%, rgba(9,11,7,.9) 45%, rgba(9,11,7,.6) 75%, rgba(9,11,7,.4) 100%);
}

/* Hero graphic: default/reduced-motion state renders fully complete, no animation. */
.hg-fill { opacity: 0.05; }
.hg-path { stroke-dasharray: 2600; stroke-dashoffset: 0; }
.hg-dot { transform-box: fill-box; transform-origin: center; transform: scale(1); opacity: 1; }
.hg-particle { opacity: 0.85; }
.hg-blob, .hg-ring, .hg-poly { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .hg-glow { animation: hg-breathe 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

  /* Line draws in once, then loops as a continuous "live signal" draw/undraw pulse. */
  .hg-path {
    stroke-dashoffset: 2600;
    animation: hg-draw-in 0.9s cubic-bezier(.65,0,.35,1) 0.2s forwards,
               hg-pulse-line 0.7s ease-in-out 1.1s infinite alternate;
  }
  .hg-fill { opacity: 0; animation: hg-fade-in 0.35s ease-out 0.9s forwards; }

  .hg-dot {
    transform: scale(0); opacity: 0;
    animation: hg-pop 0.3s cubic-bezier(.34,1.56,.64,1) forwards,
               hg-dot-pulse 0.55s ease-in-out infinite;
  }
  .hg-dot-1 { animation-delay: 0.8s, 1.1s; }
  .hg-dot-2 { animation-delay: 1s, 1.3s; }

  .hg-particle { animation: hg-float 1.2s ease-in-out infinite; }
  .p1 { animation-duration: 1s;   animation-delay: 0s; }
  .p2 { animation-duration: 1.4s; animation-delay: 0.15s; }
  .p3 { animation-duration: 1.1s; animation-delay: 0.1s; }
  .p4 { animation-duration: 1.5s; animation-delay: 0.3s; }

  /* Abstract background shapes, now drifting/rotating fast. */
  .blob-a { animation: hg-drift-a 3s ease-in-out infinite alternate; }
  .blob-b { animation: hg-drift-b 3.6s ease-in-out infinite alternate; }
  .blob-c { animation: hg-drift-c 2.6s ease-in-out infinite alternate; }
  .ring-a { animation: hg-spin 4s linear infinite, hg-drift-a 3.2s ease-in-out infinite alternate; }
  .ring-b { animation: hg-spin-rev 3s linear infinite; }
  .poly-a { animation: hg-spin 5.5s linear infinite; }
}

@keyframes hg-draw-in { to { stroke-dashoffset: 0; } }
@keyframes hg-pulse-line { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 420; } }
@keyframes hg-fade-in { to { opacity: 0.05; } }
@keyframes hg-pop { to { transform: scale(1); opacity: 1; } }
@keyframes hg-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes hg-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes hg-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(-6px, -10px); opacity: 1; }
}
@keyframes hg-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(38px, 26px) scale(1.08); }
}
@keyframes hg-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-34px, -22px) scale(0.95); }
}
@keyframes hg-drift-c {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes hg-spin { to { transform: rotate(360deg); } }
@keyframes hg-spin-rev { to { transform: rotate(-360deg); } }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-copy { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 {
  font-size: clamp(40px, 5.2vw, 68px); font-weight: 900; line-height: 1.02; margin: 18px 0 22px;
  text-transform: uppercase;
}
.hero-copy h1 .accent { color: var(--green); }
.hero-copy p { font-size: 17px; line-height: 1.6; color: #b7b9b1; max-width: 46ch; margin: 0 auto 30px; }

#hero-heading { min-height: 3.3em; }
.type-cursor {
  display: inline-block; width: 4px; height: 0.82em;
  background: var(--green); margin-left: 3px; vertical-align: -0.06em;
  animation: type-blink 0.9s steps(1) infinite;
}
.type-cursor.is-static { animation: none; opacity: 1; }
@keyframes type-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .type-cursor { animation: none; }
}

/* ============ Mini About ============ */
.mini-about { background: #fff; padding: 52px 0; border-bottom: 1px solid var(--line); }
.mini-about-inner { display: flex; align-items: center; gap: 26px; max-width: 760px; margin: 0 auto; }
.mini-about-photo {
  width: 88px; height: 88px; border-radius: 999px; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--green);
}
.mini-about-copy .eyebrow { margin-bottom: 10px; }
.mini-about-copy p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.mini-about-copy strong { color: var(--ink); }

/* ============ Category strip ============ */
.category-strip { background: var(--paper); padding: 90px 0 56px; border-bottom: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.category-card .cat-icon {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(62,207,78,.12);
  display: flex; align-items: center; justify-content: center; color: var(--green); margin-bottom: 18px;
}
.category-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.01em; text-transform: uppercase; }
.category-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.category-card .go-link { color: var(--green); font-weight: 700; font-size: 15px; }

/* ============ Content area ============ */
.content-section { padding: 72px 0 90px; background: var(--paper); }
.content-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }

.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.section-heading h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.section-heading .rule { flex: 1; height: 1px; background: var(--line); }

.article-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 26px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.article-row:first-child { padding-top: 0; }
.article-thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-cat { color: var(--green); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.article-row h3 { font-size: 20px; font-weight: 800; margin: 10px 0 10px; line-height: 1.3; }
.article-row h3 a:hover { color: var(--green-dark); }
.article-row p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.article-meta { font-size: 12.5px; color: #8c8f84; font-weight: 600; letter-spacing: 0.02em; }

.view-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 800; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.view-all svg { color: var(--green); }

/* Sidebar */
.sidebar > * + * { margin-top: 30px; }
.fact-slider { background: var(--black); color: #fff; padding: 32px; border-radius: 6px; }
.fact-slider .mail-icon { color: var(--green); margin-bottom: 14px; }
.fact-slider .eyebrow { display: flex; margin-bottom: 20px; }
.fact-slides { position: relative; min-height: 168px; }
.fact-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.fact-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fact-slide p { font-size: 18px; font-weight: 700; line-height: 1.45; color: #fff; margin: 0 0 14px; }
.fact-source { font-size: 12.5px; color: #8b8d84; font-weight: 600; letter-spacing: 0.02em; }
.fact-dots { display: flex; gap: 7px; margin-top: 18px; }
.fact-dots .dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .3s ease, width .3s ease; }
.fact-dots .dot.is-active { background: var(--green); width: 18px; }

.sidebar-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.sidebar-panel h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; color: var(--ink); }
.topic-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.topic-list li:last-child { border-bottom: none; }
.topic-list .hash { color: var(--green); margin-right: 8px; font-weight: 700; }
.topic-list .arrow { color: #b6b8ae; }

.social-row { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.social-row a {
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.social-row a svg { width: 19px; height: 19px; }
.social-row a { font-size: 15px; font-weight: 700; }
.social-row a:hover { background: var(--green); border-color: var(--green); color: #06210b; }

/* ============ CTA banner ============ */
.cta-banner {
  background: radial-gradient(120% 160% at 0% 0%, #14371c 0%, #0a0d09 55%);
  color: #fff; padding: 54px 0;
}
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.cta-banner h2 .accent { color: var(--green); font-style: italic; }
.cta-features { display: flex; gap: 46px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 14px; max-width: 220px; }
.cta-feature .icon { color: var(--green); flex-shrink: 0; }
.cta-feature strong { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.cta-feature span { font-size: 13px; color: #a8aaa2; line-height: 1.4; }

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 14px 16px;
  font-size: 14px; font-family: inherit; background: #171a13; color: #fff; outline: none;
  transition: border-color .15s ease;
}
.newsletter-form input[type="email"]:focus { border-color: var(--green); }
.newsletter-form input[type="email"]::placeholder { color: #7d7f76; }
.newsletter-form button {
  padding: 0 24px; border: none; border-radius: 4px; background: var(--green); color: #06210b;
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
  transition: background .15s ease; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--green-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-success { color: var(--green); font-weight: 700; font-size: 15px; }

/* Compact newsletter box in the sidebar (light theme, stacked form) */
.sidebar-newsletter .mail-icon {
  width: 44px; height: 44px; border-radius: 999px; background: rgba(62,207,78,.12);
  color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.sidebar-newsletter h4 {
  text-transform: none; letter-spacing: normal; font-size: 16.5px; font-weight: 800;
  color: var(--ink); margin-bottom: 8px;
}
.sidebar-newsletter p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
.sidebar-newsletter-form { flex-direction: column; gap: 8px; }
.sidebar-newsletter-form input[type="email"] {
  background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 12px 14px;
}
.sidebar-newsletter-form input[type="email"]::placeholder { color: #9a9c94; }
.sidebar-newsletter-form input[type="email"]:focus { border-color: var(--green); }
.sidebar-newsletter-form button { padding: 12px 0; width: 100%; }
.sidebar-newsletter .newsletter-success { display: block; }

/* ============ Reading progress bar ============ */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--green); z-index: 100; transition: width .1s linear;
}

/* ============ Single post ============ */
.single-post-section { padding-top: 44px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb .sep { margin: 0 6px; color: #c7c9c1; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.single-title { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 12px 0 14px; }
.single-meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.single-thumb { border-radius: 6px; overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/8.5; }
.single-thumb img { width: 100%; height: 100%; object-fit: cover; }

.share-row { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.share-row-bottom { margin: 40px 0 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.share-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.share-btn:hover { background: var(--green); border-color: var(--green); color: #06210b; }
.share-btn.is-copied { background: var(--green); border-color: var(--green); color: #06210b; }

.single-content { font-size: 16.5px; line-height: 1.8; color: #262920; }
.single-content p { margin: 0 0 22px; }
.single-content h2 { font-size: 24px; font-weight: 800; margin: 36px 0 16px; }
.single-content h3 { font-size: 19px; font-weight: 800; margin: 28px 0 14px; }
.single-content ul, .single-content ol { margin: 0 0 22px; padding-left: 22px; }
.single-content li { margin-bottom: 8px; }
.single-content a { color: var(--green-dark); text-decoration: underline; }
.single-content img { border-radius: 6px; margin: 10px 0 26px; }
.single-content blockquote {
  border-left: 3px solid var(--green); margin: 26px 0; padding: 4px 0 4px 20px;
  font-style: italic; color: #4a4d44;
}

.author-bio {
  display: flex; align-items: center; gap: 20px; background: var(--paper);
  border-radius: 10px; padding: 26px; margin-bottom: 44px;
}
.author-bio-photo { width: 68px; height: 68px; border-radius: 999px; object-fit: cover; flex-shrink: 0; border: 3px solid var(--green); }
.author-bio h4 { font-size: 17px; font-weight: 800; margin: 4px 0 6px; }
.author-bio p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.related-posts { margin-top: 10px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; transition: border-color .15s ease, background .15s ease;
}
.related-card:hover { border-color: var(--green); background: var(--paper); }
.related-card .article-cat { margin-bottom: 10px; }
.related-card h3 { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin: 0; color: var(--ink); flex: 1; }
.related-card:hover h3 { color: var(--green-dark); }
.related-arrow { color: var(--green); margin-top: 14px; }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 44px; height: 44px; border-radius: 999px;
  background: var(--black); color: var(--green); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green); color: #06210b; }

/* ============ Footer ============ */
.site-footer { background: var(--black); color: #b7b9b1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-about p { font-size: 13.5px; line-height: 1.65; margin: 18px 0 16px; max-width: 34ch; }
.footer-about .more-link { color: var(--green); font-weight: 800; font-size: 13px; }
.footer-col h5 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 12.5px; color: #797c73; flex-wrap: wrap; gap: 10px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .category-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .content-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .site-header.nav-open .primary-nav { max-height: 480px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 22px; }
  .primary-nav a {
    display: block; padding: 13px 0; font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .primary-nav li:last-child a { border-bottom: none; }
}
@media (max-width: 640px) {
  .hero { padding: 90px 0; min-height: 460px; }
  .wrap { padding: 0 20px; }
  .mini-about-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { flex: none; width: 100%; }
  .newsletter-form button { width: 100%; }
  .cta-banner .wrap { flex-direction: column; align-items: flex-start; }
  .article-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; text-align: center; }
  .single-title { font-size: 26px; }
  .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; }
}
