/*
  Bad Stock Killer -- shared design tokens.
  Every template links this file and uses var(--token) instead of hardcoded hex values,
  so the whole site's look can be re-themed later by editing only this file.
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg:           #0a0c11;
  --surface:      #12151c;
  --surface-2:    #181c26;
  --surface-3:    #1e2330;

  /* Borders */
  --border:       #262b38;
  --border-soft:  #1a1e28;
  --border-accent:#3a4360;

  /* Text */
  --text:         #e8eaf0;
  --text-muted:   #99a2b5;
  --text-faint:   #5c6478;

  /* Brand / accent */
  --accent:       #5b8cff;
  --accent-hover: #7aa0ff;
  --accent-soft:  #1a2033;

  /* Semantic status */
  --success:      #16c784;
  --success-soft: #0f2a20;
  --danger:       #f6465d;
  --danger-soft:  #2a1418;
  --warning:      #f0b90b;
  --warning-soft: #241d0a;

  /* Risk score gradient (safest -> worst) */
  --risk-0:   var(--success);
  --risk-25:  #c7d63c;
  --risk-45:  var(--warning);
  --risk-65:  #f2883d;
  --risk-85:  var(--danger);

  /* Shape */
  --radius:     0.6rem;
  --radius-sm:  0.4rem;
  --radius-lg:  0.8rem;

  /* Typography -- a document/report serif (like the filings this site is built from),
     not a UI sans-serif. Georgia/Times are safe system fallbacks if the web font fails. */
  --font-sans: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

/* ---------- Shared base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.bsk-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.bsk-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.bsk-back:hover { color: var(--text); }

.bsk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.bsk-h2 {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 2rem 0 0.8rem;
}

.bsk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bsk-table th, .bsk-table td {
  text-align: left;
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.bsk-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.bsk-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-block;
}

.bsk-footer {
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-top: 2.5rem;
  text-align: center;
}
.bsk-footer a { color: inherit; }
