cat > assets/css/main.css << 'EOF'
/* Light theme (Architect) - default */
body {
  --bg: #f2f2f2;
  --text: #1e1e1e;
  --nav-bg: #2c2c2c;
  --nav-text: #f2f2f2;
  --brand: #1e6bb8;
  --border: #ddd;
  --card-bg: #fff;
  --code-bg: #f8f8f8;
  --link: #1e6bb8;
  --link-hover: #0d3b66;
}

/* Dark theme (Hacker) - applied via class */
body.dark-theme {
  --bg: #0a0f0a;
  --text: #b3e0b3;
  --nav-bg: #0d1b0d;
  --nav-text: #b3e0b3;
  --brand: #7fff00;
  --border: #1e3a1e;
  --card-bg: #0f1a0f;
  --code-bg: #0a120a;
  --link: #7fff00;
  --link-hover: #bfff80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', 'Fira Code', monospace;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  padding: 0 1rem;
  transition: background 0.2s, color 0.2s;
}

/* Navigation */
.top-nav {
  background: var(--nav-bg);
  padding: 0.8rem 1rem;
  margin: -1rem -1rem 2rem -1rem;
  border-bottom: 2px solid var(--brand);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav-brand a {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--brand);
  text-decoration: none;
  font-family: inherit;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--brand);
  border-radius: 2rem;
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  color: var(--brand);
  background: var(--nav-bg);
  transition: 0.2s;
  font-family: monospace;
}
.theme-toggle:hover {
  background: var(--brand);
  color: var(--nav-bg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
  font-family: monospace;
}
.nav-links a:hover {
  border-bottom-color: var(--brand);
  color: var(--brand);
}
.nav-separator {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}
.nav-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  opacity: 0.8;
}
.secondary {
  margin-left: 0;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* Recent posts widget */
.recent-list {
  list-style: none;
  padding-left: 0;
}
.recent-list li {
  background: var(--card-bg);
  margin-bottom: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--brand);
  transition: 0.1s;
}
.recent-list li:hover {
  transform: translateX(4px);
}
.recent-list a {
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: none;
  color: var(--link);
}
.recent-list a:hover {
  color: var(--link-hover);
}
.post-date {
  display: inline-block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 0.5rem;
}
.excerpt {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  margin-bottom: 0;
  opacity: 0.85;
}

h1, h2, h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}
h1 {
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 0.2rem;
}
p, li {
  margin-bottom: 1em;
}
a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px dotted;
}
a:hover {
  border-bottom-style: solid;
  color: var(--link-hover);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: var(--card-bg);
}
th, td {
  border: 1px solid var(--border);
  padding: 0.5rem;
  text-align: left;
}
pre, code {
  background: var(--code-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .theme-toggle {
    align-self: flex-end;
    margin-top: -2.2rem;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
  .secondary {
    justify-content: flex-start;
    gap: 1rem;
  }
  body {
    font-size: 1rem;
  }
  h1 { font-size: 1.6rem; }
  .recent-list li {
    padding: 0.8rem;
  }
  .excerpt {
    font-size: 0.85rem;
  }
}
EOF
