:root {
  --ink: #0f1720;
  --ink-raised: #161f2b;
  --line: #263243;
  --paper: #f7f5ef;
  --paper-dim: #e9e5d8;
  --text: #e7e9ec;
  --text-dim: #96a1af;
  --accent: #4f7cff;
  --safe: #2f9e6e;
  --caution: #d9a441;
  --risk: #c4573f;
  --unknown: #5a6675;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

.board {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Top strip */
.strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark-mark {
  color: var(--accent);
  font-size: 0.75rem;
}

.strip-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Cards shared */
.card {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

/* Location control */
.control { margin-bottom: 2rem; }

.location-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.field { flex: 1 1 260px; }

.field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.control-actions { display: flex; gap: 0.6rem; }

.btn-primary, .btn-ghost {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 0;
}
.btn-primary:hover { background: #3d68e8; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  min-height: 1.2em;
}
.status.error { color: var(--risk); }
.status.ok { color: var(--safe); }

/* Hero */
.hero { margin-bottom: 2rem; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.hero-sub .dot { margin: 0 0.5rem; color: var(--line); }

/* Grid of report cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.report-card {
  background: var(--paper);
  color: #12181f;
  border-radius: 10px;
  padding: 1.1rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border-top: 3px solid var(--unknown);
}

.report-card[data-status="safe"] { border-top-color: var(--safe); }
.report-card[data-status="caution"] { border-top-color: var(--caution); }
.report-card[data-status="risk"] { border-top-color: var(--risk); }
.report-card[data-status="pending"] { border-top-color: var(--unknown); }

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.report-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--paper-dim);
  color: #4a4436;
}

.report-card[data-status="safe"] .status-pill { background: rgba(47,158,110,0.15); color: #1d6b4a; }
.report-card[data-status="caution"] .status-pill { background: rgba(217,164,65,0.2); color: #8a6414; }
.report-card[data-status="risk"] .status-pill { background: rgba(196,87,63,0.15); color: #963d29; }

.report-body {
  flex: 1;
  font-size: 0.9rem;
}

.report-body .placeholder {
  color: #6b7280;
  font-style: italic;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--paper-dim);
  font-size: 0.85rem;
}
.stat-line:last-child { border-bottom: 0; }
.stat-line .label { color: #4a4436; }
.stat-line .value { font-family: var(--font-mono); font-weight: 500; }

.big-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.big-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.report-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--paper-dim);
}

.source-stamp {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: #6b7280;
  border: 1px solid #c9c3ae;
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #9aa0a8;
}

.board-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .strip { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .control-actions { width: 100%; }
  .btn-primary, .btn-ghost { flex: 1; }
}
