:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-muted: #f1ede5;
  --border: #e6e2d8;
  --text: #1a1614;
  --text-muted: #5e564c;
  --text-faint: #968d80;
  --accent: #b45309;       /* oil-ish amber */
  --accent-soft: #fef3c7;
  --secondary: #1e3a5f;    /* deep blue for contrast lines */
  --warn: #b45309;
  --ok: #15803d;
  --pending: #b45309;
  --danger: #b91c1c;
  --shadow: 0 1px 2px rgba(26, 22, 20, 0.04), 0 4px 12px rgba(26, 22, 20, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand .eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand h1 {
  margin: 0.25rem 0 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand .tagline {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  box-shadow: 0 0 0 3px rgba(150, 141, 128, 0.18);
}
.status-dot[data-status="ok"] { background: var(--ok); box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18); }
.status-dot[data-status="error"] { background: var(--danger); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18); }
.status-dot[data-status="loading"] { background: var(--text-faint); }

/* ===== Hero ===== */
.hero {
  padding: 3rem 0 1.5rem;
  max-width: 820px;
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ===== Status grid ===== */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

.status-card .label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-card .value {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.status-card .value.pending { color: var(--pending); }
.status-card .value.ok { color: var(--ok); }

.status-card .meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ===== Chart sections ===== */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.chart-header h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chart-header .source {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.chart-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.chart-stats > div {
  display: flex;
  flex-direction: column;
}

.chart-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-wrap {
  position: relative;
  height: 380px;
  width: 100%;
}

/* ===== Info grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.info-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.info-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .brand h1 { font-size: 1.5rem; }
  .hero { padding-top: 2rem; }
  .hero h2 { font-size: 1.3rem; }
  .chart-wrap { height: 300px; }
}
