/* ============================================
   Deep Learning from the Inside Out
   Premium Editorial Design v3
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #0f0f14;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --bg: #fafaf9;
  --bg-card: #ffffff;
  --bg-warm: #fefcf8;
  --bg-dark: #09090b;
  --accent: #1e3a5f;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-violet: #7c3aed;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --green: #059669;
  --green-light: #ecfdf5;
  --rose: #e11d48;
  --border: #e4e4e7;
  --border-light: #f4f4f5;
  --code-bg: #f4f4f5;
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.3);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.03);
  --shadow-md: 0 8px 16px -4px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 16px 32px -8px rgba(0,0,0,0.08), 0 8px 16px -4px rgba(0,0,0,0.03);
  --shadow-xl: 0 24px 48px -12px rgba(0,0,0,0.1);
  --shadow-glow-blue: 0 0 40px rgba(37,99,235,0.12);
  --shadow-glow-violet: 0 0 40px rgba(124,58,237,0.12);
  --max-width: 820px;
  --max-width-wide: 1140px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(99, 102, 241, 0.15); color: var(--accent-indigo); }

/* === Animated Background === */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 20s ease-in-out infinite;
}

.bg-mesh .orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
  top: -10%; right: -5%;
  animation-delay: 0s;
}

.bg-mesh .orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217,119,6,0.12), transparent 70%);
  bottom: 10%; left: -8%;
  animation-delay: -7s;
}

.bg-mesh .orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(5,150,105,0.1), transparent 70%);
  top: 40%; right: 20%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 2rem; }

/* === Reading Progress Bar === */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo), var(--accent-violet));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* === Site Header === */
.site-header {
  padding: 0.9rem 0;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  background: rgba(250, 250, 249, 0.95);
}

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #fff;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-title:hover { color: var(--accent-blue); }

.site-nav { display: flex; align-items: center; gap: 0.15rem; }

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
  letter-spacing: -0.01em;
}

.site-nav a:hover {
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.06);
}

/* === Hero === */
.hero {
  padding: 5rem 0 3rem;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-indigo);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(124,58,237,0.06));
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 40%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

.hero .author-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero .author-info { display: flex; flex-direction: column; }

.hero .author-name {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}

.hero .author-affiliation {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero .author-affiliation .badge {
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* === Stats === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  font-weight: 700;
}

/* === Section Headers === */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0 1.75rem;
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
  border: none;
  white-space: nowrap;
}

.section-header h2::after { display: none; }

.section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* === Post Cards === */
.post-grid { display: grid; gap: 1rem; list-style: none; padding: 0; }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  position: relative;
  display: grid;
  grid-template-columns: 6px 1fr;
}

.post-card .card-accent {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-indigo));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.post-card:hover {
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  transform: translateY(-3px);
}

.post-card:hover .card-accent { opacity: 1; }

.post-card .card-body { padding: 1.5rem 1.75rem; }

.post-card .series-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  margin-bottom: 0.65rem;
}

.post-card .post-title {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 780;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: -0.025em;
  display: block;
  margin-bottom: 0.35rem;
  transition: color 0.2s var(--ease);
}

.post-card .post-title:hover { color: var(--accent-indigo); }

.post-card .post-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.post-card .post-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.post-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-indigo);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.05);
}

.post-card .read-link:hover {
  background: rgba(99, 102, 241, 0.1);
  gap: 0.5rem;
}

.post-card .read-link svg {
  width: 14px; height: 14px;
  transition: transform 0.2s var(--ease);
}

.post-card:hover .read-link svg { transform: translateX(2px); }

/* === Article (Post Pages) === */
article {
  background: var(--bg-card);
  padding: 3.5rem 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  border: 1px solid var(--border-light);
  position: relative;
}

article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo), var(--accent-violet));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* === Typography === */
h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.025em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 45px; height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-violet));
  border-radius: 2px;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 720;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

p { margin-bottom: 1.3rem; }
strong { font-weight: 700; color: var(--text); }

/* === Links === */
a {
  color: var(--accent-indigo);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.2);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: all 0.2s var(--ease);
}
a:hover { text-decoration-color: var(--accent-indigo); }

/* === Lists === */
ul, ol { margin-bottom: 1.3rem; padding-left: 1.5rem; }
li { margin-bottom: 0.45rem; }
li > ul, li > ol { margin-top: 0.4rem; margin-bottom: 0.4rem; }

/* === Code === */
code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--code-bg);
  padding: 0.2em 0.45em;
  border-radius: 5px;
  color: var(--accent-violet);
  border: 1px solid rgba(0,0,0,0.04);
}

pre {
  background: #0c0c1d;
  color: #e2e8f0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
}

pre code { background: none; padding: 0; color: inherit; font-size: inherit; border: none; }

/* === Images & Diagrams === */
.diagram {
  margin: 2.5rem 0;
  text-align: center;
}

.diagram img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s var(--ease);
  cursor: zoom-in;
}

.diagram img:hover {
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
  border-color: rgba(99, 102, 241, 0.2);
}

.diagram figcaption,
.diagram .caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  font-style: italic;
  line-height: 1.5;
}

/* === Architecture Diagrams === */
.arch-diagram {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #fafafe 0%, #f5f5ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.arch-diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.arch-diagram .caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  font-style: italic;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

th {
  background: linear-gradient(135deg, var(--accent), #1e3a5f);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

tr:nth-child(even) { background: rgba(0,0,0,0.015); }
tr:hover { background: rgba(99, 102, 241, 0.03); }

/* === Math === */
.math-block {
  overflow-x: auto;
  margin: 1.75rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--bg-warm);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  font-size: 1.05rem;
}

/* === TL;DR === */
.tldr, .tldr-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  border-left: none;
  padding: 1.75rem 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  font-size: 0.94rem;
  line-height: 1.75;
  position: relative;
  overflow: hidden;
}

.tldr::before, .tldr-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--green), #10b981);
  border-radius: 5px 0 0 5px;
}

.tldr::after, .tldr-box::after {
  content: 'TL;DR';
  position: absolute;
  top: 0.75rem; right: 0.85rem;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--green);
  opacity: 0.4;
}

.tldr strong, .tldr-box strong { color: #047857; }

/* === Callouts === */
.note {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f5ff 100%);
  border-left: none;
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  font-size: 0.94rem;
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

.note::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent-blue);
}

.note strong { color: var(--accent-blue); }

.key-insight {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: none;
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  font-size: 0.94rem;
  position: relative;
  border: 1px solid rgba(217, 119, 6, 0.15);
  overflow: hidden;
}

.key-insight::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), #f59e0b);
}

.key-insight strong { color: #92400e; }

/* === Comparison === */
.comparison { overflow-x: auto; border-radius: var(--radius); }

/* === HR === */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  margin-top: 4rem;
  background: var(--bg-card);
}

.site-footer strong { color: var(--text); font-weight: 700; }

.site-footer a {
  color: var(--accent-indigo);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover { text-decoration: underline; }

/* === Architecture Comparison Cards === */
.arch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.arch-card {
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}

.arch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.arch-card .arch-icon {
  width: 48px; height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.arch-card h4 {
  font-size: 0.95rem;
  font-weight: 750;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.arch-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* === Flow Diagram Styles === */
.flow-diagram {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fafaff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99,102,241,0.08);
  overflow-x: auto;
}

.flow-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  min-width: max-content;
  padding: 0.5rem 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.06);
  min-width: 70px;
}

.flow-step .dim {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.7;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}

.flow-step.input { background: #dbeafe; color: #1e40af; }
.flow-step.attention { background: #fae8ff; color: #86198f; }
.flow-step.ffn { background: #fef3c7; color: #92400e; }
.flow-step.norm { background: #dcfce7; color: #166534; }
.flow-step.output { background: #e0e7ff; color: #3730a3; }
.flow-step.activation { background: #ffe4e6; color: #9f1239; }

/* === Responsive === */
@media (max-width: 768px) {
  html { font-size: 16px; }
  article { padding: 2rem 1.5rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero .subtitle { font-size: 1rem; }
  .site-header .container-wide {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  .site-nav { flex-wrap: wrap; gap: 0; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .post-card { grid-template-columns: 4px 1fr; }
  .post-card .card-body { padding: 1.25rem 1.25rem; }
  .container-wide { padding: 0 1.25rem; }
  .arch-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 0 2rem; }
  article { padding: 1.5rem 1.15rem; border-radius: var(--radius-lg); }
  .stat-number { font-size: 1.4rem; }
  .arch-cards { grid-template-columns: 1fr; }
}
