@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;
  --header-height: 82px;
}

/* ... 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;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  box-sizing: border-box;
  border-bottom: 2px solid var(--text-main);
  padding: 1.5rem 2rem;
  background-color: var(--bg-color);
  z-index: 100;
}
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;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/* Left Sidebar: Full Height Terminal */
aside {
  background-color: var(--term-bg);
  border-right: 2px solid var(--text-main);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-post-list {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.sidebar-footer {
  border-top: 1px dashed rgba(0, 0, 0, 0.25);
  padding-top: 0.8rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.brainmade-badge {
  display: inline-flex;
  width: fit-content;
}

.brainmade-badge img {
  width: 72px;
  height: auto;
  opacity: 0.75;
}

.brainmade-badge:hover img {
  opacity: 1;
}

.sidebar-copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.sidebar-copyright a {
  color: var(--text-muted);
}

/* Right Content Area */
main {
  padding: 2.5rem 4rem;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
}

.content-column {
  width: min(80ch, 66%);
  margin-left: clamp(0rem, 6vw, 7rem);
}

/* 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; }
.feed-disclaimer {
  margin-top: -1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 75ch;
}
.card { border: 2px solid var(--text-main); padding: 0; 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-link {
  display: block;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}
.card-excerpt {
  color: var(--text-main);
  margin-bottom: 0;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   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) {
  body {
    height: auto;
    overflow: auto;
  }
  header {
    position: static;
    height: auto;
  }
  .site-wrapper { grid-template-columns: 1fr; }
  .site-wrapper {
    margin-top: 0;
    height: auto;
    overflow: visible;
  }
  aside { height: auto; border-right: none; border-bottom: 2px solid var(--text-main); padding: 1.5rem; overflow: visible; }
  .sidebar-main { overflow: visible; }
  .sidebar-post-list { max-height: 180px; }
  main { padding: 1.5rem; overflow: visible; }
  .content-column {
    width: 100%;
    margin-left: 0;
  }
}