/* LCHWM Docs Hub — Design System */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 2rem; --space-4: 4rem;
  --radius: 10px;
  --accent: #2d5a27;
  --accent-soft: #e8f0e6;
  --ink: #1a2b17;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --status-green: #059669;
  --status-amber: #d97706;
  --status-red: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fafafa;
  line-height: 1.65;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-3); }

/* Header */
header {
  background: linear-gradient(135deg, var(--accent), #1a3d14);
  color: #fff;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
}
header .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; }
header h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.25rem; }
header .subtitle { opacity: 0.9; max-width: 60ch; }
header .badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.15); padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
}

/* Status indicators */
.status { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; padding: 0.25rem 0.6rem; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-live::before { background: var(--status-green); }
.status-live { background: #ecfdf5; color: var(--status-green); }
.status-wip::before { background: var(--status-amber); }
.status-wip { background: #fffbeb; color: var(--status-amber); }
.status-parked::before { background: var(--status-red); }
.status-parked { background: #fef2f2; color: var(--status-red); }

/* Sections */
section { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
section h2 { font-family: var(--font-display); color: var(--accent); font-size: 1.5rem; margin-bottom: var(--space-2); display: flex; align-items: center; gap: 0.75rem; }
section h3 { font-size: 1.1rem; color: var(--ink); margin: var(--space-2) 0 var(--space-1); }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-2); }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-2); transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card h3 { display: flex; align-items: center; gap: 0.5rem; margin-top: 0; }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.card .links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.link-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--accent-soft); color: var(--accent);
  padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
  text-decoration: none; border: 1px solid transparent;
}
.link-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.link-btn.external { background: #f3f4f6; color: #374151; }
.link-btn.external:hover { background: #e5e7eb; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.85rem; }
tr:hover td { background: #f9fafb; }
code { font-family: var(--font-mono); font-size: 0.85em; background: #f3f4f6; padding: 0.15rem 0.35rem; border-radius: 4px; }

/* Footer */
footer { padding: var(--space-3) 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  header .wrap { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
}