@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light dark;
  /* Light mode — matches AppTheme.light(): scaffold gray-50, surface white,
     ink black-90, muted text gray-500, border gray-200, brand orange-500. */
  --bg: #f8fafc;
  --surface: #ffffff;
  --fg: #171717;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #f97316;
  --accent-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode — matches AppTheme.dark(): scaffold black-100, surface
       black-90, ink white, muted text gray-400, border #2A2A2A, brand
       orange-400 (lighter for contrast on dark, as the app does). */
    --bg: #0a0a0a;
    --surface: #171717;
    --fg: #ffffff;
    --muted: #94a3b8;
    --border: #2a2a2a;
    --accent: #fb923c;
    --accent-ink: #0a0a0a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

nav.crumbs {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

nav.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

nav.crumbs a:hover {
  color: var(--accent);
}

a {
  color: var(--accent);
}

ul {
  padding-left: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.draft-note {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
