/* Manifesto AI Public Reader - Static Styles
Adapted from publication-shell.css and tokens.css for manifesto-ai theme.
Self-contained for static HTML. No Tailwind, no JS frameworks. */

:root {
  --ink: #1c1a18;
  --paper: #f4f0e7;
  --paper-deep: #efe9dd;
  --accent: #b5654a;
  --muted: #5a554c;
  --line: rgba(28, 26, 24, 0.08);
  --surface: #fbf8f2;
  --ink-soft: #5c574f;
  --gold: #9a5a42;
  --max-width: 1280px;
  --sidebar-w: 280px;
  --measure: 38.5rem;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover, .nav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--paper-deep);
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.article {
  max-width: var(--measure);
  padding: 3rem 2rem;
}

.article h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article .lede {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h2, h3 {
  font-family: var(--font-serif);
  margin-top: 2.5rem;
}

pre, code {
  font-family: var(--font-mono);
  background: #f1ede4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* List and grid styles */
.piece-list {
  list-style: none;
  padding: 0;
}

.piece-list li {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.piece-list a {
  color: var(--ink);
  font-size: 1.1rem;
}

/* Mobile adjustments */
@media (max-width: 960px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  
  .main {
    margin-left: 0;
  }
  
  .nav {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* JSON-LD hidden */
.json-ld {
  display: none;
}
