/*
Theme Name: Turbulent Thoughts
Theme URI: https://turbulentthoughts.com
Author: Utsav Purkait
Description: A clean, editorial WordPress theme for Turbulent Thoughts — CFD & Fluid Mechanics blog.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: turbulent-thoughts
*/

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --white:       #ffffff;
  --off-white:   #fafaf8;
  --paper:       #f5f4f0;
  --border:      #e8e6e0;
  --border-dark: #d0cdc4;
  --text:        #1a1a18;
  --text-2:      #3d3d38;
  --text-3:      #6b6b64;
  --text-4:      #9b9b92;
  --navy:        #0f2040;
  --navy-2:      #1a3460;
  --navy-3:      #2a4a80;
  --navy-light:  #e8edf5;
  --gold:        #b8860b;
  --gold-2:      #d4a017;
  --gold-light:  #fdf6e3;
  --serif:       'Lora', Georgia, 'Times New Roman', serif;
  --sans:        'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
  --radius:      4px;
  --radius-lg:   8px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; color: var(--text-2); }
strong { font-weight: 600; color: var(--text); }

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.container--narrow { max-width: 780px; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--sm { padding: clamp(2rem, 4vw, 3.5rem) 0; }

/* ─────────────────────────────────────────
   LABELS & BADGES
───────────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.label--navy { color: var(--navy-3); }

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.badge--beg  { background: #edf7ed; color: #2e6b30; }
.badge--int  { background: #fdf3e0; color: #8a5e0a; }
.badge--adv  { background: #fdecea; color: #8a1f1a; }

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.rule--gold {
  border-color: var(--gold);
  border-top-width: 2px;
  width: 48px;
  margin-bottom: 1.5rem;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy-light); }
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-2); }
.btn--sm { font-size: 13px; padding: 8px 18px; }

/* ─────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px; font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text {
  display: flex; flex-direction: column; gap: 1px;
}
.logo-text-main {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.logo-text-sub {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav {
  display: flex; align-items: center; gap: 0;
}
.site-nav a {
  font-size: 13px; font-weight: 500;
  color: var(--text-3);
  padding: 6px 9px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); background: var(--navy-light); }
.site-nav a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  margin-left: 0.5rem;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--navy) !important;
  padding: 7px 14px !important;
  border-radius: var(--radius) !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-2) !important; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--navy); font-size: 22px;
}

/* Mobile nav panel */
.mobile-nav-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem 1rem;
  gap: 2px;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(15,32,64,0.08);
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
  font-size: 14px; font-weight: 500;
  color: var(--text-2); padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none; transition: background 0.15s;
}
.mobile-nav-panel a:hover { background: var(--navy-light); color: var(--navy); }
.mobile-nav-panel .nav-cta {
  margin-left: 0 !important; margin-top: 4px;
  display: block; text-align: center;
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 901px) {
  .mobile-nav-panel { display: none !important; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: var(--off-white);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero-h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-3);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 3px;
  font-weight: 500;
}
.hero-visual {
  position: relative;
}
.hero-quote-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}
.hero-quote-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 1.5rem; left: 1.75rem;
}
.hero-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}
.hero-quote-cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 1.25rem;
}
.hero-tag {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  color: var(--navy-3);
  background: var(--navy-light);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero::before { display: none; }
}

/* ─────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap; gap: 1rem;
}
.section-head-left .label { margin-bottom: 0.35rem; }
.section-head-left h2 { margin: 0; }
.section-view-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.section-view-all:hover { color: var(--gold); border-color: var(--gold); }

/* ─────────────────────────────────────────
   FEATURED ARTICLE
───────────────────────────────────────── */
.featured-section { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.featured-card:hover {
  box-shadow: 0 8px 32px rgba(15,32,64,0.1);
  border-color: var(--border-dark);
}
.featured-img-wrap { overflow: hidden; }
.featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}
.featured-card:hover .featured-img { transform: scale(1.02); }
.featured-body {
  padding: 2.5rem 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  border-left: 1px solid var(--border);
}
.featured-meta-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.25rem;
}
.featured-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
  display: block;
  transition: color 0.15s;
}
.featured-card:hover .featured-title { color: var(--gold); }
.featured-excerpt {
  font-size: 0.925rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  flex: 1;
}
.featured-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.featured-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
}
.read-more {
  font-size: 13px; font-weight: 600;
  color: var(--navy);
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.15s, color 0.15s;
}
.read-more:hover { gap: 9px; color: var(--gold); }
@media (max-width: 680px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-body { border-left: none; border-top: 1px solid var(--border); padding: 1.75rem; }
}

/* ─────────────────────────────────────────
   ARTICLE GRID
───────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.article-card {
  background: var(--white);
  padding: 1.75rem;
  display: block;
  text-decoration: none;
  transition: background 0.15s;
}
.article-card:hover { background: var(--off-white); }
.article-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  transition: opacity 0.2s;
}
.article-card:hover .article-thumb { opacity: 0.9; }
.article-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 0.6rem; }
.article-cat {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-3);
}
.article-title {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  transition: color 0.15s;
}
.article-card:hover .article-title { color: var(--gold); }
.article-excerpt {
  font-size: 0.845rem;
  color: var(--text-3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}
.article-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.article-date { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.article-arrow { font-size: 16px; color: var(--navy); transition: color 0.15s; }
.article-card:hover .article-arrow { color: var(--gold); }
@media (max-width: 860px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .article-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   CATEGORIES
───────────────────────────────────────── */
.categories-section { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.category-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(15,32,64,0.08);
}
.category-card:hover .category-name { color: var(--navy); }
.category-icon { font-size: 1.6rem; margin-bottom: 4px; }
.category-name {
  font-family: var(--serif);
  font-size: 0.975rem; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}
.category-count { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.category-arrow { font-size: 13px; color: var(--gold); margin-top: auto; font-weight: 600; }
@media (max-width: 760px) { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .category-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   ABOUT STRIP
───────────────────────────────────────── */
.about-section { background: var(--white); border-bottom: 1px solid var(--border); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}
.about-left { border-right: 1px solid var(--border); padding-right: 5rem; }
.about-blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--navy);
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
  margin: 0;
}
.about-blockquote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}
.about-right p { color: var(--text-3); font-size: 0.975rem; line-height: 1.8; margin-bottom: 1rem; }
@media (max-width: 760px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-left { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 2.5rem; }
}

/* ─────────────────────────────────────────
   PLAYGROUND STRIP
───────────────────────────────────────── */
.playground-section {
  background: var(--navy);
  color: var(--white);
}
.playground-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.playground-label { color: var(--gold-2); margin-bottom: 0.5rem; }
.playground-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.playground-desc { font-size: 0.925rem; color: rgba(255,255,255,0.65); max-width: 420px; line-height: 1.75; margin-bottom: 1.75rem; }
.playground-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.pg-num {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.pg-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ─────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────── */
.newsletter-section { background: var(--gold-light); border-top: 1px solid #e8d8a0; border-bottom: 1px solid #e8d8a0; }
.newsletter-inner { max-width: 600px; }
.newsletter-title { color: var(--navy); margin-bottom: 0.5rem; }
.newsletter-desc { color: var(--text-3); font-size: 0.95rem; margin-bottom: 1.75rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 240px;
  font-family: var(--sans); font-size: 14.5px;
  padding: 11px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--navy); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-4); }
.newsletter-note { font-size: 12px; color: var(--text-4); margin-top: 10px; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-text {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  margin: 1rem 0;
}
.footer-logo-mark {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px; font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────── */
.post-header {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.post-header-inner { max-width: 780px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; flex-wrap: wrap; }
.post-cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-3);
  background: var(--navy-light);
  padding: 4px 10px; border-radius: 3px;
}
.post-date { font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.post-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.post-excerpt {
  font-size: 1.1rem;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 620px;
}
.post-featured-image {
  width: 100%; max-height: 480px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
}
.post-content p { font-size: 1.05rem; line-height: 1.85; color: var(--text-2); margin-bottom: 1.5rem; }
.post-content h2 { margin: 2.5rem 0 1rem; }
.post-content h3 { margin: 2rem 0 0.75rem; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem; margin-bottom: 1.5rem;
  list-style: disc;
  color: var(--text-2); font-size: 1.05rem; line-height: 1.8;
}
.post-content ol { list-style: decimal; }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gold-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
}
.post-content code {
  font-family: var(--mono);
  font-size: 0.88rem;
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--navy-2);
}
.post-content pre {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.65;
}
.post-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.post-content a { color: var(--navy-2); border-bottom: 1px solid var(--border-dark); transition: color 0.15s, border-color 0.15s; }
.post-content a:hover { color: var(--gold); border-color: var(--gold); }

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }
