/* Article + hub page styles. Hand-written to avoid coupling to the SPA's
   hashed Tailwind output. Mirrors the SPA's visual feel; if the SPA's
   colors change in tailwind.config.js, update the variables below. */

:root {
  --cream: #fbf6ee;
  --ink-900: #1f2226;
  --ink-700: #3f4651;
  --ink-500: #6b7280;
  --accent: #c2683b;
  --accent-hover: #a85628;
  --rule: rgba(40, 40, 40, 0.08);
  --card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink-900);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

/* --- chrome --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 880px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.site-header .brand {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-900);
}

.site-nav { display: flex; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.site-nav a { color: var(--ink-700); }
.site-nav a:hover { color: var(--ink-900); text-decoration: none; }

.site-footer {
  max-width: 880px;
  margin: 64px auto 0;
  padding: 32px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.site-footer p { margin: 6px 0; }
.site-footer .muted { color: var(--ink-500); font-size: 0.95rem; }
.site-footer .disclaimer { color: var(--ink-500); font-size: 0.85rem; margin-top: 18px; }

/* --- article body --- */

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.prose h1, .prose h2, .prose h3 {
  font-family: "Fraunces", "Georgia", serif;
  color: var(--ink-900);
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.prose h1 { font-size: 2.1rem; margin-top: 0.2em; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }

.prose p { color: var(--ink-700); margin: 1em 0; }
.prose ul, .prose ol { color: var(--ink-700); padding-left: 1.4em; }
.prose li { margin: 0.4em 0; }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 16px;
  margin: 1.4em 0;
  color: var(--ink-700);
  background: rgba(194, 104, 59, 0.06);
  border-radius: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose code {
  background: rgba(40, 40, 40, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* --- related articles --- */

.related {
  margin: 48px 0 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.related h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.related ul { margin: 0; padding-left: 1.2em; }
.related li { margin: 6px 0; }

/* --- hub --- */

.hub-header { margin-bottom: 32px; }
.hub-header h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 2.4rem;
  margin: 0 0 8px;
}
.hub-header p { color: var(--ink-700); margin: 0; }

.hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hub-list li a {
  display: block;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hub-list li a:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.hub-list h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.hub-list p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }
