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

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --border: #222;
  --text: #eee;
  --text-dim: #777;
  --white: #fff;
}

body {
  font-family: "SF Mono", "Cascadia Mono", "Fira Mono", "Consolas", "Liberation Mono", monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

header {
  margin-bottom: 56px;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 24px;
}

.instructions {
  font-size: 12px;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

.instructions a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.instructions a:hover {
  border-bottom-color: var(--white);
}

.category {
  margin-bottom: 48px;
}

.category h2 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: 14px 16px;
}

.bookmarklet-link {
  display: inline-block;
  background: var(--white);
  color: var(--bg);
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  text-decoration: none;
  cursor: grab;
  user-select: none;
  transition: opacity 0.15s;
}

.bookmarklet-link:hover {
  opacity: 0.85;
}

.bookmarklet-link:active {
  cursor: grabbing;
}

.card-desc {
  color: var(--text-dim);
  font-size: 12px;
  flex: 1;
  margin: 0 16px;
}

.source-link {
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.source-link:hover {
  color: var(--white);
}

footer {
  margin-top: 64px;
  font-size: 11px;
  color: var(--text-dim);
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

footer a:hover {
  color: var(--white);
}

@media (max-width: 600px) {
  .card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-desc {
    margin: 0;
  }
}
