/* =============================================================================
   Residents Response — Stylesheet
   Clean, accessible, mobile-first design. No build tools required.
   ============================================================================= */

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

:root {
  --color-bg: #fafafa;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-accent: #1a56db;
  --color-accent-dark: #143ea8;
  --color-border: #e0e0e0;
  --color-card-bg: #ffffff;
  --color-highlight: #fef3c7;
  --color-header-bg: #1e293b;
  --color-header-text: #f8fafc;
  --max-width: 820px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; width: 100%; }

/* ---- Header ---- */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  padding: 1.5rem 0 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-header-text);
  text-decoration: none;
}
.site-title:hover { color: #cbd5e1; text-decoration: none; }

.site-tagline {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.social-links a {
  color: #94a3b8;
  font-size: 1.1rem;
  text-decoration: none;
}
.social-links a:hover { color: #ffffff; }

/* ---- Main ---- */
main { flex: 1; padding: 2rem 0 3rem; }
main .container { /* already scoped */ }

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

/* ---- Highlight Cards ---- */
.highlights { margin-bottom: 2.5rem; }

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
}
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 0.5rem; }
.card a { font-size: 0.85rem; font-weight: 600; }

/* ---- Timeline / Updates ---- */
.timeline-section { margin-bottom: 2.5rem; }

.update {
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--color-border);
  margin-bottom: 0;
  position: relative;
}
.update::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 50%;
}
.update + .update { border-top: none; }

.update time {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.update p { margin-bottom: 0.5rem; font-size: 0.92rem; }
.update p:last-child { margin-bottom: 0; }

.update ul, .update ol {
  margin: 0.4rem 0 0.5rem 1.25rem;
  font-size: 0.92rem;
}
.update li { margin-bottom: 0.25rem; }

/* ---- Support Section ---- */
.support-section {
  background: var(--color-highlight);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.support-section h2 { border-bottom: none; margin-bottom: 0.5rem; }
.support-section ul {
  margin: 0.75rem 0 0 1.25rem;
  font-size: 0.92rem;
}
.support-section li { margin-bottom: 0.4rem; }

/* ---- About Page ---- */
.about-content p { margin-bottom: 1rem; font-size: 0.95rem; }
.about-content img { margin: 1.5rem 0; }

/* ---- Media Coverage Page ---- */
.media-list { list-style: none; }
.media-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.media-list li:last-child { border-bottom: none; }

/* ---- Blog Post / Letter ---- */
.post-content h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.post-content .post-date { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.post-content p { margin-bottom: 1rem; }
.post-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.post-content ol li { margin-bottom: 0.75rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-header-bg);
  color: #94a3b8;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  text-align: center;
  margin-top: auto;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .site-title { font-size: 1.25rem; }
  .site-nav { gap: 0.75rem; }
  .highlight-cards { grid-template-columns: 1fr; }
  h2 { font-size: 1.2rem; }
}

.update blockquote {
  margin: 0.5rem 0 0.75rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #94a3b8;
  background: #f1f5f9;
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}
