:root {
  --paper: #14130F;
  --surface: #1C1B16;
  --ink: #F3F1EA;
  --slate: #A6A399;
  --slate-light: #6E6C63;
  --line: #2E2D26;
  --signal: #7B93FF;
  --signal-soft: #1E2340;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

a { color: inherit; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--signal);
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.name {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 17px;
  color: var(--slate);
  margin: 0;
  max-width: 46ch;
}

/* Tools section */

.tools-section {
  padding: 56px 0 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 0;
}

.count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--slate-light);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* Empty state */

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: left;
  background: transparent;
}

.empty-cursor-line {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 10px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--signal);
  vertical-align: -3px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.empty-copy {
  color: var(--slate);
  margin: 0;
  font-size: 15px;
}

/* Tool card */

.tool-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tool-card:hover {
  border-color: var(--signal);
  transform: translateY(-1px);
}

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

.tool-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  flex-shrink: 0;
}

.slug {
  font-size: 12px;
  color: var(--slate-light);
}

.tool-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 6px;
}

.tool-desc {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

/* Footer */

.site-footer {
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate-light);
}

.site-footer a {
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 1; }
  .tool-card { transition: none; }
}

/* Mobile */

@media (max-width: 480px) {
  .hero { padding: 64px 0 48px; }
  .tools-section { padding: 40px 0 56px; }
}
