/* 70s Apple vibes — warm humanist serif */
:root {
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --color-bg: #fefdfb;
  --color-text: #2c2c2c;
  --color-muted: #6b6b6b;
  --color-accent: #8b4513;
}

body {
  font-family: var(--font-serif) !important;
  font-size: 18px;
  line-height: 1.7;
  background: var(--color-bg);
  color: var(--color-text);
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Wide layout for two-column pages (Daily Agent) */
body:has(.daily-agent-layout) {
  max-width: 1200px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  color: var(--color-accent);
}

h3 {
  font-size: 1.2rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--color-accent);
}

blockquote {
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  margin-left: 0;
  padding-left: 1.5rem;
  color: var(--color-muted);
}

code {
  font-family: var(--font-mono) !important;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  font-family: var(--font-mono) !important;
  font-size: 0.85em;
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

small {
  color: var(--color-muted);
  font-size: 0.85em;
}

.post-meta {
  color: var(--color-muted);
  font-size: 0.9em;
  margin-bottom: 1.5rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1a1a;
    --color-text: #e8e8e8;
    --color-muted: #999;
    --color-accent: #d4a574;
  }
  
  code, pre {
    background: #2a2a2a;
  }
  
  hr {
    border-top-color: #333;
  }
  
  h1 {
    border-bottom-color: #333;
  }
}
