/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #f4f4f3;
  color: #111;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- Tokens (kept in CSS, not JS — easier to tweak later) ---------- */
:root {
  --bg:               #f4f4f3;
  --surface:          #ffffff;
  --border:           #e5e5e4;
  --ink:              #111111;
  --ink-mute:         #5a5a59;
  --ink-soft:         #8a8a89;

  --pill-bg:          #ebebeb;
  --pill-ink:         #2e2e2e;
  --pill-title:       #2563EB;
  --pill-fit-strong:  #16A34A;
  --pill-fit-mild:    #111111;

  --radius-card:      10px;
  --radius-pill:      3px;

  --shadow-card:      0 1px 0 rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card-hover:0 1px 0 rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.08);
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.site-header__title h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.site-header__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.site-header__meta {
  display: flex;
  gap: 8px;
}
.meta-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 11px;
  font-weight: 500;
}
.meta-chip--mute {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-mute);
}

/* ---------- Board (three columns) ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 32px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
}

.column {
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.column__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.column__header h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.column__count {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.column__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.empty {
  padding: 24px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Tile ---------- */
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 120ms ease, transform 120ms ease;
  box-shadow: var(--shadow-card);
  position: relative;
}
.tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}
.tile__company {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.tile__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.pill--fit         { background: var(--pill-fit-mild); }
.pill--fit-strong  { background: var(--pill-fit-strong); }
.pill--title       { background: var(--pill-title); }
.pill--title a {
  color: #fff;
  text-decoration: none;
}
.pill--meta {
  background: var(--pill-bg);
  color: var(--pill-ink);
  font-size: 10px;
  font-weight: 500;
}
.pill--best {
  background: #fff7d6;
  color: #7a5d00;
  border: 1px solid #f5d76e;
  font-size: 10px;
}
.tile__why {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
}
.tile__why b { font-weight: 700; }
.tile__footer {
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.tile__footer a {
  color: var(--ink-soft);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
.tile__footer a:hover { color: var(--ink); }

/* ---------- Loading state ---------- */
.loading {
  padding: 24px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
}
