/* ============================================================
   FoglineSF site chrome
   ----
   Shared header, footer, and base color/type variables for every
   FoglineSF Data Projects page hosted under data.foglinesf.com.

   Source: https://github.com/foglinesf/foglinesf.github.io/blob/main/shared/site-chrome.css
   Served: https://data.foglinesf.com/shared/site-chrome.css

   Usage: include in <head> BEFORE the project's own stylesheet so
   project rules can override shared defaults if needed.

     <link rel="stylesheet" href="https://data.foglinesf.com/shared/site-chrome.css">

   What's in here:
     - Color and type custom properties on :root
     - Site header with breadcrumb back to data.foglinesf.com
     - Optional .site-nav (right side of header) + .nav-subscribe variant
     - Centered .site-footer with .footer-meta paragraphs
     - Responsive + print rules for the chrome

   What's NOT in here: anything project-specific (article typography,
   data viz, nav dropdowns, etc.) — those live in each project's own
   stylesheet.
   ============================================================ */

:root {
  /* Color palette */
  --bg: #f7f4ee;
  --bg-elev: #fdfaf2;
  --ink: #222222;
  --muted: #666666;
  --rule: #d6cfbf;
  --accent: #9e1f0c;

  /* Type stacks */
  --serif: Charter, "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

/* SITE HEADER (breadcrumb back to data.foglinesf.com) */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule);
}
.site-header-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}
.brand-breadcrumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  line-height: 1.2;
}
.brand-hub {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}
.brand-hub-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.brand-hub-section {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.brand-hub:hover .brand-hub-name,
.brand-hub:hover .brand-hub-section { color: var(--accent); }
.brand-sep {
  font-family: var(--sans);
  color: var(--rule);
  font-size: 16px;
}
.brand-project {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-project:hover { color: var(--accent); }

/* SITE NAV (right side of header) */
.site-nav {
  font-family: var(--sans);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}
.site-nav a[aria-current="page"] { font-weight: 500; }
.site-nav a.nav-subscribe {
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 3px;
}
.site-nav a.nav-subscribe:hover {
  background: var(--accent);
  color: var(--bg);
}

/* SITE FOOTER */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  margin-top: 64px;
}
.site-footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
}
.footer-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.footer-meta a { color: var(--muted); text-decoration: underline; }
.footer-meta a:hover { color: var(--accent); }
.footer-subscribe { font-weight: 500; }
.footer-subscribe a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.footer-subscribe a:hover { text-decoration: underline; }

/* RESPONSIVE + PRINT */
@media (max-width: 700px) {
  .site-header-wrap { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .site-footer { display: none; }
}
