
:root {
  --ivory: #F5F0E8;
  --charcoal: #1C1C1C;
  --dark-gray: #4A4A46;
  --mid-gray: #8A8A82;
  --light-gray: #C8C4BA;
  --rule: #DAD6CC;
  --teal: #0A6E6E;
  --teal-light: #D4E8E6;
  --teal-hover: #085858;
  --warm: #C45C2C;
  --warm-bg: #FBF0EA;
  --white: #FFFFFF;
  --font-heading: 'Work Sans', -apple-system, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Geist Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

/* Header */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--charcoal);
  text-decoration: none;
}
.site-logo span { color: var(--teal); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mid-gray);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--teal); }

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  padding: 16px 0 0;
}
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* Hero */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero .subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mid-gray);
  letter-spacing: 0.3px;
}

/* Infographic display */
.infographic-frame {
  margin: 40px 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}
.infographic-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content body */
.content-body {
  padding: 40px 0;
}
.content-body h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: var(--charcoal);
}
.content-body h2:first-child { margin-top: 0; }
.content-body p {
  margin-bottom: 16px;
  color: var(--dark-gray);
  max-width: 680px;
}

/* Embed code box */
.embed-box {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}
.embed-box h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.embed-box p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-bottom: 12px;
}
.embed-box textarea {
  width: 100%;
  height: 80px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--ivory);
  color: var(--dark-gray);
  resize: none;
}
.embed-box button {
  margin-top: 8px;
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.embed-box button:hover { background: var(--teal-hover); }

/* Social share */
.share-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}
.share-bar span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mid-gray);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dark-gray);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.share-btn:hover { border-color: var(--teal); color: var(--teal); }

/* CTA */
.cta-bar {
  background: var(--warm-bg);
  border-left: 4px solid var(--warm);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 40px 0;
}
.cta-bar p {
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0;
}
.cta-bar a {
  color: var(--warm);
  font-weight: 600;
  text-decoration: none;
}
.cta-bar a:hover { text-decoration: underline; }

/* Related grid */
.related-section { padding: 40px 0; border-top: 1px solid var(--rule); }
.related-section h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 12px rgba(10,110,110,0.08);
}
.related-card img { width: 100%; height: auto; display: block; }
.related-card .card-body {
  padding: 14px 16px;
}
.related-card .card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.related-card .card-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mid-gray);
}

/* Infographic grid (cluster + home pages) */
.infographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  margin-top: 48px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--light-gray);
}
.site-footer a { color: var(--mid-gray); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

/* Disclosure bar */
.disclosure-bar {
  background: #EDE8DF;
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.disclosure-bar p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--mid-gray);
  margin: 0;
}
.disclosure-bar a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.disclosure-bar a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.75rem; }
  .site-nav { gap: 16px; }
  .site-header .container { flex-wrap: wrap; gap: 12px; }
  .related-grid { grid-template-columns: 1fr; }
  .infographic-grid { grid-template-columns: 1fr; }
}
