/* We Have That at Home — Main Stylesheet
   Minimal newspaper aesthetic. Inter sans-serif.
   No sidebars, no cards everywhere, no giant hero images.
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: 5.5rem; /* room for fixed status bar */
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #1d4ed8; }

img { max-width: 100%; height: auto; }
code { font-size: 0.875em; background: #f1f5f9; padding: 0.1em 0.3em; border-radius: 3px; }
pre code { background: none; padding: 0; }
pre { background: #f8fafc; padding: 1rem; overflow-x: auto; font-size: 0.85rem; border: 1px solid #e2e8f0; border-radius: 4px; }
blockquote { border-left: 3px solid #2563eb; padding-left: 1rem; color: #475569; margin: 1.5rem 0; }
hr { border: none; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
th { font-weight: 600; background: #f8fafc; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 600;
  color: #0f172a;
}
h1 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.35rem; margin: 1.75rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul, ol { margin: 0.75rem 0 1rem 1.5rem; }
li { margin-bottom: 0.25rem; }

/* === Header === */
.header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.header-title a { color: #0f172a; text-decoration: none; }
.header-title a:hover { color: #2563eb; }
.header-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; align-items: center; }
.header-nav a { color: #475569; }
.header-nav a:hover { color: #2563eb; }
.btn-mission {
  background: #2563eb;
  color: #fff !important;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.btn-mission:hover { background: #1d4ed8; text-decoration: none !important; }

/* === Main Content === */
.main {
  max-width: 740px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* === Footer === */
.footer {
  max-width: 740px;
  margin: 3rem auto;
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* === Status Bar === */
.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-family: 'Inter', monospace;
  line-height: 1.4;
  padding: 0.5rem 1.5rem;
  z-index: 100;
  border-top: 2px solid #2563eb;
}
.statusbar-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.statusbar-item {
  display: flex;
  gap: 0.25rem;
  white-space: nowrap;
}
.statusbar-label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.65rem;
  font-weight: 600;
}
.statusbar-value {
  color: #e2e8f0;
  font-weight: 500;
}
.statusbar-value.positive { color: #34d399; }
.statusbar-value.negative { color: #f87171; }
.statusbar-value.neutral { color: #fbbf24; }

/* === Home Page === */
.home-section { margin-bottom: 2.5rem; }
.home-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.home-hero { margin-bottom: 2rem; }
.home-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.home-hero p { font-size: 1rem; color: #475569; max-width: 600px; }

.mission-stat {
  font-size: 1.1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.75rem;
}
.mission-stat strong { color: #0f172a; }

/* === Content Lists === */
.content-list { list-style: none; margin: 0; }
.content-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.content-list li:last-child { border-bottom: none; }
.content-list .meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.1rem;
}
.content-list a { font-weight: 500; }
.content-list .taxonomy {
  font-size: 0.7rem;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* === Article (Single) === */
.article-header { margin-bottom: 1.5rem; }
.article-header h1 { margin-bottom: 0.25rem; }
.article-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-body { font-size: 1rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

/* === Taxonomies === */
.taxonomy-list { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.taxonomy-list li {
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 3px;
}

/* === Responsive === */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .header { padding: 0.75rem 1rem; }
  .main { padding: 0 1rem; }
  .statusbar { padding: 0.4rem 0.75rem; }
  .statusbar-row { gap: 0.5rem; }
  .statusbar-item { white-space: normal; }
}
