apps/blog/src/styles.css
/* CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Custom Properties */
:root {
  --color-bg: #fff;
  --color-text: #333;
  --color-text-muted: #666;
  --color-accent: #06c;
  --color-accent-hover: #0529;
  --color-border: #e0e0e0;
  --font-system: system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --spacing-xs: .5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1a;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-accent: #4da6ff;
    --color-accent-hover: #66b3ff;
    --color-border: #333333;
  }
}

[data-theme="light"] {
  --color-bg: #fff;
  --color-text: #333;
  --color-text-muted: #666;
  --color-accent: #06c;
  --color-accent-hover: #0529;
  --color-border: #e0e0e0;
}

[data-theme="dark"] {
  --color-bg: #1a1a1a;
  --color-text: #e0e0e0;
  --color-text-muted: #a0a0a0;
  --color-accent: #4da6ff;
  --color-accent-hover: #66b3ff;
  --color-border: #333333;
}

/* Base styles */
html {
  font-family: var(--font-system);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-sm);
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--spacing-xs);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#theme-toggle:hover {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
}

header h1 a {
  color: var(--color-text);
  font-weight: 700;
}

.site-info {
  display: flex;
  flex-direction: column;
}

.site-info p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Posts */
.posts {
  display: grid;
  gap: var(--spacing-lg);
}

.post-preview {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--spacing-md);
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.post-preview h3 {
  margin-bottom: var(--spacing-xs);
}

.post-preview p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer */
footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 600px) {
  body {
    padding: var(--spacing-xs);
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}