@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Main reading area: Soft, light beige */
  --bg-color: #f0ebe1; 
  /* Left Sidebar: Darker, richer beige for contrast */
  --term-bg:  #dfd5c2;  
  
  --text-main: #1a1a1a;
  --text-muted: #666;
  
  /* Terminal Syntax Colors */
  --prompt-host: #005f87; 
  --prompt-char: #555;    
  --cmd-text: #1a1a1a;    
  --link-color: #b22222;  
  
  --font-mono: 'Space Mono', 'SF Mono', 'Menlo', 'Monaco', monospace;
  --line-height: 1.6;
}

/* ... keep all your other CSS exactly the same ... */

/* Add this to the bottom of your CSS file for the non-clickable tags */
.card-tags { 
  margin-top: 1rem; 
}
.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-main);
  background-color: rgba(0,0,0,0.04); /* Very subtle dark background */
  border: 1px solid rgba(0,0,0,0.2);
  padding: 0.1rem 0.4rem;
  margin-right: 0.5rem;
  text-transform: uppercase;
  border-radius: 2px;
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0; padding: 0;
  line-height: var(--line-height);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  border-bottom: 2px solid var(--text-main);
  padding: 1.5rem 2rem;
  background-color: var(--bg-color);
  z-index: 10;
}
header h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
header h1 a { color: inherit; text-decoration: none; }

/* The Split Screen Layout */
.site-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  flex-grow: 1;
}

/* Left Sidebar: Full Height Terminal */
aside {
  background-color: var(--term-bg);
  border-right: 2px solid var(--text-main);
  padding: 2.5rem 2rem;
  /* Make it sticky so it stays visible when scrolling long articles */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Right Content Area */
main { padding: 2.5rem 4rem; max-width: 850px; }

/* Terminal Prompt Styling */
.cmd-block { margin-bottom: 2rem; }
.prompt { margin-bottom: 0.5rem; }
.p-host { color: var(--prompt-host); font-weight: bold; }
.p-char { color: var(--prompt-char); font-weight: bold; margin: 0 0.2rem; }
.p-cmd { color: var(--cmd-text); font-weight: bold; }

.response { color: var(--text-main); line-height: 1.5; }
.response a { color: var(--link-color); text-decoration: none; border-bottom: 1px dashed var(--link-color); }
.response a:hover { background-color: var(--link-color); color: var(--term-bg); }

/* 'ls -l' Format for Posts */
.ls-line { display: flex; gap: 1rem; margin-bottom: 0.4rem; }
.ls-date { color: var(--text-muted); white-space: nowrap; }
.ls-file a { color: var(--text-main); text-decoration: none; }
.ls-file a:hover { color: var(--link-color); text-decoration: underline; border: none; background: none; }

/* Tag List */
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag-link { color: var(--text-main); text-decoration: none; border-bottom: 1px dashed var(--text-main); }

/* Feed / Home Page */
.feed-stream h2 { font-size: 1.5rem; margin-top: 0; margin-bottom: 2rem; }
.card { border: 2px solid var(--text-main); padding: 1.5rem; margin-bottom: 2rem; background: var(--bg-color); transition: transform 0.2s, box-shadow 0.2s; box-shadow: 4px 4px 0px rgba(0,0,0,0.1); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0px var(--text-main); }
.card h3 { font-size: 1.3rem; margin: 0 0 0.5rem 0; }
.card h3 a { text-decoration: none; color: inherit; }

/* =========================================
   MARKDOWN BLOG CONTENT STYLING (The Fix) 
   ========================================= */
.post-title { font-size: 2rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.post-content { line-height: 1.8; font-size: 1.05rem; }
.post-content h1, .post-content h2, .post-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content a { color: var(--link-color); text-decoration: underline; }
.post-content pre { background: var(--text-main); color: var(--term-bg); padding: 1.2rem; overflow-x: auto; border-radius: 4px; margin-bottom: 1.5rem; border: 2px solid #000; }
.post-content code { background: rgba(0,0,0,0.06); padding: 0.2rem 0.4rem; border-radius: 3px; font-size: 0.9em; }
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content blockquote { border-left: 4px solid var(--text-main); margin: 0 0 1.5rem 0; padding-left: 1rem; font-style: italic; color: var(--text-muted); }
.post-content img { max-width: 100%; height: auto; border: 2px solid var(--text-main); }

/* Mobile Layout */
@media (max-width: 900px) {
  .site-wrapper { grid-template-columns: 1fr; }
  aside { height: auto; position: static; border-right: none; border-bottom: 2px solid var(--text-main); padding: 1.5rem; }
  main { padding: 1.5rem; }
}