:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --border: #e2ddd4;
  --text: #1c1917;
  --text-muted: #6b6560;
  --accent: #0d6e5c;
  --accent-hover: #0a5a4b;
  --accent-soft: #e8f5f1;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.04);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.hub {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.hub-header {
  padding: 40px 0 32px;
}

.hub-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.hub-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  flex-shrink: 0;
}

.hub-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hub-subtitle {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 36em;
}

.hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.hub-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px 10px 38px;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b6560' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 12px center;
}

.hub-search:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}

.hub-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 110, 92, 0.12);
}

.tool-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.tool-status {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.tool-status.ready {
  color: var(--accent);
  background: var(--accent-soft);
}

.tool-status.soon {
  color: var(--text-muted);
  background: var(--surface-2);
}

.tool-desc {
  flex: 1;
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tool-tag {
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 4px;
}

.tool-card-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.tool-card:hover .tool-card-cta {
  color: var(--accent-hover);
}

.hub-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.hub-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.hub-footer code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 2px 6px;
  background: var(--surface-2);
  border-radius: 4px;
}

.hub-loading,
.hub-error {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.hub-error {
  color: #b91c1c;
}
